/* Contact Page Styles */

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
}

.contact-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-portrait {
    width: 150px;
    height: 150px;
    min-width: 150px;
    max-width: 150px;
    min-height: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    flex-shrink: 0;
    flex-grow: 0;
}

.hero-text {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 200px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.2;
    white-space: nowrap;
    width: fit-content;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    width: fit-content;
    max-width: 100%;
}

.qr-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-wrapper {
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.qr-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: hidden;
}

.qr-image {
    position: absolute;
    border-radius: 8px;
    backface-visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-style: preserve-3d;
}

/* Online QR (contact-qr-link.png) - no cropping needed */
#qr-online {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 500px;
    object-fit: contain;
}

/* Offline QR (contact-qr-no-text.png) - clean, no cropping needed */
#qr-offline {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 500px;
    object-fit: contain;
}

.qr-active {
    display: block;
    transform: rotateY(0deg);
    opacity: 1;
    z-index: 2;
}

.qr-hidden {
    display: block;
    transform: rotateY(180deg);
    opacity: 0;
    z-index: 1;
}

.qr-toggle-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.qr-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
}

.toggle-label-text {
    user-select: none;
    font-size: 1.8rem;
    line-height: 1;
}

.qr-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.qr-toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    transition: background-color 0.3s ease;
}

.qr-toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.qr-toggle-input:checked + .qr-toggle-slider {
    background-color: #06ac56;
}

.qr-toggle-input:checked + .qr-toggle-slider::before {
    transform: translateX(24px);
}

.download-tile,
.contact-info-tile {
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.download-tile {
    margin-top: 3rem;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(100, 110, 120, 0.9);
    color: white;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(80, 90, 100, 0.5);
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(80, 90, 100, 1);
    border-color: rgba(60, 70, 80, 0.7);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn svg {
    flex-shrink: 0;
}

footer {
    background: #f5f5f5;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid #e0e0e0;
}

footer p {
    margin: 0.5rem 0;
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

footer .footer-links {
    margin-top: 1rem;
}

footer .footer-links a {
    color: #0d7377;
    text-decoration: none;
    transition: color 0.2s;
}

footer .footer-links a:hover {
    color: #0a5d61;
    text-decoration: underline;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: center;
}

.contact-field {
    background: white;
    padding: 0.45rem 0.25rem;
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
}

/* Responsive Design */
/* Stack vertically when h1 would wrap (approximately when total width < 690px) */
@media (max-width: 690px) {
    .contact-hero {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .hero-text {
        width: auto;
        max-width: 100%;
        align-items: center;
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        white-space: normal;
        text-align: center;
    }
    
    .hero-text p {
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .qr-display {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .download-btn {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
    
    .download-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 1.5rem 1rem;
    }
    
    .hero-portrait {
        width: 150px;
        height: 150px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .qr-display {
        padding: 1rem;
    }
}

/* Debug widget - screen width display */

