/* ===== CONTACT PAGE — islune Florist ===== */
/* Complete redesign with organic, warm aesthetic */

/* ===== HERO ===== */
.contact-hero {
    background: url('https://images.unsplash.com/photo-1487530811176-3780de880c2d?w=1400&q=80&fit=crop') center/cover no-repeat,
                linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dark overlay to ensure text readability over image */
.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 83, 45, 0.88) 0%,
        rgba(15, 61, 34, 0.82) 100%
    );
    z-index: 0;
}

/* All hero content above overlay */
.contact-hero > * { position: relative; z-index: 1; }

/* Organic decorative blobs in hero background */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-blob-1 {
    width: 220px; height: 220px;
    background: rgba(231, 184, 176, 0.12);
    top: -50px; right: -40px;
    filter: blur(50px);
}

.hero-blob-2 {
    width: 180px; height: 180px;
    background: rgba(184, 134, 107, 0.10);
    bottom: -40px; left: -30px;
    filter: blur(40px);
}

.hero-blob-3 {
    width: 140px; height: 140px;
    background: rgba(255, 255, 255, 0.06);
    top: 25%; left: 8%;
    filter: blur(35px);
}

/* Decorative botanical SVG accents */
.hero-deco {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.hero-deco-left {
    left: 3%;
    bottom: 15%;
    opacity: 0.12;
}

.hero-deco-right {
    right: 4%;
    top: 22%;
    opacity: 0.10;
}

/* Hero typography */
.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.contact-hero .hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Organic wave divider at hero bottom */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 50px;
}

/* ===== CONTACT SECTION (Info + Form Grid) ===== */
.contact-section {
    position: relative;
    background: var(--bg);
}

/* Subtle background botanical texture */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(20, 83, 45, 0.025) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(184, 134, 107, 0.025) 0%, transparent 50%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

/* ===== CONTACT INFO PANEL ===== */
.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.info-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Info cards — each contact item in its own elevated card */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    transition: all var(--transition-base);
    cursor: default;
}

.contact-info-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-left-color: var(--copper);
}

/* WhatsApp card gets green accent */
.contact-info-card.whatsapp-card {
    border-left-color: var(--whatsapp);
}

/* Icon circle */
.contact-item-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(21, 128, 61, 0.08);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.contact-info-card:hover .contact-item-icon {
    background: rgba(21, 128, 61, 0.14);
}

.contact-info-card h4 {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-info-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.contact-info-card a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-info-card a:hover {
    color: var(--copper);
}

/* ===== FORM CARD ===== */
.contact-form-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Green accent strip at top of form card */
.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--copper));
}

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

.form-description {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-base);
    box-sizing: border-box;
    background: var(--bg-card);
    color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
    font-weight: 300;
}

/* Focus state — green border + warm glow */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.08);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7B6E' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Submit button — full width with gradient */
.contact-form-card .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.3px;
}

.contact-form-card .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(20, 83, 45, 0.3);
    transform: translateY(-1px);
}

.contact-form-card .btn-primary:active {
    transform: translateY(0);
}

/* ===== MAP SECTION ===== */
.contact-map-section {
    position: relative;
    background: var(--bg-cream);
    padding: 80px 20px;
    overflow: hidden;
}

/* Map section header */
.map-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.map-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(21, 128, 61, 0.08);
    color: var(--primary-light);
    margin-bottom: 16px;
}

.map-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.map-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Map frame with shadow */
.map-frame {
    max-width: 1060px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.map-placeholder {
    width: 100%;
    height: 320px;
    background:
        linear-gradient(135deg, rgba(255,247,237,0.6) 0%, rgba(240,253,244,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-light);
}

.map-placeholder svg {
    opacity: 0.4;
}

.map-placeholder p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Decorative blobs in map section */
.map-deco {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.map-deco-1 {
    width: 200px; height: 200px;
    background: rgba(21, 128, 61, 0.05);
    top: -60px; right: 10%;
}

.map-deco-2 {
    width: 160px; height: 160px;
    background: rgba(184, 134, 107, 0.06);
    bottom: -40px; left: 5%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 20px 60px;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 1rem;
    }

    .hero-deco { display: none; }

    .hero-blob-1 { width: 150px; height: 150px; }
    .hero-blob-2 { width: 120px; height: 120px; }
    .hero-blob-3 { display: none; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 20px;
    }

    .contact-form-card {
        padding: 28px 22px;
    }

    .contact-form-card h2,
    .contact-info h2 {
        font-size: 1.5rem;
    }

    .contact-map-section {
        padding: 56px 16px;
    }

    .map-placeholder {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 90px 16px 50px;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-info-card {
        padding: 14px 16px;
    }

    .contact-form-card {
        padding: 24px 18px;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .contact-info-card,
    .contact-info-card:hover,
    .contact-form-card .btn-primary,
    .contact-form-card .btn-primary:hover {
        transition: none;
    }

    .contact-info-card:hover {
        transform: none;
    }

    .contact-form-card .btn-primary:hover {
        transform: none;
    }
}
