/* ========== BASE ========== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: "Alumni+Sans", system-ui, sans-serif;
    background-color: #1a1a1a;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* ========== THEME ========== */

:root {
    --primary: #256af4;
    --bg-dark: #101622;
    --text-light: #fff;
    --muted-light: rgba(255, 255, 255, 0.6);
    --muted-dark: #90a4cb;
    --card-dark: #101623;
    --card-icon-light: rgba(0, 0, 0, 0.05);
    --card-icon-dark: #222f49;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: #222f49;
}



/* ========== LAYOUT CHUNG ========== */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 16px;
}

.page__inner {
    width: 100%;
    justify-items: center;
    padding: 20px 16px;
}

/* ========== HEADER ========== */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.dark .header {
    border-bottom-color: var(--border-dark);
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.dark .header__brand {
    color: var(--text-dark);
}

.header__logo {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.header__title {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Nav + CTA */

.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Ẩn nav + nút trên mobile giống hidden md:flex */
.header__nav,
.header__cta {
    display: none;
}

@media (min-width: 768px) {
    .header {
        padding: 12px 40px;
    }

    .header__nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .header__cta {
        display: inline-flex;
    }
}

.header__link {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.8);
    transition: color 0.2s ease;
}

.dark .header__link {
    color: rgba(255, 255, 255, 0.8);
}

.header__link:hover {
    color: var(--primary);
}

.dark .header__link:hover {
    color: var(--primary);
}

.header__link--active {
    color: var(--primary);
    font-weight: 700;
}

/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    padding: 0 16px;
    height: 40px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn--primary:hover {
    background-color: #1f56c7;
}

.btn--full {
    width: 100%;
    height: 48px;
    font-size: 1rem;
}

/* ========== CONTACT PAGE ========== */

.contact {
    padding: 32px 16px 40px;
    background-color: #262626;
}

@media (min-width: 768px) {
    .contact {
        padding: 40px 40px 56px;
    }
}

/* Intro */

.contact__intro {
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .contact__intro {
        margin-bottom: 48px;
    }
}

.contact__intro-text {
    max-width: 640px;
}

.contact__title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    color: var(--text-light);
    color: #fff;
}

.dark .contact__title {
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .contact__title {
        font-size: 2.25rem;
    }
}

.contact__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}

.dark .contact__subtitle {
    color: var(--muted-dark);
}

/* Grid */

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 15rem;
    }
}

/* ========== CONTACT INFO ========== */

.contact-info__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-light);
}

.dark .contact-info__title {
    color: var(--text-dark);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--bg-light);
    margin-bottom: 16px;
}

.dark .contact-card {
    background-color: var(--card-dark);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-icon-light);
    color: var(--text-light);
    flex-shrink: 0;
}

.dark .contact-card__icon {
    background-color: var(--card-icon-dark);
    color: var(--text-dark);
}

.contact-card__label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-light);
}

.dark .contact-card__label {
    color: var(--text-dark);
}

.contact-card__value {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-light);
}

.dark .contact-card__value {
    color: var(--muted-dark);
}

/* ========== FORM ========== */

.contact-form__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-light);
}

.dark .contact-form__title {
    color: var(--text-dark);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.dark .form__field label {
    color: rgba(255, 255, 255, 0.8);
}

.form__field input,
.form__field textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
}

.dark .form__field input,
.dark .form__field textarea {
    background-color: #222f49;
    color: var(--text-dark);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.dark .form__field input::placeholder,
.dark .form__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form__field input:focus,
.form__field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.map {
    width: 100%;
    height: 400px;
}

/* ============================================================
   CONTACT (galaxy) — 2 cột (Get in touch / Information), panel neon
   tối, input tối, map full-width. (Nền galaxy + hero page-header +
   sao + mascot roamer kế thừa từ index.css/index.js.)
============================================================ */
.kc-contact {
    position: relative;
}
.kc-contact .container {
    position: relative;
    z-index: 1;
}
.kc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    width: 100%;
    align-items: start;
}
@media (max-width: 820px) {
    .kc-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Panel tối + viền neon (vẫn dùng cho cột Information) */
.kc-contact-panel {
    background: rgba(6, 20, 16, 0.55);
    border: 1px solid rgba(61, 248, 127, 0.35);
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45),
        inset 0 0 30px rgba(32, 240, 122, 0.05);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Form: BỎ khung/nền panel ngoài — mỗi field tự có khung ảnh (giống demo) */
.kc-contact-panel--bare {
    background: none;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 0;
}

/* Form */
.kc-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.kc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 520px) {
    .kc-form-row {
        grid-template-columns: 1fr;
    }
}
.kc-field {
    position: relative;
    display: flex;
    align-items: center;
}
/* CŨ: icon bên trái + input/textarea viền CSS + nền tối — xem git history
.kc-field > i {
    position: absolute;
    left: 12px;
    top: 14px;
    color: rgba(61, 248, 127, 0.75);
    font-size: 1.1rem;
    pointer-events: none;
}
.kc-field input,
.kc-field textarea {
    width: 100%;
    background: rgba(2, 8, 6, 0.6);
    border: 1px solid rgba(61, 248, 127, 0.28);
    border-radius: 8px;
    color: #e5e7eb;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    padding: 12px 12px 12px 38px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.kc-field textarea {
    resize: vertical;
    min-height: 120px;
}
.kc-field input::placeholder,
.kc-field textarea::placeholder {
    color: rgba(229, 231, 235, 0.45);
}
.kc-field input:focus,
.kc-field textarea:focus {
    border-color: var(--kc-green, #3df87f);
    box-shadow: 0 0 0 2px rgba(61, 248, 127, 0.18);
}
*/

/* MỚI: icon bên PHẢI (giống demo) */
.kc-field > i {
    position: absolute;
    right: 14px;
    top: 15px;
    color: rgba(105, 147, 132, 0.85);
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 1;
}
/* Nền field = ẢNH khung có sẵn (khung xanh bo góc), bỏ border/nền CSS */
.kc-field input,
.kc-field textarea {
    width: 100%;
    background: url("/public/Image/New_website/index/fr_8 1.png") center / 100% 100% no-repeat;
    border: none;
    color: #e5e7eb;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    padding: 15px 42px 15px 18px;
    outline: none;
    transition: filter 0.2s ease;
}
.kc-field textarea {
    background-image: url("/public/Image/New_website/index/fr_9 1.png");
    resize: none;
    min-height: 150px;
    padding-top: 16px;
}
.kc-field input::placeholder,
.kc-field textarea::placeholder {
    color: rgba(229, 231, 235, 0.55);
}
.kc-field input:focus,
.kc-field textarea:focus {
    filter: drop-shadow(0 0 8px rgba(32, 240, 122, 0.45));
}

/* Nút gửi (btn.png xanh như site) */
.kc-contact-btn {
    align-self: flex-start;
    background: url("/public/Image/New_website/index/btn.png") center / 100% 100% no-repeat;
    border: none;
    cursor: pointer;
    height: 48px;
    min-width: 180px;
    padding: 0 30px;
    color: #06341a;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.kc-contact-btn:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 12px rgba(32, 240, 122, 0.6));
}

/* Information */
/* CŨ: item gạch chân ngăn cách + icon có tile nền xanh — xem git history
.kc-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(61, 248, 127, 0.12);
}
.kc-info-item:last-child {
    border-bottom: none;
}
.kc-info-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(32, 240, 122, 0.1);
    border: 1px solid rgba(61, 248, 127, 0.35);
    color: var(--kc-green, #3df87f);
    font-size: 1.3rem;
}
*/

/* MỚI: mỗi mục là 1 ô khung ảnh riêng (fr_12), xếp dọc cách đều, không panel ngoài */
.kc-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.kc-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 24px;
    min-height: 80px;
    background: url("/public/Image/New_website/index/fr_12 1.png") center / 100% 100% no-repeat;
}
.kc-info-icon {
    flex-shrink: 0;
    width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(105, 147, 132, 0.85);
    font-size: 1.5rem;
}
.kc-info-label {
    margin: 0;
    color: var(--kc-green, #3df87f);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.kc-info-value {
    margin: 0.15rem 0 0;
    color: #e5e7eb;
    font-size: 0.98rem;
}

/* Map full-width */
.kc-map-section {
    width: 100%;
    margin-top: 3rem;
}
.kc-map {
    width: 100%;
    height: 420px;
    display: block;
    border: 0;
    filter: saturate(0.9) brightness(0.95);
}