/* ============================================================
   WrapUp — Premium Packaging  |  contact.css
   Specific styles for Contact Us page (Green inspired)
   ============================================================ */

/* ===== CONTACT HERO ===== */
.contact-hero {
    position: relative;
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, #064E3B 50%, var(--primary) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#contactCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-accent {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(40px);
    animation: drift 12s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, 30px); }
}

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

.contact-hero-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-hero-sub {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05rem;
}

/* ===== CONTACT MAIN LAYOUT ===== */
.contact-main {
    background-color: var(--light);
    padding: 6rem 2rem;
    position: relative;
    z-index: 3;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

/* ===== INFO CARDS ===== */
.contact-info-grid {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, #10b981 100%);
    border-radius: 20px 0 0 20px;
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.3);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 30px;
    height: 30px;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.info-content p, .info-content a {
    font-size: 0.95rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ===== CONTACT FORM (GLASSMORPHISM INSPIRED) ===== */
.contact-form-wrapper {
    flex: 1.5;
    min-width: 350px;
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

/* Small aesthetic leaf accent using absolute pseudo elements */
.contact-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
    border-radius: 30px 100px 30px 100px;
    z-index: -1;
    opacity: 0.15;
    transform: rotate(-15deg);
}

.contact-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-form p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0; /* Reset for flex row */
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

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

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #047857 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 1rem;
}

.submit-btn:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.submit-btn.success {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    box-shadow: none;
    pointer-events: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column-reverse;
    }
    
    .contact-info-grid, 
    .contact-form-wrapper {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-hero {
        padding: 6rem 1.5rem 4rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .contact-hero-heading {
        font-size: 2.5rem;
    }
}

/* Animation utilities for elements */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
