/* ============================================================
   Trip Planner – Create My Trip
   ============================================================ */

/* ---------- Hero Banner ---------- */
.tp-hero {
    background: linear-gradient(135deg, #1a0a00 0%, #8c5701 50%, #c47a1a 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.tp-hero__title {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    letter-spacing: .02em;
}
.tp-hero__subtitle {
    font-size: 1.05rem;
    opacity: .88;
    max-width: 640px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}
.tp-hero__badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
}
.tp-hero__badges span {
    padding: .35rem 1.15rem;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 2rem;
    font-size: .85rem;
    letter-spacing: .01em;
}

/* ---------- Form Container ---------- */
.tp-form {
    max-width: 86rem;
    padding: 2rem 1rem 3rem;
}

/* ---------- Step Card ---------- */
.tp-step {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: .5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.tp-step__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}
.tp-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .6rem;
    background: #eb6100;
    color: #fff;
    border-radius: .3rem;
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
}
.tp-step__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #323232;
    margin: 0;
}
.tp-step__body {
    padding: 1.5rem;
}

/* ---------- Destination Groups ---------- */
.tp-dest-group {
    margin-bottom: 1.25rem;
}
.tp-dest-group:last-child {
    margin-bottom: 0;
}
.tp-dest-group__label {
    font-size: .88rem;
    font-weight: 600;
    color: #8c5701;
    margin: 0 0 .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px dashed #e8e8e8;
}
.tp-dest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.tp-dest {
    display: inline-flex;
    cursor: pointer;
}
.tp-dest input { display: none; }
.tp-dest__box {
    display: inline-block;
    padding: .3rem .85rem;
    border: 1px solid #d8d8d8;
    border-radius: .3rem;
    font-size: .88rem;
    color: #555;
    background: #f8f8f8;
    transition: all .15s ease;
    user-select: none;
}
.tp-dest__box:hover {
    border-color: #f90;
    color: #eb6100;
    background: #fff8f0;
}
.tp-dest input:checked + .tp-dest__box {
    background: #eb6100;
    color: #fff;
    border-color: #eb6100;
}

/* ---------- Field Row / Col ---------- */
.tp-field-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.tp-field-row--3 {
    gap: 1.5rem;
}
.tp-field-row--3 .tp-field-col {
    flex: 1 1 200px;
}
.tp-field-col {
    flex: 1 1 220px;
}
.tp-field-group {
    margin-bottom: 1.25rem;
}
.tp-field-group:last-child { margin-bottom: 0; }

/* ---------- Label ---------- */
.tp-label {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    color: #323232;
    margin-bottom: .4rem;
}
.field-important {
    color: #e74c3c;
    padding: 0 .3rem;
}
.tp-field-error {
    color: #e74c3c;
    font-size: .82rem;
    margin-top: .25rem;
}
.tp-field-hint {
    font-size: .78rem;
    color: #999;
    margin-top: .2rem;
}

/* ---------- Text Input ---------- */
.tp-input {
    display: block;
    width: 100%;
    height: 2.4rem;
    padding: 0 .75rem;
    border: 1px solid #d8d8d8;
    border-radius: .3rem;
    font-size: .92rem;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s;
}
.tp-input:hover { border-color: #b8b8b8; }
.tp-input:focus { border-color: #f90; outline: none; box-shadow: 0 0 0 2px rgba(255,153,0,.15); }

/* ---------- Select ---------- */
.tp-select {
    position: relative;
    display: block;
    height: 2.4rem;
}
.tp-select select {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 2rem 0 .75rem;
    border: 1px solid #d8d8d8;
    border-radius: .3rem;
    font-size: .92rem;
    color: #333;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .2s;
}
.tp-select:hover select { border-color: #b8b8b8; }
.tp-select select:focus { border-color: #f90; outline: none; }
.tp-select::after {
    position: absolute;
    right: 0;
    top: 0;
    width: 2rem;
    height: 100%;
    line-height: 2.4rem;
    text-align: center;
    color: #fff;
    font-size: .7rem;
    background: #f90;
    border-radius: 0 .3rem .3rem 0;
    pointer-events: none;
    content: "\25BC";
}

/* ---------- Calendar (Date Picker) ---------- */
.tp-calendar {
    position: relative;
    display: block;
    height: 2.4rem;
}
.tp-calendar input {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0 2.5rem 0 .75rem;
    border: 1px solid #d8d8d8;
    border-radius: .3rem;
    font-size: .92rem;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s;
}
.tp-calendar input:hover { border-color: #b8b8b8; }
.tp-calendar input:focus { border-color: #f90; outline: none; box-shadow: 0 0 0 2px rgba(255,153,0,.15); }
.tp-calendar::after {
    position: absolute;
    right: 0;
    top: 0;
    width: 2rem;
    height: 100%;
    line-height: 2.4rem;
    text-align: center;
    color: #fff;
    font-size: .85rem;
    background: #f90;
    border-radius: 0 .3rem .3rem 0;
    pointer-events: none;
    content: "\1F4C5";
}

/* ---------- Number Selector ---------- */
.tp-num {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d8d8d8;
    border-radius: .3rem;
    overflow: hidden;
    height: 2.4rem;
}
.tp-num input {
    width: 5rem;
    height: 100%;
    text-align: center;
    border: none;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    font-size: 1rem;
    color: #333;
    padding: 0;
    -moz-appearance: textfield;
}
.tp-num input::-webkit-outer-spin-button,
.tp-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-num input:focus { outline: none; background: #fafafa; }
.tp-num__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 100%;
    background: #f5f5f5;
    color: #888;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all .15s;
}
.tp-num__btn:hover {
    background: #f90;
    color: #fff;
}

/* ---------- Hotel Card Grid ---------- */
.tp-hotel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.tp-hotel-card {
    display: inline-flex;
    cursor: pointer;
}
.tp-hotel-card input { display: none; }
.tp-hotel-card__box {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1.15rem;
    border: 2px solid #d8d8d8;
    border-radius: .4rem;
    background: #f8f8f8;
    transition: all .15s ease;
}
.tp-hotel-card__box:hover {
    border-color: #f90;
    background: #fff8f0;
}
.tp-hotel-card__radio {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all .15s;
}
.tp-hotel-card__text {
    font-size: .92rem;
    color: #555;
    white-space: nowrap;
}
.tp-hotel-card--selected .tp-hotel-card__box {
    border-color: #eb6100;
    background: #fff5eb;
}
.tp-hotel-card--selected .tp-hotel-card__radio {
    border-color: #eb6100;
    background: #eb6100;
    box-shadow: inset 0 0 0 2px #fff;
}
.tp-hotel-card--selected .tp-hotel-card__text {
    color: #eb6100;
    font-weight: 600;
}

/* ---------- Textarea ---------- */
.tp-textarea {
    display: block;
    width: 100%;
    padding: .75rem;
    border: 1px solid #d8d8d8;
    border-radius: .3rem;
    font-size: .92rem;
    color: #333;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .2s;
}
.tp-textarea:hover { border-color: #b8b8b8; }
.tp-textarea:focus { border-color: #f90; outline: none; box-shadow: 0 0 0 2px rgba(255,153,0,.15); }

/* ---------- Agree Checkbox ---------- */
.tp-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .9rem;
    color: #555;
}
.tp-checkbox-label input { display: none; }
.tp-checkbox-label__box {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border: 1px solid #d8d8d8;
    border-radius: .2rem;
    background: #f2f2f2;
    flex-shrink: 0;
    transition: all .15s;
}
.tp-checkbox-label input:checked + .tp-checkbox-label__box {
    background: #ffea96;
    border-color: #ff9900;
}
.tp-checkbox-label a {
    color: #eb6100;
    text-decoration: underline;
}

/* ---------- Submit Area ---------- */
.tp-submit {
    text-align: center;
    padding: 1.5rem 0 2rem;
}
.tp-submit__agree {
    margin-bottom: 1rem;
}
.tp-submit__btn {
    display: inline-block;
    padding: .85rem 3.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    background: #eb6100;
    border: none;
    border-radius: .4rem;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .02em;
}
.tp-submit__btn:hover { background: #ff9900; }
.tp-submit__btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ---------- Form Message ---------- */
.tp-form-msg {
    margin-top: 1rem;
    padding: .75rem 1.25rem;
    border-radius: .3rem;
    font-size: .92rem;
    display: inline-block;
}
.tp-form-msg--error {
    background: #fef0f0;
    color: #e74c3c;
    border: 1px solid #fde2e2;
}

/* ---------- Error Modal ---------- */
.tp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.tp-modal--show {
    opacity: 1;
    visibility: visible;
}
.tp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.tp-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: .6rem;
    padding: 2rem 2.5rem 1.5rem;
    min-width: 300px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    transform: translateY(-20px);
    transition: transform .25s;
}
.tp-modal--show .tp-modal__dialog {
    transform: translateY(0);
}
.tp-modal__icon {
    margin-bottom: .75rem;
}
.tp-modal__msg {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.tp-modal__close {
    display: inline-block;
    padding: .5rem 2.5rem;
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    background: #eb6100;
    border: none;
    border-radius: .3rem;
    cursor: pointer;
    transition: background .2s;
}
.tp-modal__close:hover {
    background: #ff9900;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .tp-hero__title { font-size: 2rem; }
    .tp-hero__subtitle { font-size: .95rem; }
    .tp-hero__badges span { font-size: .78rem; padding: .3rem .8rem; }

    .tp-field-row,
    .tp-field-row--3 {
        flex-direction: column;
        gap: 1rem;
    }
    .tp-field-col,
    .tp-field-row--3 .tp-field-col {
        flex: 1 1 100%;
    }
    .tp-step__header { flex-wrap: wrap; }
    .tp-step__title { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .tp-hero { padding: 2rem 0; }
    .tp-hero__title { font-size: 1.6rem; }
    .tp-step__body { padding: 1rem; }
    .tp-step__header { padding: .75rem 1rem; }
    .tp-submit__btn { width: 100%; padding: .85rem 1rem; }
    .tp-hotel-grid { flex-direction: column; }
}
