/* ND369 — Contact page */
/* =========================================
   TRANG LI?N H? (CONTACT PAGE) ? ??ng b? brand
   ========================================= */

body.page-template-page-contact #content.site-content > .ast-container,
body.page-template-page-contact-php #content.site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 16px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

body.page-template-page-contact #primary,
body.page-template-page-contact-php #primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.contact-page {
    background: #fff;
}

.contact-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-color, #004d99) 0%, #003366 100%);
    padding: 48px 20px;
    text-align: center;
    color: #fff;
    width: 100%;
}

.contact-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color, #cc3300);
    color: #fff;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
}

.contact-hero-inner h1 {
    color: #fff !important;
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.25;
    text-align: center !important;
}

.contact-hero-inner p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
}

/* Quick strip */
.contact-quick-strip {
    background: var(--bg-light, #f4f8ff);
    border-bottom: 1px solid rgba(0, 77, 153, 0.1);
    padding: 28px 0;
}

.contact-quick-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    text-align: center;
}

.contact-quick-strip-text {
    margin: 0;
    color: var(--primary-color, #004d99);
    font-weight: 700;
    font-size: 1.05rem;
}

.contact-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.contact-btn--call {
    background: var(--secondary-color, #cc3300);
    color: #fff !important;
}

.contact-btn--call:hover {
    background: var(--accent-color, #ff6600);
    color: #fff !important;
    transform: translateY(-1px);
}

.contact-btn--zalo {
    background: var(--primary-color, #004d99);
    color: #fff !important;
}

.contact-btn--zalo:hover {
    background: #003366;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Main 2-col */
.contact-main {
    padding: 48px 0;
    background: #fff;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
    margin: 0;
}

.contact-block-header {
    margin: 0 0 24px;
    text-align: left;
}

.contact-block-header--center {
    text-align: center;
    margin-bottom: 28px;
}

.contact-block-header h2 {
    color: var(--primary-color, #004d99);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.3;
}

.contact-block-header p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form-section,
.contact-info-box {
    background: #fff;
    border: 1px solid #e4ebf3;
    border-radius: 12px;
    padding: 32px 28px;
    height: 100%;
    box-sizing: border-box;
    box-shadow: none;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.contact-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

.info-item:first-child {
    padding-top: 0;
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    display: block;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-content,
.info-text,
.info-link {
    color: var(--primary-color, #004d99);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
}

.info-link:hover {
    color: var(--secondary-color, #cc3300);
}

.nd369-contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group .required {
    color: var(--secondary-color, #cc3300);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}

.form-group select {
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #004d99);
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-submit-contact {
    width: 100%;
    background: var(--secondary-color, #cc3300);
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

.btn-submit-contact:hover {
    background: var(--accent-color, #ff6600);
    transform: translateY(-1px);
}

.contact-success-message,
.contact-error-message {
    padding: 14px 16px;
    border-radius: 8px;
    margin-top: 18px;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-success-message {
    background: #e8f7ee;
    color: #1e6b3a;
    border: 1px solid #b7e0c4;
}

.contact-error-message {
    background: #fdecea;
    color: #8a1f1a;
    border: 1px solid #f5c6cb;
}

/* Map full width */
.contact-map-section {
    padding: 48px 0 56px;
    background: var(--bg-light, #f4f8ff);
}

.map-embed-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e4ebf3;
    background: #fff;
}

.map-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-placeholder-contact {
    background: #fff;
    border: 1px dashed #c5d3e3;
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-placeholder-contact p {
    color: #666;
    font-size: 1rem;
    margin: 8px 0;
}

.map-placeholder-contact .map-note {
    font-size: 0.9rem;
    color: #999;
    margin-top: 12px;
}

.map-placeholder-contact a {
    color: var(--primary-color, #004d99);
    text-decoration: underline;
}

.contact-extra {
    padding: 0 0 48px;
    background: #fff;
}

.contact-page-content {
    background: #fff;
    padding: 32px 0 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .contact-page-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-section,
    .contact-info-box {
        height: auto;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 36px 16px;
    }

    .contact-main,
    .contact-map-section {
        padding: 36px 0;
    }

    .contact-form-section,
    .contact-info-box {
        padding: 24px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-quick-buttons {
        width: 100%;
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        min-width: 0;
    }

    .map-embed-wrapper {
        height: 280px;
    }
}
