/* ===== IMPORT FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=IBM+Plex+Sans+Thai:wght@300;400;500;600&display=swap');

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

/* ===== BODY ===== */
body {

    font-family: 'IBM Plex Sans Thai', sans-serif;

    background:
        radial-gradient(circle at top,
            rgba(255, 215, 120, .18),
            transparent 35%),
        linear-gradient(135deg,
            #120b1f 0%,
            #1a1029 40%,
            #0e0818 100%);

    min-height: 100vh;

    padding: 45px 20px;

    color: #f5f1ea;

    overflow-x: hidden;

    position: relative;
}

/* ===== STAR EFFECT ===== */
body::before {

    content: "";

    position: fixed;

    inset: 0;

    background:
        url("https://www.transparenttextures.com/patterns/stardust.png");

    opacity: .12;

    pointer-events: none;
}

/* ===== CONTAINER ===== */
.container {

    max-width: 700px;

    margin: auto;

    position: relative;

    background:
        linear-gradient(180deg,
            rgba(27, 19, 42, .96),
            rgba(18, 12, 30, .96));

    border-radius: 34px;

    padding: 45px;

    border: 1px solid rgba(255, 255, 255, .06);

    backdrop-filter: blur(16px);

    overflow: hidden;

    box-shadow:
        0 0 0 1px rgba(255, 220, 150, .05),
        0 20px 60px rgba(0, 0, 0, .5),
        0 0 60px rgba(255, 200, 120, .08);
}

/* ===== GOLD FRAME ===== */
.container::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 34px;

    padding: 1px;

    background:
        linear-gradient(135deg,
            rgba(255, 220, 160, .9),
            rgba(255, 255, 255, .03),
            rgba(212, 175, 55, .8));

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    mask-composite: exclude;

    pointer-events: none;
}

/* ===== MAGIC GLOW ===== */
.container::after {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    background:
        radial-gradient(circle,
            rgba(255, 215, 120, .14),
            transparent 70%);

    top: -160px;
    right: -160px;

    pointer-events: none;
}

/* ===== MAIN TITLE ===== */
h1 {

    text-align: center;

    margin-bottom: 38px;

    font-family: 'Cinzel', serif;

    font-size: 40px;

    font-weight: 700;

    color: #ffe8b0;

    letter-spacing: 1px;

    

    position: relative;

    text-shadow:
        0 0 10px rgba(255, 215, 120, .25),
        0 0 25px rgba(255, 215, 120, .12),
        0 6px 18px rgba(0, 0, 0, .4);
}

/* เส้นตกแต่งหัวข้อ */
h1::after {

    content: "";

    width: 120px;
    height: 2px;

    background:
        linear-gradient(to right,
            transparent,
            #f7d98b,
            transparent);

    position: absolute;

    left: 50%;
    bottom: -14px;

    transform: translateX(-50%);
}

/* ===== FORM ===== */
form {

    display: flex;

    flex-direction: column;

    gap: 18px;
}

/* ===== INPUT ===== */
input,
select,
textarea {

    width: 100%;

    padding: 16px 18px;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, .08);

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .04),
            rgba(255, 255, 255, .02));

    color: #fff;

    font-size: 15px;

    transition: .3s ease;

    outline: none;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03);
}

/* placeholder */
input::placeholder,
textarea::placeholder {

    color: rgba(255, 255, 255, .40);
}

/* focus */
input:focus,
select:focus,
textarea:focus {

    border-color: #f3c96a;

    background: rgba(255, 255, 255, .06);

    box-shadow:
        0 0 0 4px rgba(243, 201, 106, .10),
        0 0 28px rgba(243, 201, 106, .16);
}

/* ===== SELECT ===== */
select option {

    background: #1d142c;

    color: #fff;
}

/* ===== BUTTON ===== */
button,
.back-btn {

    width: 100%;

    padding: 17px;

    border: none;

    border-radius: 18px;

    background:
        linear-gradient(135deg,
            #ffe6a2 0%,
            #d9a93d 45%,
            #f8db98 100%);

    color: #1a1327;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s ease;

    text-decoration: none;

    text-align: center;

    margin-top: 10px;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(217, 169, 61, .22),
        inset 0 1px 0 rgba(255, 255, 255, .45);
}

/* เอฟเฟกต์แสง */
button::before,
.back-btn::before {

    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, .35),
            transparent);

    transition: .8s;
}

button:hover::before,
.back-btn:hover::before {

    left: 120%;
}

/* hover */
button:hover,
.back-btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 18px 40px rgba(217, 169, 61, .34);
}

/* ===== CARD ===== */
.schedule-card,
.summary-card {

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .04),
            rgba(255, 255, 255, .025));

    border-radius: 28px;

    padding: 32px;

    margin-bottom: 28px;

    border: 1px solid rgba(255, 255, 255, .07);

    backdrop-filter: blur(10px);

    position: relative;

    overflow: hidden;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 12px 30px rgba(0, 0, 0, .25);
}

/* เส้นแสงด้านบน */
.schedule-card::before,
.summary-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 85%;
    height: 1px;

    background:
        linear-gradient(to right,
            transparent,
            rgba(255, 220, 150, .55),
            transparent);
}

/* ===== CARD TITLE ===== */
.schedule-card h2,
.summary-card h2 {

    font-family: 'Cinzel', serif;

    font-size: 32px;

    font-weight: 700;

    text-align: center;

    color: #ffe3a0;

    margin-bottom: 28px;

    position: relative;

    letter-spacing: .5px;

    text-shadow:
        0 2px 12px rgba(255, 215, 120, .15),
        0 4px 15px rgba(0, 0, 0, .35);
}

/* เส้นใต้หัวข้อ */
.schedule-card h2::after,
.summary-card h2::after {

    content: "";

    width: 90px;
    height: 2px;

    background:
        linear-gradient(to right,
            transparent,
            #f7d98b,
            transparent);

    position: absolute;

    bottom: -12px;
    left: 50%;

    transform: translateX(-50%);
}

/* ===== SUMMARY ===== */
.summary-item {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    padding: 16px 0;

    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.summary-item:last-child {

    border-bottom: none;
}

.summary-item span {

    color: #cdbce9;

    font-size: 15px;
}

.summary-item strong {

    max-width: 58%;

    text-align: right;

    line-height: 1.8;

    color: #fff;
}

/* ===== SCHEDULE TITLE ===== */
.schedule-title {

    font-size: 24px;

    font-weight: 700;

    margin-top: 35px;

    margin-bottom: 24px;

    color: #f7d98b;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    text-align: center;

    letter-spacing: .5px;

    text-shadow:
        0 0 10px rgba(255, 215, 120, .18);
}

/* ===== SCHEDULE BOX ===== */
.schedule-detail {

    margin-top: 18px;

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, .045),
            rgba(255, 255, 255, .03));

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 24px;

    padding: 8px 24px;

    overflow: hidden;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03);
}

/* ===== ROW ===== */
.schedule-row {

    display: grid;

    grid-template-columns: 110px 1fr;

    gap: 22px;

    align-items: flex-start;

    padding: 24px 0;

    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.schedule-row:last-child {

    border-bottom: none;
}

/* ===== TIME ===== */
.schedule-time {

    color: #ffd978;

    font-weight: 700;

    font-size: 21px;

    line-height: 1.5;

    white-space: nowrap;

    text-shadow:
        0 0 10px rgba(255, 215, 120, .18);
}

/* ===== DESCRIPTION ===== */
.schedule-description {

    color: #f4f1ea;

    line-height: 1.95;

    font-size: 15px;
}

/* ===== SUCCESS ===== */
.success-box {

    text-align: center;

    margin-bottom: 35px;
}

.success-box h1 {

    margin-bottom: 12px;
}

.success-text {

    color: #cdbfdf;

    line-height: 1.9;

    font-size: 15px;
}

/* ===== CHECKBOX ===== */
.checkbox-box {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin: 25px 0;

    line-height: 1.8;

    color: #ddd;
}

.checkbox-box input {

    width: 18px;

    height: 18px;

    accent-color: #f3c96a;

    margin-top: 4px;
}

/* ===== BACK BUTTON ===== */
.back-btn {

    width: fit-content;

    min-width: 220px;

    margin: 38px auto 0;

    display: flex;

    justify-content: center;

    align-items: center;
}

/* ===== MOBILE ===== */
@media (max-width:768px) {

    body {

        padding: 22px 14px;
    }

    .container {

        padding: 28px;

        border-radius: 28px;
    }

    h1 {

        font-size: 34px;
    }

    .schedule-card,
    .summary-card {

        padding: 24px;
    }

    .schedule-card h2,
    .summary-card h2 {

        font-size: 26px;
    }

    .summary-item {

        flex-direction: column;

        gap: 6px;
    }

    .summary-item strong {

        max-width: 100%;

        text-align: left;
    }

    .schedule-row {

        grid-template-columns: 1fr;

        gap: 10px;

        padding: 20px 0;
    }

    .schedule-time {

        font-size: 19px;
    }

    .back-btn {

        width: 100%;
    }
}