/* Customized Form Wrapper */
.customized_form_wrapper {
    background: #f5f5f5;
    padding: 60px 0;
    min-height: 100vh;
}

/* Progress Steps */
.form_progress_steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    gap: 0;
}

.step_item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #808080;
    color: #fff;
    padding: 15px 30px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.step_item:first-child {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    padding-left: 30px;
}

.step_item:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
    padding-right: 30px;
}

.step_item.active {
    background: #4db8a8;
}

.step_item.completed {
    background: #4db8a8;
}

.step_item .step_number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.step_item.completed .step_number::before {
    content: '✓';
}

.step_item.completed .step_number {
    background: rgba(255, 255, 255, 0.5);
}

.step_item .step_text {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

/* Form Content Area */
.form_content_area {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.form_content_area.is-success {
    justify-content: center;
}

.form_content_area.is-success .trip_preview_column {
    display: none;
}

.form_content_area.is-success .form_steps_column {
    flex: 0 1 760px;
    max-width: 760px;
}

.form_steps_column {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.trip_preview_column {
    width: 400px;
    flex-shrink: 0;
}

/* Form Steps */
.form_step {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step_title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6611;
    margin: 0 0 25px 0;
}

.sub_title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6611;
    margin: 25px 0 15px 0;
}

.form_group {
    margin-bottom: 20px;
}

.form_label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form_group .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form_group .form-control:focus {
    border-color: #4db8a8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 184, 168, 0.1);
}

.form_group textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Date Input */
.date_input_wrapper {
    position: relative;
    max-width: 500px;
}

.date_input_wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
}

.date_input_wrapper .form-control {
    padding-left: 45px;
    cursor: pointer;
}

/* Number Spinner */
.number_spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    margin: 0 auto;
}

.spinner_btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ff6611;
    background: #fff;
    color: #ff6611;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner_btn:hover {
    background: #ff6611;
    color: #fff;
}

.spinner_btn.minus {
    border-radius: 4px 0 0 4px;
}

.spinner_btn.plus {
    border-radius: 0 4px 4px 0;
}

.spinner_input {
    width: 100px;
    height: 50px;
    border: 2px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    background: #fff;
}

.spinner_input:focus {
    outline: none;
}

/* Group Size Items */
.group_size_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #fafafa;
}

.group_label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label_text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff6611;
}

.label_desc {
    font-size: 0.9rem;
    color: #666;
}

/* Destination Checkboxes */
.destination_checkboxes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.destination_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
}

.destination_checkbox span {
    display: block;
    line-height: 1.4;
}

.destination_checkbox:hover {
    border-color: #4db8a8;
    background: #f0faf8;
}

.destination_checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6611;
}

.destination_checkbox input[type="checkbox"]:checked + span,
.destination_checkbox:has(input:checked) {
    border-color: #ff6611;
    background: #fff5f0;
    font-weight: 600;
    color: #ff6611;
}

.interest_checkboxes,
.modal_interest_checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.interest_checkbox,
.modal_interest_checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
}

.interest_checkbox span,
.modal_interest_checkbox span {
    line-height: 1.4;
}

.interest_checkbox:hover,
.modal_interest_checkbox:hover {
    border-color: #4db8a8;
    background: #f0faf8;
}

.interest_checkbox input[type="checkbox"],
.modal_interest_checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6611;
    flex-shrink: 0;
}

.interest_checkbox:has(input:checked),
.modal_interest_checkbox:has(input:checked) {
    border-color: #ff6611;
    background: #fff5f0;
    font-weight: 600;
    color: #ff6611;
}

/* Form Note */
.form_note {
    margin-top: 25px;
    padding: 15px 20px;
    background: #f0f8ff;
    border-left: 4px solid #4db8a8;
    border-radius: 4px;
}

.form_note p,
.form_note .note_text {
    margin: 0;
    font-size: 0.9rem;
    color: #4db8a8;
    line-height: 1.6;
}

/* Form Actions */
.form_actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn_prev,
.btn_next,
.btn_submit {
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_next,
.btn_submit {
    background: #ff6611;
    color: #fff;
}

.btn_next:hover,
.btn_submit:hover {
    background: #e55a0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 17, 0.3);
}

.btn_prev {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.btn_prev:hover {
    border-color: #999;
    color: #333;
}

/* Success Message */
.success_message {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
}

.success_title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
}

.success_text {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0 0 20px 0;
}

.success_action {
    margin-top: 40px;
}

.btn_view_plans {
    display: inline-block;
    background: #ff6611;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn_view_plans:hover {
    background: #e55a0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 17, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Trip Preview Box */
.trip_preview_box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.preview_title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4db8a8;
    margin: 0 0 20px 0;
    text-align: center;
}

.preview_progress {
    margin-bottom: 25px;
}

.progress_bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress_fill {
    height: 100%;
    background: #4db8a8;
    border-radius: 15px;
    transition: width 0.4s ease;
}

.progress_text {
    font-size: 0.9rem;
    color: #4db8a8;
    font-weight: 600;
    text-align: center;
}

.preview_item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.preview_item:last-of-type {
    border-bottom: none;
}

.preview_label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.preview_value {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    padding-right: 40px;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.preview_edit {
    position: absolute;
    right: 0;
    top: 15px;
    font-size: 0.85rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.preview_edit:hover {
    text-decoration: underline;
    color: #0052a3;
}

.btn_start_over {
    width: 100%;
    margin-top: 25px;
    padding: 12px 30px;
    background: #808080;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_start_over:hover {
    background: #666;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .form_content_area {
        flex-direction: column;
    }

    .trip_preview_column {
        width: 100%;
        order: -1;
    }

    .trip_preview_box {
        position: static;
    }

    .destination_checkboxes {
        grid-template-columns: repeat(3, 1fr);
    }

    .interest_checkboxes,
    .modal_interest_checkboxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .step_item {
        min-width: 160px;
        padding: 12px 20px;
    }

    .step_item .step_text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .customized_form_wrapper {
        padding: 40px 0;
    }

    .form_progress_steps {
        margin-bottom: 30px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 15px;
    }

    .step_item {
        min-width: 140px;
        padding: 10px 15px;
        font-size: 13px;
    }

    .step_item .step_number {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .form_steps_column {
        padding: 30px 20px;
    }

    .step_title {
        font-size: 1.3rem;
    }

    .destination_checkboxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .interest_checkboxes,
    .modal_interest_checkboxes {
        grid-template-columns: 1fr;
    }

    .group_size_item {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .number_spinner {
        max-width: 100%;
    }

    .form_actions {
        flex-direction: column-reverse;
    }

    .btn_prev,
    .btn_next,
    .btn_submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .customized_form_wrapper {
        padding: 30px 0;
    }

    .form_progress_steps {
        gap: 0;
    }

    .step_item {
        min-width: 110px;
        padding: 8px 12px;
        font-size: 11px;
    }

    .step_item .step_text {
        font-size: 11px;
    }

    .step_item .step_number {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .form_steps_column {
        padding: 25px 15px;
    }

    .trip_preview_box {
        padding: 20px 15px;
    }

    .step_title {
        font-size: 1.2rem;
    }

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

    .success_title {
        font-size: 1.5rem;
    }

    .success_text {
        font-size: 0.9rem;
    }
}

/* ==================== Edit Modals ==================== */
.edit_modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.modal_container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow: hidden;
    z-index: 2;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal_container_small {
    max-width: 500px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal_header {
    background: #4db8a8;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal_title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.modal_close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.modal_close:hover {
    transform: scale(1.2);
}

.modal_body {
    padding: 30px 40px;
    overflow-y: auto;
    flex: 1;
}

.modal_section_title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.modal_form_group {
    margin-bottom: 15px;
}

.modal_form_row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.modal_form_row .modal_form_group {
    flex: 1;
    margin-bottom: 0;
}

.modal_form_group_small {
    flex: 0 0 100px !important;
}

.modal_form_group_large {
    flex: 1 !important;
}

.modal_form_group .form-control {
    width: 100%;
    padding: 0px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal_form_group .form-control:focus {
    border-color: #4db8a8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 184, 168, 0.1);
}

.modal_form_group textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.modal_form_group select.form-control[multiple] {
    min-height: 150px;
}

.modal_more_label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #ff6611;
    margin-bottom: 10px;
}

/* Modal Date Input */
.modal_body .date_input_wrapper {
    position: relative;
}

.modal_body .date_input_wrapper i {
    position: absolute;
    right: 15px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1.2rem;
    pointer-events: none;
}

.modal_body .date_input_wrapper .form-control {
    padding-right: 45px;
    cursor: pointer;
}

/* Modal Number Spinner */
.modal_number_spinner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.modal_spinner_btn {
    width: 45px;
    height: 45px;
    border: 2px solid #ff6611;
    background: #fff;
    color: #ff6611;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_spinner_btn:hover {
    background: #ff6611;
    color: #fff;
}

.modal_spinner_btn.minus {
    border-radius: 4px 0 0 4px;
}

.modal_spinner_btn.plus {
    border-radius: 0 4px 4px 0;
}

.modal_spinner_input {
    width: 80px;
    height: 45px;
    border: 2px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background: #fff;
}

.modal_spinner_input:focus {
    outline: none;
}

/* Modal Group Item */
.modal_group_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal_group_item:last-child {
    border-bottom: none;
}

.modal_group_label {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal_label_text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ff6611;
}

.modal_label_desc {
    font-size: 0.9rem;
    color: #666;
}

/* Modal Destination Checkboxes */
.modal_destination_checkboxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.modal_destination_checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #333;
    background: #fff;
}

.modal_destination_checkbox:hover {
    border-color: #4db8a8;
    background: #f0faf8;
}

.modal_destination_checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff6611;
}

.modal_destination_checkbox:has(input:checked) {
    border-color: #ff6611;
    background: #fff5f0;
    font-weight: 600;
    color: #ff6611;
}

.modal_footer {
    padding: 20px 40px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.btn_modal_save {
    padding: 12px 50px;
    background: #4db8a8;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn_modal_save:hover {
    background: #3ea091;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 184, 168, 0.3);
}

/* Modal 响应式设计 */
@media (max-width: 768px) {
    .modal_container {
        width: 95%;
        max-height: 90vh;
    }

    .modal_header {
        padding: 15px 20px;
    }

    .modal_title {
        font-size: 1.1rem;
    }

    .modal_body {
        padding: 20px 20px;
    }

    .modal_footer {
        padding: 15px 20px;
    }

    .modal_destination_checkboxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .modal_form_row {
        flex-direction: column;
        gap: 15px;
    }

    .modal_form_row .modal_form_group {
        margin-bottom: 0;
    }

    .modal_form_group_small,
    .modal_form_group_large {
        flex: 1 !important;
    }

    .btn_modal_save {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal_container {
        width: 98%;
        border-radius: 4px;
    }

    .modal_header {
        padding: 12px 15px;
    }

    .modal_title {
        font-size: 1rem;
    }

    .modal_body {
        padding: 20px 15px;
    }

    .modal_footer {
        padding: 12px 15px;
    }

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

    .modal_group_item {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        padding: 20px 0;
    }

    .modal_number_spinner {
        justify-content: center;
    }
}
