/**
 * Contact Us Page Styles - UPDATED WITH CLIENT SPECIFICATIONS
 * Responsive, customizable design for KTV Creations
 */

/* Contact page template main section padding fix */
body.page-template-page-contact #primary,
body.page-template-page-contact .site-main {
    padding-bottom: 40px;
}

/* ===================================
   HERO SECTION - BIGGER IMAGE
   =================================== */
.contact-hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
    padding: 10em;
    margin: -154px auto 0 auto !important;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0;
    animation: fadeInUp 1s ease-out;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.contact-hero-title {
    font-size: 80px;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.2;
}

/* Hero Subtitle - Overlaying the hero image */
.contact-hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
    color: #ffffff;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   FORM SECTION - WHITE CONTAINER WITH SPECIFIC STYLES
   =================================== */
.contact-form-section {
    background-color: #ffffff;
    margin: 32px auto;
    border-radius: 20px;
    align-items: center;
    padding: 35px 20px;
    width: 1000px;
    max-width: 95%;
}

.contact-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.6s both;
}

.embedded-form-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    width: 100%;
    text-align: center;
}

.embedded-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.embedded-form-container iframe {
    width: 100% !important;
    max-width: 100%;
    min-height: 850px;
    border: none;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* ===================================
   NO FORM NOTICE
   =================================== */
.no-form-notice {
    text-align: center;
    padding: 60px 30px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    margin: 0 auto;
}

.no-form-notice p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0.5rem 0;
}

.no-form-notice strong {
    color: #495057;
}

.no-form-notice code {
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Large Desktop - Generous spacing */
@media (min-width: 1400px) {
    .contact-hero-section {
        padding: 10em;
        min-height: 600px;
    }
    
    .contact-hero-title {
        font-size: 80px;
    }
    
    .contact-hero-subtitle {
        font-size: 18px;
    }
    
    .embedded-form-container {
        padding: 50px;
    }
    
    .contact-form-section {
        width: 1000px;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1399px) {
    .contact-hero-section {
        padding: 8em 1em 1em 2em !important;
        min-height: 550px;
    }
    
    .contact-hero-title {
        font-size: 72px;
    }
    
    .contact-hero-subtitle {
        font-size: 17px;
    }
    
    .contact-form-section {
        width: 95%;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .contact-hero-section {
        min-height: 450px;
        padding: 6em 3em;
    }
    
    .contact-hero-title {
        font-size: 56px;
    }
    
    .contact-hero-subtitle {
        font-size: 16px;
    }
    
    .contact-form-section {
        padding: 30px 20px;
        width: 95%;
        margin: 24px auto;
    }
    
    .embedded-form-container {
        padding: 40px 30px;
    }
    
    .embedded-form-container iframe {
        min-height: 800px;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .contact-hero-section {
        min-height: 400px;
        padding: 8em 1em 1em 2em !important;
    }
    
    .contact-hero-title {
        font-size: 60px !important;
    }
    
    .contact-hero-subtitle {
        font-size: 15px;
    }
    
    .contact-hero-content {
        padding: 0;
    }
    
    .embedded-form-container {
        padding: 30px 20px;
    }
    
    .contact-form-section {
        padding: 25px 15px;
        width: 95%;
        margin: 20px auto;
        border-radius: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-hero-section {
        min-height: 350px;
        padding: 3em 1em;
    }
    
    .contact-hero-title {
        font-size: 32px;
        margin-bottom: 1rem;
    }
    
    .contact-hero-subtitle {
        font-size: 14px;
        padding: 0;
    }
    
    .contact-form-section {
        padding: 20px 10px;
        width: 95%;
        margin: 16px auto;
        border-radius: 12px;
    }
    
    .embedded-form-container {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .embedded-form-container iframe {
        min-height: 750px;
    }
    
    .no-form-notice {
        padding: 40px 20px;
    }
    
    .no-form-notice p {
        font-size: 0.95rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {
    .contact-hero-content,
    .contact-hero-subtitle,
    .contact-form-wrapper,
    .embedded-form-container {
        animation: none;
    }
    
    .embedded-form-container:hover {
        transform: none;
    }
    
    .contact-hero-overlay {
        transition: none;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */
@media (prefers-contrast: high) {
    .contact-hero-title {
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
    }
    
    .contact-hero-subtitle {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    }
    
    .embedded-form-container {
        border: 2px solid #000;
    }
}

/* ===================================
   DARK MODE SUPPORT
   =================================== */
@media (prefers-color-scheme: dark) {
    .contact-form-section {
        background-color: #ffffff; /* Keep white as specified */
    }
    
    .embedded-form-container {
        background: #ffffff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .contact-hero-section {
        min-height: auto;
        page-break-inside: avoid;
        padding: 3rem;
    }
    
    .contact-hero-overlay {
        display: none;
    }
    
    .embedded-form-container {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .embedded-form-container:hover {
        transform: none;
    }
    
    .embedded-form-container iframe {
        border: 1px solid #ccc;
    }
    
    .contact-form-section {
        border: 1px solid #dee2e6;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.contact-hero-section.has-image {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .contact-hero-section.has-image {
        background-attachment: scroll; /* Better mobile performance */
    }
}

.contact-hero-section.no-image {
    background: linear-gradient(135deg, var(--color-primary, #111111) 0%, var(--color-accent-dark, #000000) 100%);
}

/* Loading State */
.embedded-form-container.loading {
    position: relative;
    min-height: 400px;
}

.embedded-form-container.loading::before {
    content: "Loading form...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #6c757d;
}

/* ===================================
   FOCUS STYLES FOR ACCESSIBILITY
   =================================== */
.embedded-form-container:focus-within {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

/* ===================================
   CUSTOM SCROLLBAR FOR IFRAME
   =================================== */
.embedded-form-container iframe::-webkit-scrollbar {
    width: 8px;
}

.embedded-form-container iframe::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.embedded-form-container iframe::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.embedded-form-container iframe::-webkit-scrollbar-thumb:hover {
    background: #555;
}