﻿/* Global reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1. White background */
body {
    font-family: 'Kanit', 'Segoe UI', 'Noto Sans Thai', sans-serif;
    background: #FFFFFF;
    /* white */
    color: #000000;
    /* all black text */
}

/* Center everything */
.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    position: relative;
    isolation: isolate;
}

.landing-page.landing-home::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-image: url('../assets/images/hdiesel-sim-bg.jpg');*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

.landing-card {
    width: min(520px, 100%);
}

/* Logo */
.brand-logo {
    width: 280px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 16px;
    display: block;
}

.main-hlt {
    font-size: 22px;
    font-weight: 600;
}

/* Text colors → all black */
.eyebrow,
.promo,
.duration,
.duration-date,
.contact,
.contact-number,
h1 {
    color: #000000;
}

.contact {
    font-size: 14px;
}

.duration-date {
    font-size: 16px;
}

.text-gradient {
    background: linear-gradient(90deg, #EC3A1E 0%, #FFE300 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    margin: 0 auto;
}

.text-orange {
    background: #EA7600;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    margin: 0 auto;
}

.text-underline {
    text-decoration: underline;
    font-weight: 600;
}

.main-banner {
    width: 80%;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 8px;
    /* Optional rounded corners */
}

.promo {
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 5px;
}

.promo-detail {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

/* Buttons container */
.actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

#register-btn {
    width: 50%;
    align-self: center;
    font-size: 20px;
    font-weight: 600;
}

/* 3. Gradient Buttons #75B030 → #AFD759 */
.actions .primary,
.actions .secondary {
    width: 100%;
    border: none;
    padding: 10px 10px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    text-decoration: none !important;
    color: #FFFFFF;
    /* white text */
    background: linear-gradient(270deg, #AFD759 30%, #75B030);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.announce {
    width: 90% !important;
    border-radius: 20px !important;
    font-size: 26px !important;
}

.actions .primary:hover,
.actions .secondary:hover {
    opacity: 0.92;
}

.actions .primary:active,
.actions .secondary:active {
    transform: translateY(1px);
}

/* Desktop layout */
@media (min-width: 720px) {
    .actions {
        flex-direction: row;
        justify-content: center;
    }

    .actions .primary,
    .actions .secondary {
        font-size: 18px;
    }
}

.campaign-modal-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.35);
    padding: 24px;
    z-index: 10;
}

.campaign-modal {
    width: min(420px, 100%);
    background: #FFFFFF;
    color: #000000;
    text-align: center;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

.campaign-modal__header {
    width: 100%;
    line-height: 0;
}

.campaign-modal__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.campaign-modal__body {}

.landing-page .campaign-modal__body {
    padding-bottom: 15px;
}

.campaign-modal__badge {
    display: inline-block;
    padding: 10px 16px;
    background: #dff0bf;
    color: #49761d;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 14px;
}

.campaign-modal__title {
    font-size: 24px;
    font-weight: 600;
}

.campaign-modal__title_2 {
    font-size: 20px;
}

.campaign-modal__description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.campaign-modal__cta {
    width: 30%;
    border: none;
    padding: 4px 18px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    color: #ffffff;
    background: linear-gradient(270deg, #AFD759 30%, #75B030);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* Registration Form Styles */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.form-label-pill {
    color: #FFFFFF;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 20px;
    width: auto;
    max-width: 100%;
    background: linear-gradient(270deg, #AFD759 30%, #75B030);
    display: inline-block;
}

.form-label-pill.carrier {
    padding: 4px 40px;
    border-radius: 20px;
}

.form-label-pill-lg {
    background: #AFD759;
    color: #FFFFFF;
    padding: 6px 52px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 20px;
    width: auto;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(270deg, #AFD759 30%, #75B030);
    line-height: 1.2;
    margin-bottom: 12px;
}

.form-label-left {
    width: 100%;
    max-width: 380px;
    text-align: left;
    font-size: 16px;
    color: #777;
    padding-left: 10px;
}

.form-input {
    width: 100%;
    max-width: 380px;
    border: 1px solid #75B030;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    text-align: left;
    outline: none;
    color: #555;
    transition: all 0.2s;
}

.form-input.error {
    border-color: #EC1D24;
    background-color: #FEECEC;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    opacity: 0.6;
    pointer-events: none;
}

.form-input::placeholder {
    color: #ccc;
    letter-spacing: 1px;
}

.form-helper {
    font-size: 12px;
    color: #999;
    margin-top: -4px;
}

.form-error-text {
    width: 100%;
    max-width: 380px;
    text-align: left;
    font-size: 14px;
    color: #EC1D24;
    margin-top: -8px;
    display: none;
    padding-left: 10px;
}

.network-selector {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.network-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #75B030;
    border-radius: 50px;
    padding: 8px 16px;
    min-width: 120px;
    justify-content: center;
    cursor: pointer;
    background: #FFF;
    transition: background 0.2s;
    position: relative;
}

.network-option input[type="radio"] {
    display: none;
    /* Hide default radio */
}

/* Custom Checkbox Design */
.network-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #75B030;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.network-option input:checked+.network-checkbox {
    background: #75B030;
}

.network-option input:checked+.network-checkbox::after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.network-option:hover {
    background: #f9f9f9;
}

.network-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Terms Button */
.btn-terms {
    background: #9CCB58;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 10px 40px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-confirm {
    background: linear-gradient(270deg, #AFD759 30%, #75B030);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 12px 60px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s ease, opacity 0.15s ease;
    width: auto;
    max-width: 380px;
}

.btn-confirm:hover {
    opacity: 0.92;
}

.btn-confirm:active {
    transform: translateY(1px);
}

/* Terms Modal Styles */
.terms-modal {
    width: min(500px, 94%);
    background: #FFFFFF;
    color: #333;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.terms-header {
    background: linear-gradient(90deg, #9CCB58 0%, #AFD759 100%);
    /* Green header */
    color: #000;
    padding: 16px;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    position: relative;
    /* Curved bottom if needed, but design looks like standard header */
}

/* Semi-circle visual effect at top if desired could go here, but stick to standard for now */

.terms-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.terms-footer {
    padding: 16px 20px 24px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fff;
}

.terms-checkbox-container {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    cursor: pointer;
    justify-content: center;
    vertical-align: middle;
}

.terms-checkbox-container input {
    display: none;
}

.terms-checkbox-container .checkmark {
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid #75B030;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-checkbox-container input:checked+.checkmark {
    background: #75B030;
}

.terms-checkbox-container input:checked+.checkmark::after {
    content: "";
    width: 7px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-bottom: 4px;
}

/* When checked, show a check icon? Or just change color?
   The design shows an empty green box next to the button.
   WAIT, the image shows a large checkbox NEXT to the "Accept Terms" button (which is actually a label?).
   Image 5.png:
   [ green square ]  [ "ยอมรับเงื่อนไข" outlined/white button text? ]
   Actually, it looks like:
   [ Checkbox (Empty/Checked) ]  [ Button "ยอมรับเงื่อนไข" (Outlined Green) ]
   Let's approximate.
*/

.terms-accept-btn {
    display: inline-block;
    border: 2px solid #75B030;
    background: #fff;
    color: #75B030;
    /* Green text */
    padding: 10px 24px;
    /* Adjust padding */
    font-size: 20px;
    font-weight: 900;
    border-radius: 12px;
    /* rounded corners */
    vertical-align: middle;
    cursor: pointer;
}

.btn-confirm-grey {
    background: #D9D9D9;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    padding: 12px 60px;
    font-size: 18px;
    font-weight: bold;
    cursor: not-allowed;
    margin-top: 8px;
    width: auto;
    max-width: 380px;
    pointer-events: none;
}

.grayscale {
    background: #D9D9D9 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* DOB Picker Styles */
.dob-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
}

.dob-picker-content {
    background-color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: slideUp 0.3s ease-out;
    position: relative;
    padding-bottom: 40px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.dob-picker-body {
    display: flex;
    justify-content: space-between;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
    border-top: 1px solid #f9f9f9;
    border-bottom: 1px solid #f9f9f9;
}

.picker-column {
    flex: 1;
    overflow-y: scroll;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    text-align: center;
    scroll-snap-type: y mandatory;
    cursor: grab;
    user-select: none;
    /* Prevent text selection while dragging */
}

.picker-column:active {
    cursor: grabbing;
}

.picker-column::-webkit-scrollbar {
    display: none;
}

.picker-item {
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    scroll-snap-align: center;
}

.picker-item.selected {
    color: #F7941D;
    font-size: 20px;
    font-weight: 500;
}

.picker-highlight-bar {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 40px;
    transform: translateY(-50%);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    pointer-events: none;
    z-index: -1;
}

.dob-picker-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.picker-btn {
    flex: 1;
    padding: 8px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
}

.picker-btn-cancel {
    background-color: #fff;
    border: 2px solid #75B030;
    color: #75B030;
}

.picker-btn-confirm {
    background: linear-gradient(270deg, #AFD759 30%, #75B030);
    color: #fff;
}

/* Terms Full Popup */
.terms-full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    /* Full page white */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 20px 20px 0px 20px;
}

.terms-full-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 20px;
}

.terms-top-image {
    width: 280px;
    height: auto;
    border-radius: 12px;
    margin-bottom: -20px;
    /* Overlap header */
    z-index: 2;
}

.terms-header-pill {
    background: linear-gradient(270deg, #AFD759 30%, #75B030);
    color: #000000;
    font-weight: 600;
    font-size: 22px;
    padding: 0px 30px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    z-index: 3;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.terms-scroll-box {
    border: 2px solid #84bd00;
    /* Light green border */
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    height: 50vh;
    /* Fixed scrollable height */
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    /* Custom Scrollbar for visual match */
    scrollbar-width: thin;
    scrollbar-color: #84bd00 #f0f0f0;
}

.terms-scroll-box::-webkit-scrollbar {
    width: 8px;
}

.terms-scroll-box::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.terms-scroll-box::-webkit-scrollbar-thumb {
    background: #84bd00;
    border-radius: 4px;
}

.btn-close-terms {
    color: #fff;
    border: none;
    padding: 3px 40px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(270deg, #AFD759 30%, #75B030);
}

.terms-footer-text {
    font-size: 14px;
    color: #000;
    margin-top: 20px;
}