/**
 * Contact Page Styles
 * Illinois Conservatory for the Arts
 */

/* Prevent horizontal overflow on contact page */
.contact-page {
    overflow-x: hidden;
    max-width: 100%;
}

.contact-page * {
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== HERO SECTION ===== */
.contact-hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero .section__inner--wide {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
}

.contact-hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.contact-hero__title {
    font-family: var(--font-ui);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.contact-hero__title--highlight {
    color: var(--ica-lavender);
}

.contact-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ica-green-deep);
    opacity: 0.7;
    z-index: 2;
}

/* ===== INFO SECTION ===== */
.contact-info {
    padding: 4rem 0;
    background-color: #ffffff;
}

.contact-info__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: start;
}

.contact-info__column {
    display: flex;
    flex-direction: column;
}

.contact-info__title {
    font-family: var(--font-ui);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--ica-green-deep);
    text-align: left;
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.contact-info__title--center {
    text-align: center;
}

.contact-info__details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--ica-lavender);
}

.contact-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ica-lavender) 0%, #b8a0ba 100%);
    border-radius: 12px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(207, 173, 209, 0.3);
}

.contact-info__icon svg {
    width: 24px;
    height: 24px;
}

.contact-info__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info__label {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ica-teal);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info__phone,
.contact-info__email {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--ica-green-deep);
    margin: 0;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info__phone:hover,
.contact-info__email:hover {
    color: var(--ica-teal);
}

.contact-info__phone:focus,
.contact-info__email:focus {
    color: var(--ica-teal);
    outline: 2px solid var(--ica-lavender);
    outline-offset: 2px;
    border-radius: 4px;
}

.contact-info__form {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ontraport form styling */
.contact-info__form iframe {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    border-radius: 8px;
    overflow: hidden;
}

.contact-info__form script {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

/* Ensure any embedded content is contained */
.contact-info__form * {
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
}

/* Prevent horizontal overflow on the form container */
.contact-info__form {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .contact-hero .section__inner--wide {
        height: 50vh;
        min-height: 400px;
    }
    
    .contact-hero__content {
        padding: 1.5rem 1rem;
    }
    
 
    .contact-info {
        padding: 2.5rem 0;
    }
    
    .contact-info__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Mobile Order: Contact Us first, Form second */
    .contact-info__contact {
        order: 1;
    }
    
    .contact-info__form-column {
        order: 2;
    }
    
    .contact-info__title {
        text-align: center;
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1.5rem;
    }
    
    .contact-info__details {
        gap: 1.5rem;
    }
    
    .contact-info__item {
        padding: 1.25rem;
        gap: 0.75rem;
        flex-direction: row;
        text-align: left;
        width: 80%;
        margin: 0 auto;
        align-items: center;
    }
    
    .contact-info__icon {
        width: 40px;
        height: 40px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .contact-info__icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-info__content {
        align-items: flex-start;
        flex: 1;
    }
    
    .contact-info__form {
        padding: 1.5rem;
        overflow: hidden;
        margin: 0 auto;
        max-width: 100%;
    }
}

/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .contact-hero {
        height: 55vh;
    }
    
    .contact-hero .section__inner--wide {
        height: 55vh;
    }
    
    .contact-info__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    /* Tablet Order: Contact Us first, Form second */
    .contact-info__contact {
        order: 1;
    }
    
    .contact-info__form-column {
        order: 2;
    }
    
    .contact-info__title {
        text-align: center;
    }
    
    .contact-info__item {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info__icon {
        margin: 0 auto;
    }
    
    .contact-info__content {
        align-items: center;
    }
}

/* ===== SMALL MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    .contact-hero {
        height: 45vh;
        min-height: 350px;
    }
    
    .contact-hero .section__inner--wide {
        height: 45vh;
        min-height: 350px;
    }
    
    .contact-hero__content {
        padding: 1rem 0.75rem;
    }
    
  
    
    .contact-info {
        padding: 2rem 0;
    }
    
    .contact-info__grid {
        gap: 2rem;
    }
    
    .contact-info__title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        margin-bottom: 1.25rem;
    }
    
    .contact-info__details {
        gap: 1.25rem;
    }
    
    .contact-info__item {
        padding: 1rem;
        gap: 0.5rem;
        flex-direction: row;
        text-align: left;
        width: 80%;
        margin: 0 auto;
        align-items: center;
    }
    
    .contact-info__icon {
        width: 36px;
        height: 36px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .contact-info__icon svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-info__content {
        align-items: flex-start;
        flex: 1;
    }
    
    .contact-info__label {
        font-size: 0.75rem;
    }
    
    .contact-info__phone,
    .contact-info__email {
        font-size: clamp(1rem, 4vw, 1.1rem);
    }
    
    .contact-info__form {
        padding: 1rem;
        overflow: hidden;
        margin: 0 auto;
        max-width: 100%;
    }
}

/* ===== EXTRA SMALL MOBILE ===== */
@media (max-width: 360px) {
    .contact-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .contact-hero .section__inner--wide {
        height: 40vh;
        min-height: 300px;
    }
    
 
    .contact-info {
        padding: 1.5rem 0;
    }
    
    .contact-info__item {
        padding: 0.875rem;
        flex-direction: row;
        text-align: left;
        width: 80%;
        margin: 0 auto;
        align-items: center;
    }
    
    .contact-info__icon {
        width: 32px;
        height: 32px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .contact-info__icon svg {
        width: 16px;
        height: 16px;
    }
    
    .contact-info__content {
        align-items: flex-start;
        flex: 1;
    }
    
    .contact-info__form {
        padding: 0.875rem;
        overflow: hidden;
        margin: 0 auto;
        max-width: 100%;
    }
}
