/* --- Contact Page Specific Styles --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2a4c8f 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/TonyK/KSolBrand.webp') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 800;
}

.page-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Calendar/Form Container */
.contact-form {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    order: 1;
}

.contact-form h3 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-form p.intro-text {
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Info Sidebar */
.contact-info {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 20px;
    order: 2;
}

.contact-info h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--medium-gray);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white);
    font-size: 18px;
}

.info-content h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 18px;
}

.info-content p,
.info-content a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.5;
    font-size: 15px;
}

.info-content p.clarification {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

.info-content a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* Privacy Section */
.privacy-section {
    padding: 60px 0;
    background: var(--white);
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.privacy-section p {
    text-align: center;
    margin-bottom: 20px;
}

.privacy-points {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-points li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.privacy-points li::before {
    content: "\2713";
    /* Checkmark */
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-size: 16px;
    font-weight: bold;
}

.privacy-points li strong {
    color: var(--primary);
}

.privacy-full-link {
    text-align: center;
    margin-top: 30px;
}

.privacy-policy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.privacy-policy-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.privacy-policy-link i {
    transition: transform 0.3s ease;
}

.privacy-policy-link:hover i {
    transform: translateX(3px);
}

/* Calendly Customization & Fallback */
.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

#calendly-loading {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    text-align: center;
}

#calendly-loading div {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 160, 176, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
}

#calendly-loading p {
    margin-top: 15px;
}

#calendly-fallback {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px dashed var(--medium-gray);
}

#calendly-fallback h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

#calendly-fallback ul {
    list-style-type: disc;
    margin: 15px 0 15px 20px;
}

#calendly-fallback li {
    margin-bottom: 10px;
}

#retry-calendly {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

#retry-calendly:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form {
        order: 1;
    }

    .contact-info {
        order: 2;
        position: static;
    }
}

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

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-form,
    .contact-info {
        padding: 30px;
    }

    .contact-form h3 {
        font-size: 24px;
    }

    .contact-info h3 {
        font-size: 22px;
    }

    .info-item {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .info-content h4 {
        font-size: 16px;
    }

    .info-content p,
    .info-content a {
        font-size: 14px;
    }

    .info-content p.clarification {
        font-size: 13px;
    }

    .social-links {
        justify-content: center;
    }

    .privacy-section h3 {
        font-size: 22px;
    }

    .privacy-points li {
        font-size: 15px;
    }

    .contact-form iframe {
        height: 500px !important;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}