/* ===== Contact page — clean card style ===== */
.contact-page {
    --c-border: #E5E7EB;
    --c-text: #111827;
    --c-text-muted: #6B7280;
    --c-indigo-bg: #EEF2FF;
    --c-indigo: #4F46E5;
    --c-green: #068334;
    --c-green-hover: #15803D;
    --c-blue-bg: #EFF6FF;
    --c-blue-border: #BFDBFE;
    --c-blue-text: #1D4ED8;
    --c-red: #DC2626;

    min-height: 100vh;
    background: #F9FAFB;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 56px 20px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--c-text);
}

/* ===== Card ===== */
.contact-card {
    width: 100%;
    max-width: 760px;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
    padding: 40px;
}
@media (max-width: 600px) {
    .contact-card { padding: 28px 22px; border-radius: 16px; }
}

/* ===== Header ===== */
.contact-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}
.contact-icon-box {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--c-indigo-bg);
    color: var(--c-indigo);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.contact-card-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 4px;
    line-height: 1.3;
}
.contact-card-header p {
    font-size: 14px;
    color: var(--c-text-muted);
    margin: 0;
}

/* ===== Form layout ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 560px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 8px;
}
.form-field .req { color: var(--c-red); }
.form-field .label-hint {
    font-family: "Noto Sans Gujarati", "Inter", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--c-text-muted);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--c-text);
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    resize: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #9CA3AF; }

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--c-indigo);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.form-field textarea { min-height: 130px; line-height: 1.6; }

.field-error {
    display: block;
    font-size: 12.5px;
    color: var(--c-red);
    margin-top: 6px;
}

/* ===== Notice boxes ===== */
.contact-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.contact-notice i { margin-top: 2px; flex-shrink: 0; font-size: 15px; }
.contact-notice p { margin: 0; }

.contact-notice--info {
    background: var(--c-blue-bg);
    border: 1px solid var(--c-blue-border);
    color: var(--c-blue-text);
}
.contact-notice--info a { color: var(--c-blue-text); font-weight: 600; text-decoration: underline; }

.contact-notice--success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
}
.contact-notice--error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

/* ===== Submit button ===== */
.contact-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: var(--c-green);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.contact-submit-btn:hover { background: var(--c-green-hover); }
.contact-submit-btn:active { transform: scale(0.99); }

.btn-loader { display: none; align-items: center; gap: 5px; }
.contact-submit-btn.is-sending i,
.contact-submit-btn.is-sending .btn-label { display: none; }
.contact-submit-btn.is-sending .btn-loader { display: flex; }
.contact-submit-btn.is-sending { cursor: wait; opacity: 0.85; }

.loader-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.55);
    animation: dot-pulse 1s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: .15s; }
.loader-dot:nth-child(3) { animation-delay: .3s; }
@keyframes dot-pulse {
    0%, 100% { background: rgba(255,255,255,0.55); transform: scale(1); }
    50%      { background: #fff; transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
    .loader-dot { animation: none; }
}