/* ==========================================================================
   Landing Page รายโครงการ — centralhome.co.th/{slug}
   ตัวแปรสี --lp-dark / --lp-accent กำหนดจากฐานข้อมูลใน layouts/landing.blade.php
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans Thai', 'Prompt', sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.lp-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Topbar ---------- */
.lp-topbar {
    background: var(--lp-dark);
    color: #fff;
    padding: 12px 0;
}

.lp-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lp-topbar__tel {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.lp-topbar__tel i {
    color: #e05a4d;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.lp-brand__mark {
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--lp-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
}

.lp-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.lp-brand__text strong {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.lp-brand__text small {
    font-size: 12px;
    opacity: 0.85;
    letter-spacing: 2px;
}

/* ---------- Hero ---------- */
.lp-hero {
    background: var(--lp-dark);
    color: #fff;
    padding: 28px 0 48px;
}

.lp-hero__title {
    font-size: 38px;
    font-weight: 700;
    margin: 10px 0 14px;
    letter-spacing: 0.5px;
}

.lp-hero__tagline {
    font-size: 22px;
    color: var(--lp-accent);
    margin: 0 0 12px;
}

.lp-hero__subtitle {
    font-size: 18px;
    margin: 0 0 20px;
}

.lp-hero__cover {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 22px;
}

.lp-hero__cover img {
    width: 100%;
    height: auto;
}

.lp-hero__price {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 6px;
}

.lp-hero__promo {
    font-size: 15px;
    margin: 0 0 22px;
    opacity: 0.9;
}

.lp-hero__contact {
    text-align: center;
    margin: 16px 0 0;
    font-size: 15px;
}

.lp-badge {
    display: inline-block;
    border: 1px solid #7ddc9a;
    color: #7ddc9a;
    border-radius: 999px;
    padding: 4px 16px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ---------- ปุ่ม ---------- */
.lp-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    border: 0;
    cursor: pointer;
}

.lp-btn--accent {
    background: var(--lp-accent);
    color: #1a1a1a;
}

.lp-btn--accent:hover {
    filter: brightness(0.95);
}

.lp-btn--accent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lp-btn--block {
    display: block;
    width: 100%;
}

.lp-scroll {
    display: block;
    width: 38px;
    height: 38px;
    margin: 26px auto 0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    text-align: center;
    line-height: 38px;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ---------- Section ทั่วไป ---------- */
.lp-section {
    padding: 48px 0;
}

.lp-section__title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.lp-section__subtitle {
    text-align: center;
    font-size: 17px;
    margin: 0 0 32px;
    color: #555;
}

/* ---------- จุดเด่น ---------- */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.lp-card__img {
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 4 / 3;
}

.lp-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-card__title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}

.lp-card__text {
    margin: 0;
    color: #555;
}

/* ---------- ทำเล ---------- */
.lp-location {
    border-top: 1px solid #eee;
}

.lp-location__name {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
}

.lp-location__detail {
    margin: 0 0 20px;
    color: #444;
}

.lp-location__img {
    border-radius: 6px;
    overflow: hidden;
}

.lp-location__map {
    margin-top: 20px;
}

.lp-location__map iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

/* ---------- ฟอร์ม ---------- */
.lp-formwrap {
    border-top: 1px solid #eee;
}

.lp-form {
    background: var(--lp-dark);
    color: #fff;
    border-radius: 6px;
    padding: 22px;
}

.lp-form__head {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
}

.lp-form__foot {
    text-align: center;
    margin: 18px 0 0;
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.85;
}

.lp-field {
    margin-bottom: 12px;
}

.lp-field input,
.lp-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.lp-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.lp-survey {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
}

.lp-survey__item {
    margin-bottom: 18px;
}

.lp-survey__item:last-child {
    margin-bottom: 0;
}

.lp-survey__q {
    font-weight: 600;
    margin: 0 0 8px;
}

.lp-survey__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
}

.lp-survey__opt input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.lp-survey__text,
.lp-survey__select {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
}

.lp-req {
    color: #ff8a80;
}

.lp-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin: 10px 0 14px;
    cursor: pointer;
}

.lp-consent input {
    margin-top: 4px;
}

.lp-error {
    display: block;
    color: #ffb3ab;
    font-size: 13px;
    margin-top: 4px;
    min-height: 1px;
}

.lp-thanks {
    text-align: center;
    padding: 30px 10px;
}

.lp-thanks i {
    font-size: 52px;
    color: var(--lp-accent);
}

.lp-thanks p {
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0 4px;
}

.lp-thanks small {
    opacity: 0.85;
}

/* ---------- Footer ---------- */
.lp-footer {
    background: var(--lp-dark);
    color: #fff;
    text-align: center;
    padding: 26px 0;
}

.lp-footer p {
    margin: 2px 0;
}

.lp-footer__name {
    font-weight: 600;
    letter-spacing: 1px;
}

.lp-footer__copy {
    font-size: 13px;
    opacity: 0.75;
    margin-top: 10px !important;
}

/* ---------- จอเล็ก ---------- */
@media (max-width: 767px) {
    .lp-hero__title {
        font-size: 28px;
    }

    .lp-hero__tagline {
        font-size: 18px;
    }

    .lp-hero__price {
        font-size: 30px;
    }

    .lp-grid {
        grid-template-columns: 1fr;
    }

    .lp-section {
        padding: 36px 0;
    }
}
