
.application-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: #f5f5f5;
}

.application-section .form-group,
.application-section .form-grid-2 {
    max-width: 100%;
    box-sizing: border-box;
}

.application-section .form-group *,
.application-section .form-grid-2 * {
    max-width: 100%;
    box-sizing: border-box;
}

.application-section .form-group,
.application-section .form-grid-2 {
    min-width: 0;
    overflow: hidden;
}

.application-section .app-title {
    color: #1890ff;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 2rem;
}

.application-section .text-danger {
    color: #ff4d4f !important;
}

.application-section .contact-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.application-section .security-message {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.application-section .security-message i {
    margin-right: 0.5rem;
    color: #28a745;
}

.application-section .secure-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.application-section .next-step-btn {
    padding: 0.8rem 2.5rem;
    font-weight: 500;
    display: flex;
}

/* Calendar Styling */

.calendar-header {
    background-color: #f8f9fa;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.calendar-header select {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 2px;
    padding: 10px;
    height: 240px; /* Fixed height for 6 rows */
}

.application-section .calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.application-section .calendar-day:hover:not(.empty):not(.disabled) {
    background-color: #f0f0f0;
}

.application-section .calendar-day.selected {
    background-color: #1890ff;
    color: white;
}

.application-section .calendar-day.today {
    color: #1890ff;
}

.application-section .calendar-day.empty {
    visibility: hidden;
    cursor: default;
}

.application-section .calendar-day.disabled {
    color: #dee2e6;
    cursor: not-allowed;
}

.application-section .calendar-day.disabled:hover {
    background-color: transparent;
}

.calendar-day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.calendar-day-label {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #6c757d;
}

.calendar-day {
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
    font-size: 0.9rem;
}

.calendar-day:hover:not(.empty):not(.disabled) {
    background-color: #e6f7ff;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.calendar-day.today {
    color: #1890ff;
    font-weight: 600;
}

.calendar-day.selected {
    color: #fff;
    background-color: #1890ff;
    font-weight: 600;
}

.calendar-info {
    padding: 10px;
    color: #6c757d;
    font-size: 0.8rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}
align-items: center;
gap: 10px;
border-radius: 4px;
background-color: #007bff;
transition: all 0.3s ease;
}

.application-section .next-step-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Progress Steps */
.application-section .progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
    padding: 0;
}

.application-section .progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e8e8e8;
    z-index: 1;
}

.application-section .step {
    position: relative;
    text-align: center;
    z-index: 2;
    flex: 1;
}

.application-section .step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8e8e8;
    color: #999;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    font-weight: 500;
}

.application-section .step-text {
    color: #999;
    font-size: 0.9rem;
}

/* Completed step styling */

.application-section .step.completed .step-number {
    background-color: #90ee90; /* Light green for completed steps */
    border-color: #90ee90;
    color: #fff;
}

.application-section .step-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.application-section .step.active .step-text {
    color: var(--primary-color);
}

.application-section .step.completed .step-text {
    color: #28a745;
}

.application-section .step.completed .step-number {
    background-color: #95de64;
    color: #fff;
}

.application-section .step.completed .step-text {
    color: #73d13d;
    font-weight: 500;
}

.application-section .step.active .step-number {
    background-color: #1890ff;
    color: #fff;
}

.application-section .step.active .step-text {
    color: #1890ff;
    font-weight: 500;
}

.step.active .step-number {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}


/* Mobile-specific progress steps (completely hidden on mobile) */
@media (max-width: 767.98px) {
    .application-section .progress-steps {
        display: none;
    }
}

/* Form Box */
.application-section .content-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.application-section .application-form {
    position: relative;
}

.application-section .section-title {
    color: #1890ff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Form Elements */
.application-section .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.application-section .form-control {
    height: 48px !important;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    max-width: 100% !important;
    box-sizing: border-box;
}

.application-section .form-control:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.application-section .form-select {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    height: calc(2.5rem + 2px);
    max-width: 100% !important;
    box-sizing: border-box;
}

.application-section textarea.form-control {
    max-width: 100% !important;
    box-sizing: border-box;
    resize: vertical;
}

.application-section .form-text {
    color: #888;
    font-size: 0.85rem;
}

/* Traveler Sections */
.application-section .traveler-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.application-section .traveler-section .traveler-fields {
    padding: 1.5rem;
}

.application-section .traveler-header {
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.application-section .traveler-header:hover {
    background-color: #e9ecef;
}

.application-section .traveler-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.application-section .traveler-header > * {
    position: relative;
    z-index: 2;
}

.application-section .traveler-header .traveler-title {
    font-weight: 500;
}

.application-section .traveler-actions {
    display: flex;
    gap: 0.5rem;
}

.application-section .traveler-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.application-section .traveler-content {
    padding-top: 1rem;
}

/* Calendar Selects */
.application-section .calendar-selects {
    display: flex;
    gap: 0.5rem;
}

.application-section .calendar-selects .form-select:first-child {
    flex: 2;
}

.application-section .calendar-selects .form-select:last-child {
    flex: 1;
}

/* Buttons */
.application-section .btn-primary {
    background-color: #1890ff;
    border-color: #1890ff;
    font-weight: 500;
}

.application-section .btn-primary:hover {
    background-color: #40a9ff;
    border-color: #40a9ff;
}

.application-section .btn-primary:focus {
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.application-section .btn-outline-primary {
    color: #1890ff;
    border-color: #1890ff;
}

.application-section .btn-outline-primary:hover {
    background-color: #1890ff;
    border-color: #1890ff;
}

/* Alerts */
.application-section .alert {
    border-radius: 4px;
}

.application-section .alert-danger {
    background-color: #fff1f0;
    border-color: #ffccc7;
    color: #cf1322;
}

/* Error Styling */
.application-section .field-error {
    color: #f5222d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Select2 Modifications */
.application-section .select2-container--bootstrap-5 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

.application-section .form-group .select2-container--bootstrap-5,
.application-section .form-grid-2 .select2-container--bootstrap-5 {
    max-width: 100% !important;
    width: 100% !important;
}
.application-section .select2-container--bootstrap-5 .select2-selection {
    height: calc(2.5rem + 2px) !important;
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    box-sizing: border-box;
    overflow: hidden !important;
    max-width: 100% !important;
}

.application-section .select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.application-section .select2-container--bootstrap-5 .select2-selection--single {
    overflow: hidden !important;
    position: relative !important;
}

.application-section .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 0.25rem;
    padding-right: 0px !important;
    line-height: calc(2.5rem);
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: calc(100% - 0px) !important;
    display: block !important;
}

.application-section .select2-container--bootstrap-5 .select2-dropdown {
    border-color: #40a9ff;
}

.application-section .select2-container--bootstrap-5 .select2-search__field:focus {
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.application-section .select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: #e6f7ff;
    color: #1890ff;
}

.application-section .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #1890ff;
    color: white;
}

/* Review Application (Step 6) Styles */
.review-application-container {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.review-table {
    margin-bottom: 0;
    border-collapse: collapse;
    width: 100%;
}

.review-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.review-order-row {
    background-color: #f8f9fa;
    font-weight: 500;
}

.review-section-header {
    background-color: #1890ff;
    color: white;
}

.review-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.review-traveler-header {
    background-color: #e6f7ff;
    color: #1890ff;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.review-table tr:not(.review-section-header):nth-child(even) {
    background-color: #f9f9f9;
}

.review-table tr:not(.review-section-header):hover {
    background-color: #f1f5f9;
}

.edit-section {
    font-size: 0.8rem;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.edit-section:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.edit-row {
    font-size: 0.7rem;
    color: #1890ff;
    cursor: pointer;
    padding: 3px 6px;
    border: 1px solid #1890ff;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.2s;
}

.edit-row:hover {
    background-color: #1890ff;
    color: white;
}

.btn-pay {
    background-color: #52c41a;
    border-color: #52c41a;
    color: white;
}

.btn-pay:hover {
    background-color: #73d13d;
    border-color: #73d13d;
    color: white;
}

/* Step 7: Complete Process Styles */
.complete-process-container {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.application-summary {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-header {
    margin-bottom: 1rem;
}

.summary-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1890ff;
}

.estimated-delivery {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
}

.flag-icon {
    width: 24px;
    height: auto;
}

.traveler-summary-item {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    font-size: 0.95rem;
    border: 1px solid #c9c9c9;
}

.application-section .service-option {
    cursor: pointer;
    border: 2px solid #e8e8e8;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.application-section .service-option.selected {
    border-color: #1890ff;
    box-shadow: 0 0 0 1px #1890ff;
}

.application-section .service-option.selected .price {
    color: #1890ff;
}

.application-section .service-option.selected h4,
.application-section .service-option.selected h5 {
    color: #1890ff;
}

.application-section .service-option:hover {
    border-color: #40a9ff;
}

.application-section .price {
    color: #1890ff;
    font-weight: 500;
}

/* Additional Select2 Styles */
.application-section .select2-container--bootstrap-5 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

.application-section .select2-container--bootstrap-5 .select2-selection {
    height: 48px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    overflow: hidden !important;
    max-width: 100% !important;
}

.application-section .select2-container--bootstrap-5 .select2-selection--single {
    overflow: hidden !important;
    position: relative !important;
}

.application-section .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    padding-right: 0px !important;
    line-height: 1.5;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: calc(100% - 0px) !important;
    display: block !important;
}

.application-section .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 46px;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 2.5rem !important;
}

.application-section .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    border-radius: 4px;
    height: 38px;
    padding: 0.375rem 0.75rem;
}

.application-section .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    padding: 0.5rem 1rem;
}

.application-section .summary-footer {
    border-top: 1px solid #eaeaea;
    padding-top: 1rem;
}

.application-section .summary-footer {
    font-size: 10px;
}

/* Navigation buttons layout for mobile */
@media (max-width: 767.98px) {
    .application-section .form-navigation {
        flex-direction: column;
    }

    .application-section .form-navigation .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .application-section .form-navigation .btn-primary {
        order: 1;
    }

    .application-section .form-navigation .btn-outline-secondary {
        order: 2;
    }

    .application-section .date-selector-container {
        flex-direction: column;
    }

    /* Progress steps are completely hidden on mobile via the styles above */
}

/* Navigation buttons size for desktop */
@media (min-width: 768px) {
    .application-section .form-navigation .btn-primary {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .application-section .form-navigation .btn-outline-secondary {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Review & Submit Section Styles */
.application-section .review-section {
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

.application-section .review-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.application-section .review-section p {
    margin-bottom: 0.75rem;
}

.application-section .terms-group {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.application-section .terms-group a {
    text-decoration: underline;
}

.application-section #submit-application {
    padding: 0.8rem 2.5rem;
    font-weight: 500;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    background-color: #28a745;
    border-color: #28a745;
    transition: all 0.3s ease;
}

.application-section #submit-application:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Main Calendar Styles */
.application-section .date-selector {
    margin-bottom: 1.5rem;
    position: relative;
    flex: 1;
    min-width: 280px;
}

.application-section .date-selector-input {
    position: relative;
}

.application-section .date-title {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    color: #495057;
}

.application-section .calendar-container {
    position: relative;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-top: 0.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.application-section .calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.application-section .weekday {
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.application-section .calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, 1fr);
    padding: 5px;
    height: 250px; /* Fixed height to ensure consistency */
}

.application-section .calendar-day:hover {
    background-color: #f8f9fa;
}

.application-section .calendar-day.selected {
    background-color: #007bff;
    color: white;
}

.application-section .calendar-day.today {
    color: #007bff;
    font-weight: bold;
}

.application-section .calendar-day.selected.today {
    color: white;
}

.application-section .calendar-day.empty {
    cursor: default;
}

.application-section .calendar-day.disabled {
    color: #dee2e6 !important;
    cursor: not-allowed;
}

.application-section .calendar-day.disabled:hover {
    background-color: transparent;
}

/* Invalid calendar highlighting */
.application-section .date-selector.invalid .calendar-container {
    border: 1px solid #ff4d4f !important;
    background-color: #fff2f0;
}

.application-section .error .calendar-container {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.application-section .date-selectors {
    display: flex;
    gap: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.application-section .date-field {
    flex: 1;
}

.application-section .date-field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.application-section .date-field select {
    height: 48px; /* Consistent height with other form controls */
}

/* Calendar container layout */
.application-section .date-selector-container {
    display: flex;
    gap: 30px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Form Validation Styles */
.application-section .is-invalid {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}

.application-section .field-error {
    font-size: 0.75rem;
    color: #ff4d4f;
    margin-top: 0.25rem;
}

/* Gender Selection Styles */
.gender-selection-container {
    margin-bottom: 2rem;
}

.gender-label {
    display: block;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    margin-bottom: 1rem;
}

.gender-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gender-option {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.gender-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gender-card {
    border: 2px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: #f8fafc;
    transition: all 0.2s ease;
    text-align: center;
}

.gender-card:hover {
    border-color: #06b6d4;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.1);
}

.gender-option input[type="radio"]:checked + .gender-card {
    border-color: #06b6d4;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.gender-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gender-icon {
    width: 48px;
    height: 48px;
    stroke-width: 2;
    color: #64748b;
}

.gender-option input[type="radio"]:checked + .gender-card .gender-icon {
    color: #06b6d4;
}

.gender-card.male {
    color: #64748b;
    font-weight: 500;
}

.gender-card.female {
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .gender-options {
        flex-direction: column;
    }
    
    .gender-option {
        min-width: 100%;
    }
}

/* Payment Styles */
.payment-container {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 0 !important;
}

/* Remove padding in responsive view */
@media (max-width: 991px) {
    .application-section .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .application-section .content-box {
        padding: 1rem !important;
    }
    .payment-container {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .payment-left {
        padding-right: 0 !important;
    }
    .payment-body {
        height: 342px !important;
        min-height: 0 !important;
    }
    
    /* Make main-content-area full width in responsive */
    .main-content-area {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Make payment container full width in responsive */
    #payment-container:not(.d-none) ~ *,
    #payment-container:not(.d-none) {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #payment-container:not(.d-none) .main-content-area,
    .main-content-area.col-12 {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .application-section .content-box {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Step 3 responsive adjustments - only for very small screens */
@media (max-width: 440px) {
    .processing-option .form-check-label .d-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem;
        text-align: center !important;
    }
    
    .processing-option .form-check-label .text-end {
        text-align: center !important;
        width: 100%;
    }
    
    .processing-option .form-check-label > div > div {
        text-align: center !important;
    }
    
    .processing-option .form-check-label strong {
        text-align: center !important;
    }
    
    .processing-option {
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .form-navigation {
        flex-direction: column !important;
        gap: 0.75rem;
    }
    
    .form-navigation button {
        width: 100% !important;
    }
}

/* Make payment container wider when visible */
#payment-container:not(.d-none) ~ *,
#payment-container:not(.d-none) {
    max-width: 1200px !important;
}

#payment-container:not(.d-none) .main-content-area,
.main-content-area.col-12 {
    max-width: 1200px !important;
}

.payment-left {
    padding-right: 2rem;
}

.payment-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 0.5rem;
}

.payment-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
}

.security-badge i {
    color: #1890ff;
    font-size: 1.25rem;
}

.security-badge p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.payment-body {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    height: 380px;
}

.payment-iframe {
    width: 99%;
    height: 380px;
    border: none;
    display: block;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.secure-badge-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: #666;
    font-size: 0.875rem;
}

.secure-badge-footer i {
    color: #28a745;
}

.payment-right {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.order-details {
    margin-top: 1.5rem;
}

.order-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.order-row:last-child {
    border-bottom: none;
}

.order-label {
    font-weight: 500;
    color: #666;
}

.order-value {
    font-weight: 600;
    color: #333;
    text-align: end;
}

.benefits-list {
    margin-top: 1.5rem;
}

.benefits-list h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.benefit-item i {
    color: #28a745;
    margin-top: 0.25rem;
}

.benefit-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Template-specific styles moved from inline styles */
.application-section {
    background: #fff;
    padding: 2rem 0;
    position: relative;
}

#form-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 16, 29, 0.75);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#form-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.progress-steps-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    width: 100%;
    position: relative;
}

.progress-step {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

/* Los conectores deben posicionarse respecto al contenedor padre */
.progress-step .step-connector {
    position: absolute;
}

.progress-step:first-child {
    justify-content: flex-start;
}

.progress-step:nth-child(2) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.progress-step:last-child {
    justify-content: flex-end;
    margin-left: auto;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    background: #f5f5f5;
    color: #ccc;
    border: 2px solid #f5f5f5;
}

.step-circle.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.step-circle.completed {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
}

.step-circle.completed i {
    font-size: 0.75rem;
}

.step-label {
    margin-left: 0.75rem;
    font-weight: 500;
    color: #ccc;
    font-size: 0.9375rem;
}

.progress-step.active .step-label {
    color: #000;
}

.progress-step.completed .step-label {
    color: #0d9488;
}

.step-connector {
    height: 3px;
    background: #f5f5f5;
    position: absolute;
    top: 16px;
    z-index: 1;
    display: none;
}

/* Los conectores se posicionarán dinámicamente con JavaScript */
#connector-1-2,
#connector-2-3 {
    display: none;
}

.progress-step:last-child .step-connector {
    display: none;
}

.step-connector.completed {
    background: #0d9488;
    height: 3px;
}

.step-connector.half-completed {
    background: linear-gradient(to right, #0d9488 50%, #f5f5f5 50%);
    height: 3px;
}

.content-box {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
    max-width: none !important;
    width: 100%;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.traveler-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 1rem;
    background: #f5f5f5;
    overflow: hidden;
    transition: background 0.3s ease;
}

.traveler-section.expanded {
    background: #fff;
}

.traveler-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 8px;
    transition: border-radius 0.3s ease;
}

.traveler-section.expanded .traveler-header {
    border-radius: 8px 8px 0 0;
}

.traveler-header h5 {
    margin: 0;
    color: #1890ff;
}

.traveler-content {
    display: block;
    padding: 1.5rem;
    background: #fff;
}

.traveler-content.collapsed {
    display: none;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-control.error,
select.form-control.error {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

.form-control.error:focus,
select.form-control.error:focus {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}

/* Estilos para Select2 con error */
.select2-container--bootstrap-5 .select2-selection.error,
.select2-container--bootstrap-5.select2-container--error .select2-selection {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2) !important;
}

/* Evitar que los inputs en pasos no activos se marquen como inválidos */
.form-step:not(.active) .form-control:invalid {
    border-color: #d9d9d9;
    box-shadow: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-image: linear-gradient(to right, #25CBD6, #00EE8A);
    color: #000;
    outline-width: 2px;
    outline-color: transparent;
}

.order-summary-sidebar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-outline {
    background: transparent;
    border: 1px solid #1890ff;
    color: #1890ff;
}

.btn-outline:hover {
    background: #1890ff;
    color: #fff;
}

.btn-badge {
    background: #e3f2fd;
    border: none;
    border-radius: 20px;
    padding: 0.625rem 1.25rem;
    color: #1976d2;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-badge:hover {
    background: #bbdefb;
    color: #1565c0;
}

.btn-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1976d2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.order-summary {
    border-radius: 8px;
    padding: 0;
    margin-bottom: 0;
}

.order-summary-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-body {
    background: transparent !important;
}

.order-summary h5 {
    margin-bottom: 1rem;
    color: #333;
}

.order-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.order-row:last-child {
    border-bottom: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.error-message {
    color: #ff4d4f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.text-danger {
    color: #ff4d4f;
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section h6 {
    color: #1890ff;
    margin-bottom: 0.5rem;
}

.processing-option {
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.processing-option:hover {
    background-color: #f8f9fa;
}

.processing-option .form-check-input {
    cursor: pointer;
}

.processing-option .form-check-label {
    cursor: pointer;
}

/* Fast badge background and text color - always */
#processing_fast ~ .form-check-label .badge.bg-info,
#processing_fast:checked ~ .form-check-label .badge.bg-info {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

/* Ultra Premium badge background and text color - always */
#processing_ultra ~ .form-check-label .badge.bg-warning,
#processing_ultra:checked ~ .form-check-label .badge.bg-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

/* Fast option selected */
.processing-option:has(#processing_fast:checked) {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #1890ff !important;
    border-width: 2px !important;
}
#processing_fast:checked ~ .form-check-label strong {
    color: #28a745 !important;
}
#processing_fast:checked ~ .form-check-label strong.text-primary,
#processing_fast:checked ~ .form-check-label .text-end strong {
    color: #1890ff !important;
}

/* Ultra Premium option selected */
.processing-option:has(#processing_ultra:checked) {
    background-color: #fff3cd !important;
    border-color: #ff9800 !important;
    border-width: 2px !important;
}
#processing_ultra:checked ~ .form-check-label strong {
    color: #28a745 !important;
}
#processing_ultra:checked ~ .form-check-label .text-end strong {
    color: #ff9800 !important;
}

/* Standard option - selected (only bold border, no background) */
.processing-option:has(#processing-standard:checked) {
    background-color: #fff !important;
    border-color: #000 !important;
    border-width: 2px !important;
}

#processing-standard:checked ~ .form-check-label strong {
    color: #000 !important;
}

/* Fast option - selected (blue background and border) */
.processing-option:has(#processing-fast:checked) {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-color: #1890ff !important;
    border-width: 2px !important;
}

#processing-fast:checked ~ .form-check-label strong {
    color: #1890ff !important;
}

/* Ultra Premium option - selected (orange background and border) */
.processing-option:has(#processing-ultra-premium:checked) {
    background-color: #fff3cd !important;
    border-color: #ff9800 !important;
    border-width: 2px !important;
}

#processing-ultra-premium:checked ~ .form-check-label strong {
    color: #ff9800 !important;
}

/* Reset styles when not selected */
.processing-option:not(:has(input:checked)) {
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    border-width: 1px !important;
}

.summary-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-traveler-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Sidebar móvil fijo en la parte inferior - solo visible por debajo de XL (1200px) */
.mobile-bottom-sidebar {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Mobile view: less than 1200px (XL breakpoint) */
@media (max-width: 1199.98px) {
    /* Ocultar indicador de progreso en mobile */
    .progress-steps-horizontal {
        display: none !important;
    }
    
    .form-step .row:not(.g-2) {
        flex-direction: column;
    }
    
    .form-step .col-lg-8,
    .form-step .col-lg-4 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    /* Ocultar sidebar derecho en pasos 1, 2 y 3 */
    #step-1 .col-lg-4,
    #step-2 .col-lg-4,
    #step-3 .col-lg-4 {
        display: none;
    }
    
    /* Ocultar botón del paso 1 en responsive (ya aparece en mobile sidebar) */
    #step-1-form-actions {
        display: none;
    }
    
    .order-summary-sidebar {
        position: relative !important;
        top: 0 !important;
        margin-top: 2rem;
    }
    
    /* Mostrar sidebar móvil solo por debajo de XL y solo en pasos 1, 2 y 3 */
    .mobile-bottom-sidebar {
        display: block !important;
    }
    
    /* Ocultar sidebar móvil en el paso 4 (Checkout) */
    #step-4.active ~ .mobile-bottom-sidebar,
    .step-4-active .mobile-bottom-sidebar {
        display: none !important;
    }
    
    /* Añadir padding inferior al body para que el contenido no quede oculto cuando el sidebar móvil está visible */
    .application-section.mobile-sidebar-visible {
        padding-bottom: 100px;
    }
    
    /* Quitar padding cuando el sidebar móvil está oculto (paso 4) */
    .step-4-active .application-section {
        padding-bottom: 0 !important;
    }
    
    /* Evitar scroll innecesario */
    body {
        overflow-x: hidden;
    }
    
    .progress-steps-horizontal {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step-connector {
        display: none;
    }
    
    .progress-step {
        max-width: none;
        flex: 0 0 auto;
    }
}

/* Utility classes for inline styles */
.spinner-lg {
    width: 3rem;
    height: 3rem;
}

.text-lg {
    font-size: 1.1rem;
}

.steps-title-hidden {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem !important;
}

.title-main {
    color: #000;
    font-size: calc(1.125rem + .9vw);
    font-weight: 600;
    margin: 0;
}

.title-section {
    color: #000;
    font-size: 1.5rem;
    font-weight: 600;
}

.text-subtitle {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.sidebar-sticky {
    background: #fafafa;
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #e0e0e0;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.sidebar-header-text {
    font-size: .875rem;
    font-weight: 700;
    line-height: 24px;
    color: #333;
}

.sidebar-count {
    font-weight: 600;
    font-size: .75rem;
    color: #333;
}

.sidebar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-text {
    font-weight: 500;
    color: #333;
}

.sidebar-text-muted {
    font-weight: 500;
    color: #666;
}

.sidebar-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.sidebar-flex {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.icon-teal {
    color: #0d9488;
    margin-top: 0.25rem;
}

.text-security {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: rgb(11 57 71 / var(--tw-text-opacity, 1));
    line-height: 1.5;
    font-weight: 700;
}

.list-security {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.6;
}

.traveler-header-title {
    margin: 0;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
}

.icon-chevron {
    color: #000;
}

.text-muted-sm {
    font-size: 0.875rem;
}

.btn-padding-lg {
    padding: 0.875rem;
    font-weight: 600;
}

.link-teal {
    color: #0d9488;
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.payment-body-container {
    position: relative;
    min-height: 400px;
}

.loading-overlay-payment {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(0 0 0 / 60%);
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.btn-link-danger {
    padding: 0;
    text-decoration: none;
}

.spinner-sm {
    margin-left: 5px;
    font-size: 14px;
}
