/**
 * Contact Page Styles - Dark Theme
 * SkoolBeez Landing Page
 */

/* ========================================
   CSS Variables (inherit from homepage)
   ======================================== */
:root {
    --sb-dark-1: #0d1b2a;
    --sb-dark-2: #1b263b;
    --sb-dark-3: #415a77;
    --sb-yellow: #ffed00;
    --sb-yellow-dark: #ffc300;
    --sb-glass: rgba(255, 255, 255, 0.03);
    --sb-glass-border: rgba(255, 255, 255, 0.1);
    --sb-text-muted: rgba(255, 255, 255, 0.6);
}

/* ========================================
   Contact Hero Section
   ======================================== */
.contact-hero {
    min-height: 50vh;
    background: linear-gradient(135deg, var(--sb-dark-1) 0%, var(--sb-dark-2) 50%, var(--sb-dark-3) 100%);
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
    margin-top: -80px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(255, 237, 0, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 40%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(79, 172, 254, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.contact-honeycomb {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-12l20-12V22L28 10 8 22v20l20 12z' fill='%23ffed00' fill-opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.6;
    animation: honeycombFloat 25s ease-in-out infinite;
}

@keyframes honeycombFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.01); }
}

.contact-hero-content {
    position: relative;
    z-index: 10;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 237, 0, 0.1);
    border: 1px solid rgba(255, 237, 0, 0.3);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--sb-yellow);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 237, 0, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(255, 237, 0, 0); }
}

.contact-hero-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.contact-hero-title .highlight {
    color: var(--sb-yellow);
    position: relative;
}

.contact-hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 237, 0, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.contact-hero-description {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    color: var(--sb-text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Contact Info Cards Section
   ======================================== */
.contact-info-section {
    background: var(--sb-dark-1);
    padding: 0 0 80px;
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.contact-info-card {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--sb-yellow), var(--sb-yellow-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-info-card:hover::before {
    transform: scaleX(1);
}

.contact-info-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 237, 0, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.contact-info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 237, 0, 0.15) 0%, rgba(255, 195, 0, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--sb-yellow);
    transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-info-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.contact-info-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--sb-text-muted);
    margin-bottom: 1rem;
}

.contact-info-link {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sb-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-link:hover {
    color: var(--sb-yellow-dark);
}

.contact-info-address {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

/* ========================================
   Contact Form Section
   ======================================== */
.contact-form-section {
    background: linear-gradient(180deg, var(--sb-dark-1) 0%, var(--sb-dark-2) 100%);
    padding: 80px 0 120px;
    position: relative;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sb-glass-border), transparent);
}

/* Map Wrapper */
.map-wrapper {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 24px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.map-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 237, 0, 0.1) 0%, rgba(255, 195, 0, 0.05) 100%);
    border-bottom: 1px solid var(--sb-glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--sb-yellow);
}

.map-header iconify-icon {
    font-size: 1.25rem;
}

.map-iframe {
    filter: grayscale(0.3) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-iframe:hover {
    filter: grayscale(0) contrast(1);
}

.map-footer {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.map-footer-item iconify-icon {
    font-size: 1.5rem;
    color: var(--sb-yellow);
    flex-shrink: 0;
    margin-top: 2px;
}

.map-footer-item strong {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.map-footer-item p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--sb-text-muted);
    margin: 0;
}

/* Form Wrapper */
.form-wrapper {
    background: var(--sb-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sb-glass-border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sb-yellow), var(--sb-yellow-dark));
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--sb-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.form-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.form-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--sb-text-muted);
    margin: 0;
}

/* Form Elements */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row.two-col .form-group {
    flex: 1;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-label-text iconify-icon {
    font-size: 1.1rem;
    color: var(--sb-yellow);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sb-glass-border);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--sb-yellow);
    background: rgba(255, 237, 0, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 237, 0, 0.1);
}

.form-input.is-invalid {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

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

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 3rem;
}

.select-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--sb-yellow);
    pointer-events: none;
}

/* Form Select Options */
.form-select option {
    background: var(--sb-dark-2);
    color: #ffffff;
    padding: 1rem;
}

/* Error Message */
.error-message {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: #ff6b6b;
    margin-top: 0.25rem;
}

/* Form Footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sb-glass-border);
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    color: var(--sb-text-muted);
    margin: 0;
}

.form-note iconify-icon {
    font-size: 1.1rem;
    color: #4ade80;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--sb-yellow) 0%, var(--sb-yellow-dark) 100%);
    border: none;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--sb-dark-2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(255, 237, 0, 0.4);
}

.submit-btn iconify-icon {
    font-size: 1.25rem;
}

/* ========================================
   CTA Section
   ======================================== */
.contact-cta {
    background: linear-gradient(135deg, var(--sb-yellow) 0%, var(--sb-yellow-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 33L15 25V8l15-8 15 8v17l-15 8z' fill='%23000' fill-opacity='0.05'/%3E%3C/svg%3E");
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-bee {
    width: 80px;
    margin-bottom: 1.5rem;
    animation: beeBounce 2s ease-in-out infinite;
}

@keyframes beeBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cta-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--sb-dark-2);
    margin-bottom: 1rem;
}

.cta-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--sb-dark-3);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--sb-dark-2);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--sb-dark-1);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.cta-btn iconify-icon {
    font-size: 1.25rem;
    color: var(--sb-yellow);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 992px) {
    .contact-hero {
        padding: 140px 0 80px;
    }
    
    .contact-info-section {
        margin-top: -40px;
    }
    
    .map-wrapper {
        position: static;
        margin-bottom: 2rem;
    }
    
    .form-wrapper {
        padding: 2rem;
    }
    
    .form-row.two-col {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 60px;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-info-card {
        padding: 1.75rem;
    }
    
    .contact-info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .form-wrapper {
        padding: 1.5rem;
    }
    
    .form-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-cta {
        padding: 60px 0;
    }
}
