/* Page Load Animation Targets */
body.loading .page-header {
    opacity: 0;
    filter: blur(20px);
}

header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.page-header {
    animation: contentFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Page Header - page-specific overrides */
.page-header {
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        var(--page-header-bg-image, none) center/cover !important;
    padding: 120px 0 100px;
    position: relative;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto 4rem;
}

/* Contact Info Grid (in page-header) */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Liquid Glass Contact Cards */
.contact-item {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.25),
        rgba(255, 255, 255, 0.1)
    );
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    text-align: center;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.contact-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.15)
    );
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.contact-item p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-icon svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Content Section - page-specific overrides */
.content-section {
    padding: 100px 0;
}

.content-section:nth-child(even) {
    background: #fafafa;
}

.section-title {
    margin-bottom: 1.2rem;
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease, padding 0.35s ease, margin 0.35s ease;
}

.form-container.is-collapsing {
    overflow: hidden;
}

.form-container.is-collapsed {
    max-height: 0 !important;
    opacity: 0;
    transform: translateY(-10px);
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.contact-feedback {
    max-width: 800px;
    margin: 0 auto;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, margin-bottom 0.3s ease;
}

.contact-feedback.is-visible {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 1rem;
}

.contact-feedback-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.contact-feedback-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.contact-feedback-text {
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 600;
}

.contact-feedback.is-success .contact-feedback-card {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.contact-feedback.is-success .contact-feedback-icon {
    background: #2e7d32;
    color: #fff;
}

.contact-feedback.is-notice .contact-feedback-card {
    background: #fff8e1;
    border-color: #ffe0b2;
    color: #8a5b00;
}

.contact-feedback.is-notice .contact-feedback-icon {
    background: #ffb74d;
    color: #fff;
}

.contact-feedback.is-error .contact-feedback-card {
    background: #ffebee;
    border-color: #ffcdd2;
    color: #c62828;
}

.contact-feedback.is-error .contact-feedback-icon {
    background: #e53935;
    color: #fff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fafafa;
}

/* Reset checkbox -- exclude from the full-width input styles */
.form-group input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 0;
    accent-color: #FF5740;
    cursor: pointer;
}

/* Checkbox row label */
.form-group label:has(input[type="checkbox"]) {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 0;
}

/* Tighter spacing between checkbox rows */
.form-group:has(input[type="checkbox"]) {
    margin-bottom: 0.6rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF5740;
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 87, 64, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Frost Button - page-specific overrides */
.btn {
    font-family: inherit;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50px;
}

.btn:hover::before {
    opacity: 1;
}

/* Secondary frost button - for use on colored/dark backgrounds */
.btn-secondary {
    position: relative;
    display: inline-block;
    padding: 14px 35px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

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

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Office Info */
.office-info {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.office-info h3 {
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.office-info h4 {
    margin-bottom: 0.4rem;
}

.office-info .features {
    margin: 0;
}

/* Features List - page-specific overrides (different icon) */
.features {
    margin: 1rem 0;
}

.features.features-compact li {
    padding: 0.2rem 0;
    padding-left: 1.5rem;
}

.features li:before {
    content: "\1F4CD";
    color: inherit;
}

/* ==========================================================================
   Responsive - Page-specific
   ========================================================================== */

@media (max-width: 768px) {
    /* Page header */
    .page-header {
        padding: 70px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }

    .page-header p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Contact cards: 1 column on phone */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .contact-item {
        padding: 1.8rem 1.2rem;
    }

    /* Section title - page-specific override */
    .section-title {
        font-size: 2rem;
    }

    /* Form -- flat on mobile, no card */
    .form-container {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Map */
    .map-container {
        height: 340px;
    }

    /* Office info -- flat on mobile, no card */
    .office-info {
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        margin-bottom: 1.5rem;
    }

    /* CTA section inner */
    .content-section > .container > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column;
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.7rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.7rem;
    }
}
