:root {
    --header-height: 140px; /* điều chỉnh theo đúng chiều cao header */
}

/* Reset giống Home */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Container giống Home */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}
/* ===== Hero Section (Contact) ===== */
.hero-contact {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-dark-deep) 0%, #152238 55%, #062419 100%);
    color: white;
    padding: 120px 20px 0px;
    text-align: center;
}

.hero-contact h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-contact p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 65px 20px;
}

.contact-section h3 {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--brand-dark-deep);
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

/* ===== Map ===== */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(11, 19, 43, 0.08);
}

/* ===== Social Media ===== */
.contact-section .d-flex a {
    transition: var(--transition-luxury);
}

.contact-section .d-flex a:hover {
    color: var(--brand-green-rich) !important;
    transform: scale(1.2);
}

/* Cột căn giữa theo chiều ngang */
.contact-section .row.g-5 > div {
    display: flex;
    flex-direction: column;
    align-items: center; /* căn giữa cột theo ngang */
}

/* Text trong các <p> căn đều */
.contact-section .row.g-5 > div p {
    text-align: justify;  /* căn đều 2 bên */
    width: 100%;           /* text chiếm hết chiều rộng cột */
    margin: 0.5rem 0;
}

/* Custom premium form styles */
.contact-advice {
    background: var(--bg-light-sage) !important;
    border-top: 1px solid rgba(4, 120, 87, 0.08);
}

.contact-form {
    border-radius: 24px !important;
    border: 1px solid rgba(4, 120, 87, 0.12) !important;
    box-shadow: 0 15px 35px rgba(11, 19, 43, 0.05) !important;
    padding: 3rem !important;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-control.form-input {
    border-radius: 8px !important;
    border: 1.5px solid rgba(4, 120, 87, 0.15) !important;
    padding: 0.85rem 1rem !important;
    transition: var(--transition-luxury) !important;
    background-color: var(--bg-light-soft) !important;
    font-size: 1rem !important;
    color: var(--text-dark) !important;
}

.form-control.form-input:focus {
    border-color: var(--brand-green-rich) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1) !important;
    outline: none !important;
}

.form-group.position-relative label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 5px;
    color: var(--text-muted);
    transition: var(--transition-luxury);
    pointer-events: none;
}

/* Float label label behavior when input is focused or not empty */
.form-control.form-input:focus ~ label,
.form-control.form-input:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: #ffffff;
    color: var(--brand-green-deep);
    font-weight: 700;
}

/* Adjust textarea label positioning */
textarea.form-control.form-input ~ label {
    top: 25px;
}
textarea.form-control.form-input:focus ~ label,
textarea.form-control.form-input:not(:placeholder-shown) ~ label {
    top: 0;
}
