/* ===== CONTACT CARD ===== */
.contact-card {
    position: relative;
    width: 60vw;
    max-width: 800px;
    min-width: 500px;

    padding: 50px;
    border-radius: 18px;

    background: var(--card);
    backdrop-filter: blur(12px);

    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}

.contact-submitting-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.82);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

.contact-submitting-overlay[hidden] {
    display: none;
}

.submitting-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(11, 79, 138, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: submitting-spin 0.8s linear infinite;
}

@keyframes submitting-spin {
    to {
        transform: rotate(360deg);
    }
}

.form-hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

/* ===== TITLE ===== */
.contact-title {
    text-align: center;
    font-size: 30px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;  /* ✅ creates space below title */
}

.contact-sub {
    text-align: center;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 25px;
}

/* ===== FORM ===== */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.20);
}

.form-input.input-error {
    border: 2px solid #ef4444 !important;
    background-color: transparent !important;
}

.form-input.input-error:focus {
    box-shadow: none;
    outline: none;
}

/* textarea */
textarea.form-input {
    height: 100px;
}

/* ===== ROW ===== */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

/* ===== INFO BOX ===== */
.info-box {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #475569;
}

.btn-primary {
    min-height: 54px;
    padding: 14px 20px;
    background: var(--btn-red);
    color: var(--surface);
    border: 1px solid rgba(232, 240, 254, 0.2);
    border-radius: 0;
    font-family: 'Material Icons';
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #ba0c2f;
}

/* layout rows */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

/* textarea */
.textarea {
    height: 100px;
    padding: 12px;
    resize: none;
}

/* info box */
.info-box {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    color: #475569;
}

.form-actions {
    display: flex;
    justify-content: flex-end;   /* ✅ move both buttons to right */
    gap: 10px;                  /* ✅ space between buttons */
    margin-top: 25px;
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 20px;
    border: 1px solid rgba(232, 240, 254, 0.2);
    background: var(--btn-red);
    border-radius: 0;
    cursor: pointer;
    color: var(--surface) !important;
    font-family: 'Material Icons';
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-cancel:hover {
    background: #ba0c2f;
}

.success-banner,
.error-banner {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-banner {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.error-banner {
    background: #ffe5e5 !important;
    color: #c62828 !important;
}

@media (max-width: 768px) {
    .contact-card {
        width: 100%;
        min-width: 0;
        padding: 24px;
    }

    .contact-title {
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .form-actions .btn-primary,
    .form-actions .btn-cancel {
        width: 100%;
    }
}
