/* ================================================================
   JOLLY GRID CONTACT PAGE
   Clean, minimal page-specific styles
   Theme colors from theme-variables.css | Layout from base.css
   ================================================================ */

/* ========================================
   PAGE BASE
   ======================================== */
.contact-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.section-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */
.contact-hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.blob-1 {
    top: -10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    animation: floatBlob1 20s ease-in-out infinite;
}

.blob-2 {
    bottom: -20%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: var(--accent-pink);
    animation: floatBlob2 25s ease-in-out infinite;
}

.blob-3 {
    top: 30%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: var(--accent-cyan);
    opacity: 0.2;
    animation: floatBlob3 18s ease-in-out infinite;
}

@keyframes floatBlob1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes floatBlob2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -20px) scale(0.9); }
}

@keyframes floatBlob3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--accent-purple-10);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 24px;
    animation: fadeSlideUp 0.6s var(--ease-out-expo) forwards;
    opacity: 0;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.1s forwards;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.2s forwards;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    opacity: 0;
    animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.3s forwards;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--border-medium);
    border-radius: 2px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.4s forwards;
}

.hero-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.15));
    transition: transform 0.4s var(--ease-out);
}

.hero-illustration:hover {
    transform: scale(1.03);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   CONTACT MAIN SECTION
   ======================================== */
.contact-main {
    padding: 60px 0 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

/* ========================================
   CONTACT FORM CARD
   ======================================== */
.contact-form-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 56px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 50px -12px rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.form-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.form-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 
        var(--shadow-glow-purple),
        0 10px 30px -10px rgba(139, 92, 246, 0.5);
}

.form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.form-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
    transition: transform 0.2s ease;
}

.form-group.focused {
    transform: translateY(-2px);
}

.form-group.focused label {
    color: var(--accent-purple);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.form-group label i {
    font-size: 0.9rem;
    color: var(--accent-purple);
    width: 18px;
    text-align: center;
}

.form-control {
    width: 100%;
    padding: 18px 22px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-medium);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.25s ease;
    line-height: 1.5;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control:hover {
    border-color: var(--accent-purple-30);
}

.form-control:focus {
    outline: none;
    background: var(--bg-card);
    border-color: var(--accent-purple);
    box-shadow: 
        0 0 0 4px var(--accent-purple-10),
        0 4px 12px rgba(139, 92, 246, 0.1);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

#form-controls {
    margin-top: 8px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 20px 36px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 
        var(--shadow-glow-purple),
        0 8px 24px -8px rgba(139, 92, 246, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 16px 40px rgba(139, 92, 246, 0.4),
        0 8px 20px -8px rgba(139, 92, 246, 0.6);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-icon i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon i {
    transform: translateX(4px);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--accent-red);
}

.form-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
}

/* ========================================
   CONTACT SIDEBAR
   ======================================== */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-purple-20);
}

.info-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.email-icon {
    background: var(--accent-purple-15);
    color: var(--accent-purple);
}

.clock-icon {
    background: var(--accent-cyan-15);
    color: var(--accent-cyan);
}

.info-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-link {
    display: inline-block;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.2s;
}

.info-link:hover {
    color: var(--accent-pink);
}

.info-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.hours-row span:first-child {
    color: var(--text-secondary);
}

.hours-row span:last-child {
    font-weight: 600;
}

.hours-row.closed span:last-child {
    color: var(--text-muted);
}

/* Social Card */
.social-card {
    padding: 28px;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-light);
}

.social-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.social-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn i {
    font-size: 1rem;
}

.social-btn.facebook {
    background: linear-gradient(135deg, #4267B2, #3b5998);
    box-shadow: 0 4px 15px rgba(66, 103, 178, 0.3);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8ecf);
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #E4405F, #d42d4c);
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.3);
}

.social-btn.pinterest {
    background: linear-gradient(135deg, #E60023, #c50019);
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.3);
}

.social-btn:hover.facebook { box-shadow: 0 8px 25px rgba(66, 103, 178, 0.4); }
.social-btn:hover.twitter { box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4); }
.social-btn:hover.instagram { box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4); }
.social-btn:hover.pinterest { box-shadow: 0 8px 25px rgba(230, 0, 35, 0.4); }

/* FAQ Hint */
.faq-hint {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, var(--accent-orange-08), var(--accent-pink-05));
    border-radius: 20px;
    border: 2px solid var(--accent-orange-15);
}

.faq-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--accent-orange-15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-orange);
}

.faq-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.faq-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.faq-content a {
    color: var(--accent-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.faq-content a:hover {
    color: var(--accent-pink);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .social-card {
        grid-column: span 2;
    }
    
    .faq-hint {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 60px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-illustration {
        max-width: 280px;
    }
    
    .contact-main {
        padding: 40px 0 80px;
    }
    
    .contact-sidebar {
        grid-template-columns: 1fr;
    }
    
    .social-card,
    .faq-hint {
        grid-column: span 1;
    }
    
    .contact-form-card {
        padding: 40px 28px;
    }
    
    .contact-form-card::before {
        height: 5px;
        border-radius: 24px 24px 0 0;
    }
    
    .form-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .form-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        font-size: 1.75rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    .form-control {
        padding: 16px 18px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        width: 40px;
        height: 2px;
    }
    
    .contact-form-card {
        padding: 32px 20px;
        border-radius: 24px;
    }
    
    .contact-form-card::before {
        height: 4px;
        border-radius: 20px 20px 0 0;
    }
    
    .form-header {
        margin-bottom: 28px;
        padding-bottom: 20px;
    }
    
    .form-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 1.5rem;
    }
    
    .form-title {
        font-size: 1.35rem;
    }
    
    .form-subtitle {
        font-size: 0.95rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .btn-submit {
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-icon {
        width: 48px;
        height: 48px;
    }
}
