/* ============================================================
   contact.css  —  TEDxSNPSU Contact Page
   Redesigned: floating labels, glassmorphism cards, red theme
   ============================================================ */

/* ── Page background / section wrapper ─────────────────── */
.app-contact-area {
    padding: 4rem 1rem 6rem;
    min-height: 100vh;
    background-color: #0a0a0a;
    background-image:
        radial-gradient(ellipse at 20% 40%, rgba(220, 38, 38, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(180, 20, 20, 0.12) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-main-wrapper {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
    margin-top: 80px;
}

/* ── Section header ─────────────────────────────────────── */
.app-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.app-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.4);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.app-heading-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 0.75rem;
}

.app-red {
    color: #dc2626;
}

.app-section-subtitle {
    font-size: 1.05rem;
    color: #9ca3af;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Two-column grid ────────────────────────────────────── */
.app-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .app-content-grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

/* ── Form card ──────────────────────────────────────────── */
.app-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.app-form-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Two-field row ──────────────────────────────────────── */
.app-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 600px) {
    .app-row {
        grid-template-columns: 1fr;
    }
}

/* ── Floating label group ───────────────────────────────── */
.app-float-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.app-float-group input,
.app-float-group textarea {
    width: 100%;
    padding: 1.1rem 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f3f4f6;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.app-float-group textarea {
    resize: vertical;
    min-height: 130px;
    padding-top: 1.4rem;
    line-height: 1.6;
}

/* Floating label */
.app-float-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #6b7280;
    pointer-events: none;
    transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease, transform 0.2s ease;
    background: transparent;
}

/* Textarea label starts at top */
.app-float-group:has(textarea) label {
    top: 1rem;
    transform: none;
}

/* Floated state: when input has a value OR is focused */
.app-float-group input:not(:placeholder-shown)~label,
.app-float-group input:focus~label,
.app-float-group textarea:not(:placeholder-shown)~label,
.app-float-group textarea:focus~label {
    top: 0.35rem;
    font-size: 0.7rem;
    color: #dc2626;
    transform: none;
}

/* Focus ring */
.app-float-group input:focus,
.app-float-group textarea:focus {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

/* Icon inside label */
.app-field-icon {
    font-size: 0.75rem;
    margin-right: 0.2rem;
    opacity: 0.75;
}

/* ── Submit button ──────────────────────────────────────── */
.app-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.app-submit-button:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.5);
}

.app-submit-button:active {
    transform: translateY(0);
}

.app-btn-icon {
    font-size: 0.95rem;
}

/* Form status message */
.app-form-status {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
    min-height: 1.2rem;
}

/* ── Right column ───────────────────────────────────────── */
.app-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Info card ──────────────────────────────────────────── */
.app-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.app-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-info-item:last-of-type {
    margin-bottom: 0;
}

.app-info-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1rem;
}

.app-info-text {
    padding-top: 0.15rem;
}

.app-info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
    margin: 0 0 0.2rem;
    font-weight: 600;
}

.app-info-value {
    font-size: 0.95rem;
    color: #e5e7eb;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
}

a.app-info-value:hover {
    color: #dc2626;
}

/* Social buttons row */
.app-social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.app-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.app-social-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
    color: #dc2626;
    transform: translateY(-2px);
}

/* ── Google Map ─────────────────────────────────────────── */
.app-map-box {
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.app-map-box iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Mobile tweaks ──────────────────────────────────────── */
@media (max-width: 768px) {
    .app-contact-area {
        padding: 2rem 1rem 4rem;
    }

    .app-main-wrapper {
        margin-top: 60px;
    }

    .app-section-header {
        margin-bottom: 2rem;
    }

    .app-form-card {
        padding: 1.5rem;
    }

    .app-info-card {
        padding: 1.5rem;
    }

    .app-map-box {
        height: 220px;
    }
}