/* Chinese E-Visa Form Styles */
.evisa-chinese {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "SimSun", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.evisa-chinese h3 {
    color: #2c5aa0;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.evisa-chinese h4 {
    color: #2c5aa0;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 15px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.evisa-chinese .form-subtitle {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 5px 5px 0;
}

/* Ensure form subtitle wraps on narrow screens to avoid horizontal overflow */
.evisa-chinese .form-subtitle {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.evisa-chinese .form-row {
    display: block;
    margin-bottom: 20px;
}

.evisa-chinese .form-row .form-group {
    width: 100%;
    margin-bottom: 15px;
}

.evisa-chinese .form-row.two-column .form-group,
.evisa-chinese .form-row.three-column .form-group {
    width: 100%;
    margin-bottom: 15px;
}

/* ETA Specific Fields Styling */
.eta-specific-fields {
    /* keep this selector available for targeted overrides */
    padding: 0;
}

.eta-specific-fields h4 {
    text-align: left;
    padding-right: 0;
    min-width: 0;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-weight: 600;
}

.eta-specific-fields .form-group label {
    color: #495057;
    font-weight: 500;
}

.eta-specific-fields input,
.eta-specific-fields select,
.eta-specific-fields textarea {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.eta-specific-fields input:focus,
.eta-specific-fields select:focus,
.eta-specific-fields textarea:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
}

/* Field Error States for Dynamic Fields */
.eta-specific-fields .form-group.error input,
.eta-specific-fields .form-group.error select,
.eta-specific-fields .form-group.error textarea {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.eta-specific-fields .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.evisa-chinese .form-group {
    margin-bottom: 15px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
}

.evisa-chinese .form-group label {
    display: block;
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    text-align: left;
    min-width: 120px;
    white-space: nowrap;
}

.evisa-chinese .form-group input,
.evisa-chinese .form-group select {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    text-align: left;
}

.evisa-chinese .form-group input:focus,
.evisa-chinese .form-group select:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.evisa-chinese .form-group input::placeholder {
    color: #999;
    font-style: italic;
}

/* Better spacing for date inputs */
.evisa-chinese .form-group input[type="date"] {
    padding: 11px 12px;
}

.evisa-chinese .form-group.error input,
.evisa-chinese .form-group.error select {
    border-color: #dc3545;
}

.evisa-chinese .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.evisa-chinese .photo-upload-container {
    position: relative;
}

.evisa-chinese .photo-upload-container input[type="file"] {
    display: none;
}

.evisa-chinese .photo-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fafafa;
}

.evisa-chinese .photo-upload-area:hover {
    border-color: #2c5aa0;
    background-color: #f0f4ff;
}

.evisa-chinese .upload-placeholder {
    color: #666;
}

.evisa-chinese .upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #2c5aa0;
}

.evisa-chinese .photo-preview {
    text-align: center;
    padding: 10px;
}

.evisa-chinese .photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.evisa-chinese .photo-preview .file-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.evisa-chinese .photo-preview .file-size {
    color: #666;
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}

.evisa-chinese .file-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 10px;
}

.evisa-chinese .btn-remove-photo {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

.evisa-chinese .btn-remove-photo:hover {
    background-color: #c82333;
}

.evisa-chinese .eligibility-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.evisa-chinese .eligibility-notice h4 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.evisa-chinese .eligibility-notice ul {
    margin-left: 20px;
    color: #856404;
    line-height: 1.6;
}

.evisa-chinese .eligibility-notice li {
    margin-bottom: 8px;
}

/* Ensure eligibility notice wraps on narrow screens to avoid overflow */
@media (max-width: 600px) {
    .evisa-chinese .eligibility-notice,
    .evisa-chinese .eligibility-notice h4,
    .evisa-chinese .eligibility-notice ul,
    .evisa-chinese .eligibility-notice li {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .evisa-chinese .eligibility-notice {
        padding: 12px !important;
        margin: 16px 0 !important;
    }
}

.evisa-chinese .add-application-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}


/* Form sections */
.form-section {
    margin-bottom: 25px;
    padding: 20px 25px 25px 25px;    
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.form-subsection {
    margin-bottom: 20px;
}

.form-subsection h4,
.form-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 8px;
    text-transform: uppercase;
}
.evisa-chinese .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.evisa-chinese .btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

.evisa-chinese .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.evisa-chinese .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.evisa-chinese .btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.evisa-chinese .add-application-note {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.evisa-chinese .form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.evisa-chinese .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.evisa-chinese .loading-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.evisa-chinese .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.evisa-chinese .success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #155724;
    margin-top: 20px;
}

.evisa-chinese .success-message h3 {
    color: #155724;
    margin-bottom: 15px;
    border: none;
    padding-bottom: 0;
}

/* Checkbox styling */
.evisa-chinese input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
    flex: none;
}

.evisa-chinese .form-group:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.evisa-chinese .form-group:has(input[type="checkbox"]) label {
    cursor: pointer;
    line-height: 1.5;
    min-width: auto;
    white-space: normal;
}

/* Ensure the confirmation checkbox label wraps cleanly on narrow screens */
.evisa-chinese .checkbox-label {
    display: inline-block;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: calc(100% - 48px); /* leave room for the checkbox */
    vertical-align: middle;
}

@media (max-width: 480px) {
    .evisa-chinese .checkbox-label {
        font-size: 14px;
        max-width: calc(100% - 44px);
    }
    .evisa-chinese .form-group {
        align-items: flex-start;
    }
    .evisa-chinese input[type="checkbox"] {
        margin-top: 4px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .evisa-chinese {
        padding: 15px;
        margin: 10px;
    }
    
    .evisa-chinese .form-row {
        display: block;
        margin-bottom: 20px;
    }
    
    .evisa-chinese .form-row .form-group {
        width: 100%;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .evisa-chinese .form-group label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .evisa-chinese .form-group input,
    .evisa-chinese .form-group select {
        width: 100%;
    }
    
    .evisa-chinese h3 {
        font-size: 1.3rem;
    }
    
    .evisa-chinese .btn-submit {
        width: 100%;
        padding: 15px 20px;
    }
    
    /* Better mobile spacing for form elements */
    .evisa-chinese .form-group input,
    .evisa-chinese .form-group select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .evisa-chinese .form-group label {
        font-size: 15px;
    }
}

/* Text center utility */
.evisa-chinese .text-center {
    text-align: center;
}

/* Hide additional applications container initially */
.evisa-chinese .additional-applications-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #dee2e6;
}

/* Dynamic ETA Type Sections */
.evisa-chinese .tourist-fields,
.evisa-chinese .business-fields,
.evisa-chinese .transit-fields {
    display: none;
    margin-top: 20px;
    position: relative;
    text-align: left;
}

.evisa-chinese .business-fields h3,
.evisa-chinese .business-fields .form-group,
.evisa-chinese .business-fields label,
.evisa-chinese .business-fields input,
.evisa-chinese .business-fields select {
    text-align: left;
}

.evisa-chinese .tourist-fields {
    border-left: 4px solid #28a745;
}


.evisa-chinese .transit-fields {
    border-left: 4px solid #ffc107;
}

.evisa-chinese .dynamic-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evisa-chinese .tourist-fields .dynamic-section-title {
    color: #28a745;
}



/* Smooth transitions for show/hide */
.evisa-chinese .tourist-fields,
.evisa-chinese .business-fields,
.evisa-chinese .transit-fields {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.evisa-chinese .tourist-fields:not([style*="display: none"]),
.evisa-chinese .business-fields:not([style*="display: none"]),
.evisa-chinese .transit-fields:not([style*="display: none"]) {
    opacity: 1;
    max-height: 1000px;
    margin-top: 20px;
}





/* Animation for field appearance */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evisa-chinese .tourist-fields:not([style*="display: none"]),
.evisa-chinese .business-fields:not([style*="display: none"]),
.evisa-chinese .transit-fields:not([style*="display: none"]) {
    animation: slideInFromTop 0.4s ease-out;
}

/* Responsive adjustments for dynamic sections */
@media (max-width: 768px) {
    .evisa-chinese .tourist-fields::before,
    .evisa-chinese .business-fields::before,
    .evisa-chinese .transit-fields::before {
        display: none;
    }
}

/* 预览确认模态框样式 */
.preview-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "SimSun", sans-serif;
}

.preview-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.preview-modal-header {
    background-color: #2c5aa0;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.preview-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.preview-modal-close:hover,
.preview-modal-close:focus {
    color: #ffc107;
    text-decoration: none;
}

.preview-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.preview-content h3 {
    color: #2c5aa0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #2c5aa0;
    padding-bottom: 10px;
}

.preview-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #2c5aa0;
}

.preview-section p {
    margin-bottom: 5px !important;
}

.preview-section h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    text-align: left;
}

.preview-field {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.preview-field:last-child {
    border-bottom: none;
}

.preview-modal-footer {
    background-color: #f8f9fa;
    padding: 20px 30px;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.preview-modal-footer .btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.preview-modal-footer .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.preview-modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.preview-modal-footer .btn-primary {
    background-color: #2c5aa0;
    color: white;
}

.preview-modal-footer .btn-primary:hover {
    background-color: #1e3f73;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preview-modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 90vh;
    }
    
    .preview-modal-header {
        padding: 15px;
    }
    
    .preview-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .preview-modal-body {
        padding: 20px;
        max-height: 65vh;
    }
    
    .preview-modal-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-modal-footer .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .preview-section {
        padding: 15px;
    }
}

/* 多申请人功能样式 */
#additional-applications-cn {
    display: none;
    margin-top: 30px;
}

.additional-application {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #fafafa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.additional-application:hover {
    border-color: #2c5aa0;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
}

.additional-application-header {
    background: transparent;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
}

.additional-application-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}

.application-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.application-toggle-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.application-toggle-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: scale(1.05);
}

.toggle-icon {
    /* show a centered glyph (+ / −) instead of a CSS triangle */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 16px;
    line-height: 1;
    color: #666;
    transition: transform 0.15s ease, color 0.15s ease;
}

.toggle-icon.collapsed {
    /* kept for compatibility if any code toggles this class; no rotation needed */
    transform: none;
}

.remove-application-btn {
    background: #f8f9fa;
    border: 1px solid #dc3545;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.remove-application-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

.application-collapsible-content {
    padding: 20px;
    background-color: white;
    border-radius: 0 0 8px 8px;
}

.application-collapsible-content h4 {
    color: #2c5aa0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

#add-more-application-cn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

#add-more-application-cn:before {
    content: '+';
    font-size: 1.2rem;
    font-weight: bold;
}

#add-more-application-cn:hover {
    background: linear-gradient(135deg, #218838, #1da88a);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.4);
}

#add-more-application-cn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 照片上传样式 */
.photo-upload-container {
    width: 100%;
}

.photo-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    position: relative;
}

.photo-upload-area:hover {
    border-color: #2c5aa0;
    background-color: #f0f4ff;
}

.upload-placeholder {
    color: #666;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #888;
}

.upload-placeholder p {
    margin: 10px 0 5px 0;
    font-weight: 600;
    color: #333;
}

.upload-placeholder small {
    color: #888;
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .additional-application-header {
        padding: 12px 15px;
    }
    
    .additional-application-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #333;
    }
    
    .application-header-actions {
        gap: 8px;
    }
    
    .application-toggle-btn,
    .remove-application-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .toggle-icon {
        width: 16px;
        height: 16px;
        font-size: 14px;
        color: #666;
    }
    
    .application-collapsible-content {
        padding: 15px;
    }
    
    #add-more-application-cn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Success Page Styles */
.evisa-success-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #28a745;
}

.success-header .success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.success-header h2 {
    color: #28a745;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.success-content {
    text-align: left;
}

.application-info, .next-steps {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.application-info h3, .next-steps h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid #28a745;
    padding-bottom: 8px;
}

.application-info p {
    margin: 10px 0;
    font-size: 1rem;
}

.next-steps p.notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 5px;
    color: #856404;
    font-size: 0.9rem;
    margin-top: 15px;
}

.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Responsive design for success page */
@media (max-width: 768px) {
    .evisa-success-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .success-header h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
}

/* Success Modal Styles */
.evisa-success-modal {
    text-align: center;
    padding: 12px 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 250px;
    margin: 0 auto;
}

.evisa-success-modal .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.evisa-success-modal .info-label {
    color: #333;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.evisa-success-modal .info-value {
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.evisa-success-modal .time-section {
    margin-bottom: 8px;
}

.evisa-success-modal .time-label {
    color: #333;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.evisa-success-modal .time-value {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}
