/* ============================================================
   PHUYENTRAVEL — page-contact.css
   Match style: single.css — variables, spacing, patterns đồng nhất
   ============================================================ */

/* ── CSS Variables — đồng nhất với single.css ─────────────── */
.pht-ct-page {
    --pht-main:       #dd3333;
    --pht-main-dark:  #bf2020;
    --pht-main-soft:  #fde9e6;
    --pht-main-soft-strong: #f8d8d4;
    --pht-bg:         #ffffff;
    --pht-bg-alt:     #f6f6f6;
    --pht-text:       #282828;
    --pht-text-light: #666666;
    --pht-line:       #e9e9e9;
    --pht-shadow:     0 24px 60px rgba(19, 28, 38, 0.08);
    --pht-radius:     13px;          /* match single.css */
    --pht-radius-lg:  18px;
    --pht-radius-sm:  8px;           /* match single.css */
    --pht-container:  1200px;        /* match single.css */
    --pht-font-title: 'Poppins', 'Outfit', Verdana, sans-serif; /* match single.css */
    --pht-font-body:  'Outfit', 'Oxygen', Verdana, sans-serif;  /* match single.css */
}

/* ── Container — padding đồng nhất với single (20px) ────────── */
.pht-ct-container {
    max-width: var(--pht-container);
    margin: 0 auto;
    padding: 0 20px;
}

body[data-theme="dark"] .pht-ct-page {
    --pht-main-soft: rgba(221, 51, 51, 0.16);
    --pht-main-soft-strong: rgba(221, 51, 51, 0.22);
    --pht-bg: #0c1422;
    --pht-bg-alt: #101b2d;
    --pht-text: #e8edf7;
    --pht-text-light: #9ba8bc;
    --pht-line: #223046;
    --pht-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    background:
        radial-gradient(circle at top left, rgba(221, 51, 51, 0.08), transparent 30%),
        var(--pht-bg);
}

/* ============================================================
   HERO
   ============================================================ */
.pht-ct-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pht-ct-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    /* scale(1) thay vì 1.02 — tránh lệch viền bên phải/trái */
    transform: scale(1);
    transition: transform 12s linear;
}

.pht-ct-hero:hover .pht-ct-hero-bg {
    transform: scale(1.06);
}

.pht-ct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.56));
    z-index: 1;
}

.pht-ct-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    padding: 0 24px 44px;
    text-align: center;
}

/* Breadcrumb — style giống pht-meta-date trong single */
.pht-ct-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-family: var(--pht-font-body);
    font-size: 13px;
    color: rgba(255,255,255,.72);
}

.pht-ct-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.pht-ct-breadcrumb a:hover { color: #fff; }

/* Hero title — cùng weight + letter-spacing với pht-post-title */
.pht-ct-hero-title {
    margin: 0 0 16px;
    font-family: var(--pht-font-title);
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.pht-ct-hero-caption {
    margin: 0;
    font-family: var(--pht-font-body);
    font-size: clamp(14px, 2vw, 17px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
}

/* Brush separator */
.pht-ct-hero-brush {
    position: absolute;
    left: 0;
    bottom: -2px;   /* loại bỏ giá trị âm lớn, dùng overflow:hidden trên hero */
    width: 100%;
    z-index: 3;
    pointer-events: none;
    line-height: 0;
}

.pht-ct-hero-brush img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 28px;
    max-height: 72px;
    object-fit: cover;
    object-position: top center;
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.pht-ct-form-section {
    background: var(--pht-bg);
    padding: 76px 0 88px;
}

/* Section head — cùng pattern với pht-widget-title */
.pht-ct-section-head {
    max-width: 620px;
    margin: 0 auto 52px;
    text-align: center;
}

.pht-ct-section-label {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--pht-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--pht-main);
}

/* Match pht-related-head sizing */
.pht-ct-section-title {
    margin: 0 0 14px;
    font-family: var(--pht-font-title);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--pht-text);
}

.pht-ct-section-desc {
    margin: 0;
    font-family: var(--pht-font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--pht-text-light);
}

/* Form grid card — cùng border-radius với single .pht-feat-img */
.pht-ct-form-grid {
    display: grid;
    grid-template-columns: minmax(280px, .92fr) minmax(0, 1.38fr);
    align-items: stretch;
    border: 1px solid rgba(221,51,51,.08);
    border-radius: var(--pht-radius-lg);
    overflow: hidden;
    background: var(--pht-bg);
    box-shadow: var(--pht-shadow);
}

body[data-theme="dark"] .pht-ct-form-grid,
body[data-theme="dark"] .pht-ct-info-box {
    border-color: var(--pht-line);
}

/* ── SIDE CARD ── */
.pht-ct-sidecard {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 38px 34px 34px;
    background: linear-gradient(180deg, var(--pht-main-soft) 0%, var(--pht-main-soft-strong) 100%);
    overflow: hidden;
}

body[data-theme="dark"] .pht-ct-sidecard {
    background:
        linear-gradient(180deg, rgba(221, 51, 51, 0.14) 0%, rgba(118, 28, 28, 0.18) 100%),
        #101b2d;
}

/* Radial glow overlay — giữ hiệu ứng nhưng gọn hơn */
.pht-ct-sidecard::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.38), transparent 40%);
    pointer-events: none;
}

.pht-ct-sidecard > * { position: relative; z-index: 1; }

/* Kicker — cùng pattern label uppercase với section-label */
.pht-ct-sidecard-kicker {
    display: inline-block;
    margin-bottom: -10px;
    font-family: var(--pht-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(40,40,40,.58);
}

body[data-theme="dark"] .pht-ct-sidecard-kicker {
    color: rgba(232, 237, 247, 0.58);
}

.pht-ct-sidecard-title {
    margin: 0;
    font-family: var(--pht-font-title);
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--pht-text);
}

.pht-ct-sidecard-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pht-ct-sideitem {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
}

/* Index circle — match pht-cat-badge radius concept */
.pht-ct-sideitem-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 20px rgba(221,51,51,.12);
    font-family: var(--pht-font-title);
    font-size: 12px;
    font-weight: 600;
    color: var(--pht-main);
}

body[data-theme="dark"] .pht-ct-sideitem-index {
    background: rgba(255,255,255,.08);
    color: #ffd5d5;
    box-shadow: none;
}

/* Sideitem title — match pht-widget-title weight/font */
.pht-ct-sideitem-title {
    margin: 3px 0 6px;
    font-family: var(--pht-font-title);
    font-size: 18px;
    font-weight: 600;
    color: var(--pht-text);
}

.pht-ct-sideitem-value {
    margin: 0;
    display: block;
    font-family: var(--pht-font-body);
    font-size: 15px;
    line-height: 1.7;
    color: rgba(40,40,40,.78);
    text-decoration: none;
    word-break: break-word;
}

body[data-theme="dark"] .pht-ct-sideitem-value,
body[data-theme="dark"] .pht-ct-sidecard-note {
    color: rgba(232, 237, 247, 0.74);
}

a.pht-ct-sideitem-value:hover { color: var(--pht-main); }

.pht-ct-sidecard-note {
    margin: 0;
    font-family: var(--pht-font-body);
    font-size: 15px;
    line-height: 1.75;
    color: rgba(40,40,40,.74);
}

/* Social links — match pht-author-socials style */
.pht-ct-sidecard-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pht-ct-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;          /* match pht-author-socials border-radius */
    background: rgba(0,0,0,.08);
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background .2s, color .2s, transform .15s;
}

body[data-theme="dark"] .pht-ct-social-link {
    background: rgba(255,255,255,.08);
    color: #eef3fb;
}

.pht-ct-social-link:hover {
    background: var(--pht-main);
    color: #fff;
    transform: translateY(-1px); /* match pht-sh hover */
}

/* ── FORM WRAP ── */
.pht-ct-form-wrap {
    padding: 42px 44px 40px;
    background: var(--pht-bg);
}

body[data-theme="dark"] .pht-ct-form-wrap {
    background: #101b2d;
}

.pht-cf-head { margin-bottom: 28px; }

/* cf-title — match pht-post-title weight/letter-spacing */
.pht-cf-title {
    margin: 0 0 12px;
    font-family: var(--pht-font-title);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.03em;
    color: #141414;
}

body[data-theme="dark"] .pht-cf-title {
    color: #f5f7fb;
}

.pht-cf-desc {
    max-width: 620px;
    margin: 0;
    font-family: var(--pht-font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--pht-text-light);
}

/* Alert — cùng border-radius với tag-chip */
.pht-ct-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px 22px;
    border-radius: var(--pht-radius-sm);
    font-family: var(--pht-font-body);
    font-size: 14px;
    line-height: 1.65;
}

.pht-ct-alert--success {
    background: #f0f9f0;
    border: 1px solid #bfe0bf;
}

.pht-ct-alert--error {
    background: #fdf0f0;
    border: 1px solid #f5c6c6;
}

body[data-theme="dark"] .pht-ct-alert--success {
    background: rgba(42, 110, 42, 0.16);
    border-color: rgba(104, 179, 104, 0.34);
}

body[data-theme="dark"] .pht-ct-alert--error {
    background: rgba(140, 32, 32, 0.16);
    border-color: rgba(245, 117, 117, 0.28);
}

.pht-ct-alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 18px;
}

.pht-ct-alert--success .pht-ct-alert-icon,
.pht-ct-alert--success p { color: #2a6e2a; }

.pht-ct-alert--error .pht-ct-alert-icon,
.pht-ct-alert--error p { color: #8c2020; }

.pht-ct-alert p { margin: 0; }

/* Form fields */
.pht-cf-row { margin-bottom: 20px; }

.pht-cf-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.pht-cf-row--submit {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.pht-cf-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* Label — match comment-form label từ single.css */
.pht-cf-label {
    font-family: var(--pht-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--pht-text);
}

.pht-cf-req {
    margin-left: 2px;
    color: var(--pht-main);
}

/* Input/textarea — match comment-form inputs từ single.css */
.pht-cf-input,
.pht-cf-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    border: 1.5px solid #f1dcdc;
    border-radius: var(--pht-radius-sm);
    outline: none;
    background: #fffdfd;
    font-family: var(--pht-font-body);
    font-size: 14px;
    color: var(--pht-text);
    transition: border-color .2s, background .2s, box-shadow .2s;
    -webkit-appearance: none;
    appearance: none;
}

body[data-theme="dark"] .pht-cf-input,
body[data-theme="dark"] .pht-cf-textarea {
    border-color: #2a3950;
    background: #0d1726;
    color: #edf2fb;
}

.pht-cf-input::placeholder,
.pht-cf-textarea::placeholder { color: #b5aaaa; }

body[data-theme="dark"] .pht-cf-input::placeholder,
body[data-theme="dark"] .pht-cf-textarea::placeholder { color: #7f8ca2; }

.pht-cf-input:focus,
.pht-cf-textarea:focus {
    border-color: var(--pht-main);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(221,51,51,.08);
}

body[data-theme="dark"] .pht-cf-input:focus,
body[data-theme="dark"] .pht-cf-textarea:focus {
    background: #122033;
    box-shadow: 0 0 0 4px rgba(221,51,51,.14);
}

.pht-cf-input.is-invalid,
.pht-cf-textarea.is-invalid {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224,82,82,.08);
}

.pht-cf-input.is-valid,
.pht-cf-textarea.is-valid { border-color: #4a9e5c; }

.pht-cf-textarea {
    min-height: 170px;
    resize: vertical;
}

/* Submit button — match pht-cf-btn với comment submit từ single.css */
.pht-cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;             /* match single comment submit padding */
    border: none;
    border-radius: 6px;             /* match single submit radius */
    background: #000;               /* match single: background: #000 */
    color: #fff;
    cursor: pointer;
    font-family: var(--pht-font-title);
    font-size: 14px;
    font-weight: 500;               /* match single: font-weight: 500 */
    letter-spacing: 0;
    text-transform: capitalize;
    transition: background .2s, gap .2s, transform .18s;
}

.pht-cf-btn:hover {
    background: var(--pht-main);   /* match single hover */
    gap: 16px;
}

.pht-cf-btn:active { transform: translateY(1px); }

.pht-cf-btn.is-loading {
    pointer-events: none;
    opacity: .72;
}

.pht-cf-btn-icon {
    font-size: 14px;
    transition: transform .2s;
}

.pht-cf-btn:hover .pht-cf-btn-icon { transform: translateX(3px); }

/* ============================================================
   INFO SECTION
   ============================================================ */
.pht-ct-info-section {
    background: #fafafa;            /* match pht-related-wrap background */
    padding: 72px 0 80px;
    border-top: 1px solid var(--pht-line); /* match pht-related-wrap */
}

body[data-theme="dark"] .pht-ct-info-section {
    background: #101b2d;
}

.pht-ct-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;                      /* match pht-related-grid gap */
}

/* Info box — match pht-related-item card feel */
.pht-ct-info-box {
    padding: 40px 28px 36px;
    border: 1px solid var(--pht-line);
    border-radius: var(--pht-radius); /* match single --pht-radius: 13px */
    background: var(--pht-bg);
    text-align: center;
    transition: box-shadow .28s, transform .28s;
}

body[data-theme="dark"] .pht-ct-info-box {
    background: #0f1828;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
}

.pht-ct-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 34px rgba(0,0,0,.09);
}

body[data-theme="dark"] .pht-ct-info-box:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.pht-ct-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--pht-main);
    color: #fff;
    font-size: 22px;
    transition: background .22s, transform .22s;
}

.pht-ct-info-box:hover .pht-ct-info-icon {
    transform: scale(1.06);
    background: var(--pht-main-dark);
}

/* info-title — match pht-related-title font/weight */
.pht-ct-info-title {
    margin: 0 0 10px;
    font-family: var(--pht-font-title);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--pht-text);
}

/* info-value — match pht-related-excerpt color */
.pht-ct-info-value {
    display: block;
    margin: 0;
    font-family: var(--pht-font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--pht-text-light);
    text-decoration: none;
}

a.pht-ct-info-value:hover { color: var(--pht-main); }

/* ============================================================
   RESPONSIVE — pattern breakpoints đồng nhất với single.css
   ============================================================ */

/* ── Tablet: 769px – 1024px ── */
@media (max-width: 1024px) {
    .pht-ct-container { padding: 0 20px; }

    .pht-ct-hero { min-height: 380px; }

    .pht-ct-form-section,
    .pht-ct-info-section { padding-bottom: 66px; }

    .pht-ct-section-head { margin-bottom: 40px; }

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

    .pht-ct-sidecard { padding: 34px 30px; }

    .pht-ct-sidecard-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px 26px;
    }
}

/* ── Mobile: ≤ 768px ── (match single.css breakpoint) */
@media (max-width: 768px) {
    .pht-ct-container { padding: 0 15px; }

    .pht-ct-hero { min-height: 330px; }

    .pht-ct-hero-inner { padding: 0 20px 34px; }

    .pht-ct-form-section,
    .pht-ct-info-section { padding: 46px 0 54px; }

    .pht-ct-section-head { margin-bottom: 32px; }

    .pht-ct-sidecard-list,
    .pht-cf-row--2,
    .pht-ct-info-grid { grid-template-columns: 1fr; }

    .pht-ct-info-grid {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        gap: 18px;
    }

    .pht-ct-sidecard,
    .pht-ct-form-wrap { padding: 30px 24px; }

    .pht-cf-title { font-size: clamp(1.65rem, 6vw, 2.15rem); }
}

/* ── Small mobile: ≤ 480px ── (match single.css breakpoint) */
@media (max-width: 480px) {
    .pht-ct-container { padding: 0 16px; }

    .pht-ct-hero { min-height: 290px; }

    .pht-ct-sidecard,
    .pht-ct-form-wrap { padding: 26px 18px; }

    .pht-ct-sideitem {
        grid-template-columns: 42px 1fr;
        gap: 12px;
    }

    .pht-ct-sideitem-index {
        width: 38px;
        height: 38px;
    }

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

    .pht-cf-row--submit { display: block; }
}
