/* ==========================================================================
   InDyne Contact Page Stylesheet
   ========================================================================== */

:root {
    /* Main Page Background (Matches the deep home page News gradient theme) */
    --contact-page-bg: linear-gradient(135deg, #0a1120 0%, #121b2d 100%);
    /* Card Component Panels (Subtle transparency layers over background) */
    --contact-bg-card: linear-gradient(135deg, rgba(18, 27, 45, 0.8), rgba(24, 36, 58, 0.6));
    --contact-bg-form: linear-gradient(135deg, rgba(18, 27, 45, 0.95), rgba(24, 36, 58, 0.85));
    --contact-panel-border: rgba(0, 212, 255, 0.15);
    /* Input Elements (Dark recessed aerospace dashboard style inputs) */
    --input-bg: rgba(7, 12, 22, 0.7);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus-border: #00d4ff;
    --input-focus-glow: rgba(0, 212, 255, 0.25);
    /* Typography & Core Accents */
    --accent: #00d4ff; /* Glowing Electric Cyan */
    --words: #ffffff; /* Crisp Main Text */
    --words-secondary: #94a3b8; /* Muted Slate Grey Text */
    /* Warning Alert Component Variables */
    --alert-bg: rgba(230, 126, 34, 0.08);
    --alert-border: rgba(230, 126, 34, 0.3);
    --alert-text: #f39c12;
}

/* --- Core Page Layout Wrappers --- */
.contact-page-wrapper {
    background: var(--contact-page-bg);
    color: var(--words);
    font-family: "Barlow", sans-serif;
    min-height: 100vh;
    padding-top: 90px; /* Pushes content down safely under your fixed navbar */
}

/* Content Container (Isolated from native Bootstrap .container grid widths) */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.section-description {
    text-align: center;
    color: var(--words-secondary);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

/* --- Contact Info Grid & Cards --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--contact-bg-card);
    border: 1px solid var(--contact-panel-border);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

    .contact-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
    }

.contact-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--words);
}

.contact-card p,
.contact-card a {
    color: var(--words-secondary);
    font-size: 1rem;
    margin: 0.35rem 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* --- Contact Form Container --- */
.contact-form {
    background: var(--contact-bg-form);
    border: 1px solid var(--contact-panel-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 3.5rem;
    margin: 4rem auto 0 auto;
    max-width: 650px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 1.75rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.6rem;
        color: var(--words-secondary);
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

/* Form Fields Styling (Targets the .form-text class from your .NET View HTML) */
.contact-form .form-text,
.contact-page-wrapper select.form-control {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--words);
    font-size: 1rem;
    outline: none;
    transition: all 0.25s ease-in-out;
}

/* For Textarea instances */
.contact-form textarea.form-text {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-text::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Animated Interaction Focus States */
.contact-form .form-text:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 14px var(--input-focus-glow);
    background: rgba(7, 12, 22, 0.9);
}

/* --- Action Submit Button --- */
.btn-submit {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 2.75rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .btn-submit:hover {
        background: var(--accent);
        color: #0a1120;
        box-shadow: 0 0 25px rgba(0, 212, 255, 0.45);
        transform: translateY(-2px);
    }

    .btn-submit i {
        margin-right: 8px;
        font-size: 0.95rem;
    }

/* --- Form Field Error Handlers --- */
.text-danger {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #ef4444 !important; /* Vivid accessible red override */
    font-weight: 500;
}
