/* ================================
   CONTACT FORM
   Dùng ở cả trang chủ và trang con.
   Trang con: nổi bật hơn nhờ nền gradient + card depth.
   ================================ */

.harmony-contact-section {
    background-color: #eef6e9;
    /* Nền sáng + pattern lá mờ — tách bạch hẳn với footer xanh đậm bên dưới */
    background-image:
        linear-gradient(rgba(244,249,241,.86) 0%, rgba(232,243,225,.90) 100%),
        url('/images/pattern-soft-leaf.svg');
    background-repeat: no-repeat, repeat;
    background-size: cover, 90px 90px;
    background-position: center, top left;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

/* Viền xanh mảnh trên cùng — tách với section phía trên */
.harmony-contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(12,108,2,.5) 30%, var(--primary-navy, #0C6C02) 50%, rgba(12,108,2,.5) 70%, transparent);
}

/* Vầng sáng lá mờ góc phải */
.harmony-contact-section::after {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12,108,2,.08) 0%, transparent 65%);
    pointer-events: none;
}

.harmony-contact-section .section-header-centered {
    margin-bottom: 2.5rem;
}

/* Heading tối trên nền sáng */
.harmony-contact-section .section-title-lined { color: #0C6C02; }
.harmony-contact-section .section-title-lined span {
    background: transparent;
    color: #0C6C02;
}
.harmony-contact-section .section-title-lined::before,
.harmony-contact-section .section-title-lined::after {
    background: rgba(12,108,2,.3);
    border-color: rgba(12,108,2,.25);
}

.harmony-contact-section .section-subtitle {
    color: #3a4150;
    font-size: .9375rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

/* ── Form card ─────────────────────────── */
.contact-form-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(12,108,2,.10);
    border: 1px solid #e3efdc;
}

/* Chữ mô tả trong thẻ trắng phải đậm (mặc định section là chữ trắng cho nền tối) */
.harmony-contact-section .contact-form-card .section-subtitle {
    color: #3a4150;
}

/* ── Inputs ────────────────────────────── */
.harmony-contact-section .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .9rem;
    color: #1a2540;
    background: #fafbff;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.harmony-contact-section .form-control:focus {
    border-color: var(--primary-navy, #0C6C02);
    box-shadow: 0 0 0 3px rgba(12, 108, 2,.15);
    background: #fff;
    outline: none;
}

.harmony-contact-section .form-control::placeholder {
    color: #aab0bb;
}

.harmony-contact-section .form-control.is-invalid {
    border-color: #dc3545;
    background: #fffafa;
}

.harmony-contact-section .invalid-feedback {
    font-size: .8rem;
    color: #dc3545;
    margin-top: .25rem;
}

/* ── Submit button ─────────────────────── */
.btn-submit {
    background: linear-gradient(135deg, var(--primary-navy, #0C6C02) 0%, #095201 100%);
    color: #fff;
    border: none;
    padding: .8rem 2.5rem;
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: transform .15s, box-shadow .2s, filter .2s;
    box-shadow: 0 4px 14px rgba(12, 108, 2,.35);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(12, 108, 2,.45);
    filter: brightness(1.06);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Contact info card ─────────────────── */
.contact-info {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    height: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    background: #fff;
    border: 1px solid #e3efdc;
    border-radius: 10px;
    padding: 1rem 1.125rem;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.info-item:hover {
    background: #fff;
    border-color: #9ccd86;
    box-shadow: 0 6px 16px rgba(12,108,2,.1);
}

.info-item i {
    font-size: 1.125rem;
    color: #0C6C02;
    margin-top: .15rem;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
    color: #3a4150;
    font-size: .9rem;
    line-height: 1.55;
}

.info-text a {
    color: #0C6C02;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s;
}

.info-text a:hover {
    opacity: .8;
}

/* ── Social links ──────────────────────── */
.social-links {
    display: flex;
    gap: .5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.05rem;
    text-decoration: none;
    color: #fff;
    transition: transform .2s, opacity .2s;
}

.social-links a:hover {
    transform: translateY(-2px);
    opacity: .88;
}

.social-links a[aria-label="Facebook"]  { background: #1877f2; }
.social-links a[aria-label="YouTube"]   { background: #ff0000; }
.social-links a[aria-label="TikTok"]    { background: #010101; }
.social-links a[aria-label="Zalo"]      { background: #0068ff; }
.social-links a[aria-label="LinkedIn"]  { background: #0a66c2; }
.social-links a[aria-label="Instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* ── Responsive ────────────────────────── */
@media (max-width: 991.98px) {
    .harmony-contact-section {
        padding: 3rem 0;
    }

    .contact-info {
        padding-left: 0;
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .contact-form-card {
        padding: 1.5rem 1.25rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
