.contact-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem 0 3rem 0;
}

.page-topbar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.page-topbar .back-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-topbar .back-link:hover {
    color: #0d6efd;
}

.page-topbar .current-page {
    color: #0f172a;
    font-weight: 600;
}

.section-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.section-card-header {
    padding: 0.35rem 0.75rem 0.3rem;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-align: center;
}

.section-card-header h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.section-card-header h2 i {
    font-size: 1.05rem;
}

.section-card-body {
    padding: 0.95rem 1.25rem 1.25rem;
}

.modern-form {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field-full {
    grid-column: 1 / -1;
}

.modern-form label {
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form input[type="tel"],
.modern-form input[type="number"],
.modern-form textarea,
.modern-form select {
    width: 100%;
    border: 1px solid #dbe7f3;
    background: #ffffff;
    border-radius: 14px;
    padding: 0.8rem 0.95rem;
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.4;
    transition: all 0.2s ease;
    box-shadow: none;
}

.modern-form textarea {
    min-height: 150px;
    resize: vertical;
}

.modern-form input:focus,
.modern-form textarea:focus,
.modern-form select:focus {
    border-color: #93c5fd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.modern-form .errorlist {
    margin: 0 0 0.4rem 0;
    padding: 0;
    list-style: none;
    color: #dc3545;
    font-size: 0.88rem;
    font-weight: 500;
}

.form-alert {
    border: 1px solid #f5c2c7;
    background: #fff1f2;
    color: #842029;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.form-alert .errorlist {
    margin: 0;
}

.captcha-card {
    background: #fbfdff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.captcha-card-header {
    padding: 0.85rem 1rem;
    background: #eef6ff;
    color: #0d6efd;
    font-weight: 700;
    border-bottom: 1px solid #dbe7f3;
}

.captcha-card-body {
    padding: 1rem;
}

.captcha-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.captcha-widget img {
    border-radius: 12px;
    border: 1px solid #dbe7f3;
    background: #ffffff;
    padding: 0.35rem;
}

.captcha-actions {
    margin-top: 0.75rem;
}

.btn-soft-secondary {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-soft-secondary:hover {
    background: #eef2f7;
    color: #0f172a;
}

.policy-box {
    border-top: 1px dashed #dbe3ec;
    padding-top: 1rem;
    margin-top: 0.2rem;
}

.modern-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
}

.modern-check input[type="checkbox"] {
    margin-top: 0.2rem;
}

.modern-check .form-check-label {
    margin-bottom: 0;
    font-weight: 500;
    color: #334155;
}

.modern-check .form-check-label a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 700;
}

.modern-check .form-check-label a:hover {
    text-decoration: underline;
}

.check-errors .errorlist {
    margin-top: 0.45rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.2rem;
}

.btn-soft-back,
.btn-soft-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0.75rem 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-soft-back {
    background: #f8fafc;
    color: #475569;
    border-color: #dbe7f3;
}

.btn-soft-back:hover {
    background: #eef2f7;
    color: #0f172a;
}

.btn-soft-submit {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

.btn-soft-submit:hover {
    background: #0b5ed7;
    color: #ffffff;
}

@media (max-width: 768px) {
    .contact-page {
        padding-top: 1rem;
    }

    .page-topbar {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .section-card-header {
        padding: 0.3rem 0.7rem 0.25rem;
    }

    .section-card-header h2 {
        font-size: 1.15rem;
    }

    .section-card-body {
        padding: 0.85rem 1rem 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions > * {
        width: 100%;
    }

    .btn-soft-back,
    .btn-soft-submit {
        width: 100%;
    }

    .captcha-widget {
        flex-direction: column;
        align-items: flex-start;
    }
}