/* 晟溢大觀9 落地頁樣式
   註：本專案無 sass 編譯環境，改用 CSS 自訂變數（var）取代 SCSS $ 變數，
   故 style.scss 與 style.css 內容一致、恆保持同步。 */

:root {
    --navy: #11164d;
    --navy-2: #0c1039;
    --line: rgba(255, 255, 255, 0.45);
    --line-strong: rgba(255, 255, 255, 0.85);
    --gold: #b89b5e;
    --wrap: 1200px;
    --sans: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
    --serif: "Noto Serif TC", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--navy);
    color: #fff;
    font-family: var(--sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    background: var(--navy);
}

/* 主視覺 */
.hero img {
    width: 100%;
    height: auto;
}

/* 預約表單 */
.contact {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 8vw, 4.5rem) clamp(1.25rem, 6vw, 2.75rem) clamp(3rem, 9vw, 5rem);
    background: var(--navy);
}

.contact-watermark {
    display: block;
    width: 88%;
    max-width: 760px;
    margin: 0 auto clamp(1.5rem, 5vw, 2.5rem);
    opacity: 1;
}

.contact-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.contact-en {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    letter-spacing: 0.08em;
    text-align: center;
    color: #fff;
}

.contact-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.15rem, 4.5vw, 1.6rem);
    letter-spacing: 0.35em;
    text-align: center;
    color: #fff;
    margin: 0.35rem 0 clamp(1.75rem, 6vw, 2.75rem);
    padding-left: 0.35em;
}

.field {
    margin-bottom: 0.9rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.95rem 1.1rem;
    background: transparent;
    border: 1px solid var(--line);
    color: #fff;
    font-family: var(--sans);
    font-size: 1rem;
    border-radius: 2px;
    transition: border-color 0.2s;
}

.field textarea {
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.6rem;
    cursor: pointer;
}

/* 下拉選單內文字在多數瀏覽器由系統渲染，補深色以免白底白字 */
.field select option {
    color: #111;
}

.field select:invalid {
    color: rgba(255, 255, 255, 0.7);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--line-strong);
}

/* 同意條款 */
.agree {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 1.25rem 0 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.agree input {
    margin-top: 0.35rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: var(--gold);
}

.agree a {
    color: var(--gold);
    text-decoration: underline;
}

/* 送出 */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: var(--navy);
    border: none;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    border-radius: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-btn:hover {
    opacity: 0.88;
}

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

/* 個資彈窗 */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-box {
    background: #fff;
    color: #333;
    width: 100%;
    max-width: 560px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    padding: clamp(1.5rem, 5vw, 2.25rem);
}

.modal-box h3 {
    font-family: var(--serif);
    color: var(--navy);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content {
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.9;
}

.modal-content p {
    margin-bottom: 0.75rem;
}

.modal-btn {
    margin-top: 1.25rem;
    padding: 0.85rem;
    background: var(--navy);
    color: #fff;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border-radius: 2px;
    cursor: pointer;
}

.modal-btn:hover {
    background: var(--navy-2);
}
