:root {
    --primary-blue: #34506b;
    --primary-yellow: #fff7d6;
    --secondary-blue: #729cc6;
    --dark-text: #333;
    --light-text: #666;
    --gray: #aaa;
    --background: #f9f9f9;
}

.main {
    margin-top: 10rem;
    margin-bottom: 6rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 min(15px, 5%);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

h1 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: var(--primary-blue);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

h2 {
    color: var(--primary-blue);
    margin: 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e5eb;
}

h3 {
    color: var(--primary-blue);
    margin-top: 30px;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1rem;
    color: #4a6fa5;
    margin-top: 10px;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.active {
    display: block;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px min(5%, 25px);
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e1e5eb;
}

.section-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e5eb;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.page label {
    display: block;
    margin-block: 8px;
    font-weight: 500;
    color: #444;
}

.page label.required::after {
    content: '*';
    color: #e74c3c;
    margin-left: 4px;
}

.page input,
.page select,
.page textarea {
    width: 100%;
    padding: 14px;
    background: white;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    font-size: 16px;
    /* color: var(--dark-text); */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page input:focus,
.page select:focus,
.page textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

.page input::placeholder,
.page select:has(option[value=""]:checked),
.page textarea::placeholder {
    color: var(--gray);
}

.page option:not([value=""]) {
    color: var(--dark-text);
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    /* margin-top: 15px; */
}

.radio-option {
    padding: 15px;
    background: white;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    background: #f0f5ff;
    border-color: var(--primary-blue);
}

.radio-option.selected {
    background: #f0f5ff;
    border: 1px solid var(--primary-blue);
    box-shadow: 0 0 15px rgba(26, 75, 140, 0.1);
}

.radio-option input {
    display: none;
}

.radio-option label {
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--dark-text);
}

.radio-option .price {
    margin-left: auto;
    color: #2e7d32;
    font-weight: 600;
}

.description-box {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: none;
    animation: fadeIn 0.5s ease;
}

.description-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.description-title i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.description-content {
    color: #555;
    line-height: 1.6;
}

.description-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 8px;
}

.country-select {
    width: 100%;
}

.optional-service {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #d1d9e6;
}

.checkbox-option {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-option input {
    width: auto;
    margin-right: 10px;
}

.checkbox-option label {
    margin: 0;
}

.service-details {
    margin-left: 30px;
    margin-top: 15px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    box-sizing: border-box;
}

.page button {
    padding: 14px 30px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(26, 75, 140, 0.2);
}

.page button:hover {
    background: #153a6e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 75, 140, 0.25);
}

.page button:active {
    transform: translateY(0);
}

.page button.prev {
    background: #6c757d;
}

.page button.prev:hover {
    background: #5a6268;
}

.progress-bar {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    flex-wrap: wrap;
    gap: 15px;
}

/* .progress-bar::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: #e1e5eb;
            transform: translateY(-50%);
            z-index: 1;
        } */

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5eb;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 0 0 4px rgba(26, 75, 140, 0.2);
}

.step-title {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.progress-step.active .step-title {
    color: var(--primary-blue);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    background: #eee;
    padding: 10px 15px;
}

.input-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Booking 2 */
.processing-time-group {
    flex: 100%;
    max-width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.applicant-card {
    background: white;
    border-radius: 8px;
    padding: 20px min(20px, 5%);
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-blue);
}

.applicant-card:has(.btn-remove:hover) {
    border-color: #ff4d4d;
}

.applicant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.applicant-title {
    font-weight: 600;
    color: var(--primary-blue);
}

.page .btn-remove {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.page .btn-remove i {
    margin-right: 5px;
}

.page .btn-remove:hover {
    background: #bb3f31;
}

/* 删除动画效果 */
.removing {
    animation: removeCard 0.5s ease forwards;
    pointer-events: none;
}

@keyframes removeCard {
    0% {
        opacity: 1;
        transform: translateX(0);
        max-height: 500px;
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        border: none;
    }
}

.page .btn-add {
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.page .btn-add i {
    margin-right: 8px;
}

.page .btn-add:hover {
    background: #1b5e20;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    font-weight: normal;
    line-height: 1.5;
}

.file-upload {
    /* display: flex;
        flex-direction: column;
        align-items: center;*/
    padding: 10px;
    border: 2px dashed #d1d9e6;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    /* margin-bottom: 15px; */
}

.file-upload:hover {
    border-color: var(--primary-blue);
    background: #f0f5ff;
}

.file-upload i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.file-upload-text {
    text-align: center;
    color: #6c757d;
}

.filepond--panel-root {
    background-color: transparent;
}

.file-name {
    font-size: 0.9rem;
    color: var(--primary-blue);
    margin-top: 5px;
    word-break: break-all;
}

a.filepond--credits {
    display: none;
}

.note {
    font-size: 0.7rem;
    color: var(--gray);
    margin-block: 5px;
    font-style: italic;
    line-height: 1.8;
    min-height: calc(1.8rem * 3);
}

/* Booking 3 */
.summary-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e1e5eb;
}

.table-responsive {
    overflow-x: auto;
}

.page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page th,
.page td {
    padding: 15px;
    text-align: left;
    border: 1px solid #e1e5eb9d;
    text-wrap-style: pretty;
    min-width: 6rem;
}

.page th.num {
    min-width: 1.5rem;
}

.page th.long {
    min-width: 15rem;
    /* width: 100%; */
}

.page th {
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

.page ul {
    padding-left: 10px;
}

.page ::marker {
    font-size: 10px;
}

.price-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5eb;
}

.price-row:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.payment-method {
    /* border: 2px solid #e1e5eb;
    border-radius: 8px;
    padding: 20px; */
    text-align: center;
    /* cursor: pointer;
    transition: all 0.3s ease; */
}

.payment-method label {
    flex-direction: column;
}

/* .payment-method:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(26, 75, 140, 0.1);
}

.payment-method.selected {
    border-color: var(--primary-blue);
    background-color: #f0f5ff;
    box-shadow: 0 5px 15px rgba(26, 75, 140, 0.15);
} */

.payment-method i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.payment-method .method-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.payment-method .method-desc {
    font-size: 0.9rem;
    color: #6c757d;
}

.page button.pay-now {
    background: #2e7d32;
}

.page button.pay-now:hover {
    background: #1b5e20;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.photo-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e1e5eb;
}

.highlight {
    color: blue;
    font-weight: 700;
}

/* Booking 4 */
.success-icon {
    width: 100px;
    height: 100px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleUp 0.5s ease;
}

.success-icon i {
    font-size: 50px;
    color: white;
}

@keyframes scaleUp {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.order-code {
    font-size: 1.5rem;
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 30px;
    padding: 15px;
    background: #f1f8e9;
    border-radius: 8px;
    display: inline-block;
}

.bank-info {
    background: #f9fafb;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #e1e5eb;
    text-align: left;
}

.bank-title {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5eb;
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
}

.info-value {
    font-weight: 700;
}

@media (max-width: 768px) {
    .radio-group {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        position: fixed;
        left: 0;
        bottom: 0;
        background-color: #fff;
        padding: 12px;
        box-shadow: 0 0 10px rgba(0, 0, 0, .25);
        z-index: 2;
        gap: 15px;
        width: 100%;
    }

    .page button {
        /* width: 100%; */
        justify-content: center;
        font-size: 14px;
    }

    .page th,
    .page td {
        padding: 10px;
        font-size: 0.8rem;
        /* min-width: 5rem; */
    }

    .page th.long {
        min-width: 15rem;
        /* width: 100%; */
    }

    .page .btn-add {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 425px) {
    h1 {
        font-size: calc(1.5rem + 1vw);
    }

    h2 {
        font-size: calc(1rem + 0.5vw);
    }

    .section-title {
        font-size: calc(1rem + 0.8vw);
    }

    .order-code {
        font-size: calc(1rem + 0.8vw);
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon i {
        font-size: 40px;
    }

    .service-details {
        margin-left: 0;
        border-left: none;
        padding: 20px 10px;
    }

    .applicant-card {
        border-left: none;
    }
}