/* ============================================================
   Contact Us Page Styles
   Inherits CSS variables from index.css
   ============================================================ */

/* ---- Hero ---- */
.contact-hero {
    position: relative;
    padding: 160px 0 90px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #5c6bc0 100%);
    color: white;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.92;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Contact Content ---- */
.contact-content {
    padding: 80px 0 100px;
    background: #f7f8fc;
}

/* ---- Form Card ---- */
.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 44px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Labels & Inputs */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 6px;
}

.required-marker {
    color: #e53935;
    font-weight: 700;
}

.optional-marker {
    font-weight: 400;
    font-size: 0.82rem;
    color: #999;
}

.form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1.5px solid #dde0e6;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(57,73,171,0.1);
}

.form-control::placeholder {
    color: #b0b4c0;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Validation */
.form-control.is-invalid {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.08);
}

.invalid-feedback {
    font-size: 0.82rem;
}

/* Turnstile */
.turnstile-error {
    display: none;
    color: #e53935;
    font-size: 0.82rem;
    margin-top: 6px;
}

.turnstile-error.show {
    display: block;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.25s ease, transform 0.2s ease;
}

.btn-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
    transform: translateY(-2px);
}

/* Success State */
.success-state {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    color: #43a047;
    margin-bottom: 20px;
    line-height: 1;
}

.success-state h3 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.success-state p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* ---- Sidebar Info Cards ---- */
.info-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
}

.info-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
}

/* Contact Details List */
.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f5;
}

.contact-details li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-details li > i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 2px;
}

.contact-details a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

/* Social links */
.contact-social {
    display: flex;
    gap: 12px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(57,73,171,0.07);
    color: var(--primary-color);
    font-size: 1.15rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.contact-social a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Highlight Card */
.highlight-card {
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.highlight-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.highlight-card h4 {
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .contact-hero {
        padding: 140px 0 70px;
    }

    .form-card {
        padding: 36px 28px;
    }

    .contact-content {
        padding: 60px 0 80px;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        padding: 130px 0 60px;
    }

    .contact-hero .display-4 {
        font-size: 2rem;
    }

    .form-card {
        padding: 28px 20px;
    }

    .contact-content {
        padding: 40px 0 60px;
    }

    .info-card {
        padding: 24px 20px;
    }
}