/* ====================
   VISA APPLICATION PAGE STYLES
   ==================== */

.visa-application-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Back Navigation */
.visa-app-back-nav {
    margin-bottom: 20px;
}

.visa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.visa-back-link:hover {
    color: #005177;
    transform: translateX(-5px);
}

/* Package Header */
.visa-app-header {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.visa-app-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.visa-app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visa-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 115, 170, 0.95);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.visa-app-header-content {
    padding: 30px;
}

.visa-app-title {
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #333;
}

.visa-app-countries {
    margin-bottom: 20px;
}

.visa-country-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 10px;
    color: #555;
}

.visa-app-meta-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.visa-app-pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.visa-app-pricing .price-primary {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    line-height: 1.2;
}

.visa-app-pricing .price-secondary {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.visa-app-meta-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visa-app-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #555;
}

.meta-icon {
    font-size: 18px;
}

.visa-app-description {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

/* Requirements Section */
.visa-app-requirements-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    margin: 0 0 25px 0;
    color: #333;
}

.section-icon {
    font-size: 32px;
}

.visa-requirements-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.requirement-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #0073aa;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    background: #f0f5f8;
    transform: translateX(5px);
}

.requirement-icon {
    flex-shrink: 0;
}

.required-badge {
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.optional-badge {
    background: #6c757d;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.requirement-content {
    flex: 1;
}

.requirement-label {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.requirement-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.no-requirements {
    text-align: center;
    color: #999;
    padding: 20px;
}

.requirements-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
}

/* Application Form Section */
.visa-app-form-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
}

/* Progress Indicator */
.visa-app-progress {
    margin-bottom: 40px;
}

.visa-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.visa-progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.visa-progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.visa-progress-step:last-child::after {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.visa-progress-step.active .step-number {
    background: #0073aa;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.visa-progress-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.visa-progress-step.completed .step-number::after {
    content: '✓';
}

.step-label {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-align: center;
}

.visa-progress-step.active .step-label {
    color: #0073aa;
}

.visa-progress-step.completed .step-label {
    color: #4caf50;
}

.visa-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.visa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #005177 100%);
    transition: width 0.4s ease;
    border-radius: 3px;
}

/* Form Steps */
.visa-application-form {
    position: relative;
}

.visa-form-step {
    display: none;
}

.visa-form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 22px;
    margin: 0 0 25px 0;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.visa-form-fields {
    margin-bottom: 30px;
}

.visa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.visa-form-group {
    margin-bottom: 20px;
}

.visa-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.visa-form-group input[type="text"],
.visa-form-group input[type="email"],
.visa-form-group input[type="tel"],
.visa-form-group input[type="date"],
.visa-form-group input[type="file"],
.visa-form-group textarea,
.visa-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.visa-form-group input:focus,
.visa-form-group textarea:focus,
.visa-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.visa-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.visa-form-group .required {
    color: #dc3545;
}

.file-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* Payment Summary */
.visa-payment-summary {
    max-width: 500px;
    margin: 0 auto;
}

.summary-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.summary-card h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item.total {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #0073aa;
    font-size: 18px;
    font-weight: 700;
}

.summary-label {
    color: #666;
    font-weight: 600;
}

.summary-value {
    color: #333;
    font-weight: 600;
}

.visa-pay-button {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.visa-pay-button:hover {
    background: linear-gradient(135deg, #005177 0%, #003d55 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.3);
}

.button-icon {
    font-size: 22px;
}

.payment-info {
    text-align: center;
    color: #999;
    margin-top: 15px;
}

/* Success Message */
.visa-success-message {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.visa-success-message h3 {
    font-size: 28px;
    color: #4caf50;
    margin: 0 0 15px 0;
}

.visa-success-message p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.success-reference {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.success-reference label {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.reference-number {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
    font-family: monospace;
}

.success-info {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.visa-button {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.visa-button.primary {
    background: #0073aa;
    color: white;
}

.visa-button.primary:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

.visa-button.secondary {
    background: white;
    color: #0073aa;
    border: 2px solid #0073aa;
}

.visa-button.secondary:hover {
    background: #f0f5f8;
}

/* Form Navigation */
.visa-form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.visa-nav-button {
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.visa-nav-button.primary {
    background: #0073aa;
    color: white;
}

.visa-nav-button.primary:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

.visa-nav-button.secondary {
    background: #f0f0f0;
    color: #555;
}

.visa-nav-button.secondary:hover {
    background: #e0e0e0;
}

/* ====================
   PAYMENT OPTIONS SECTION
   ==================== */

.payment-options {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.payment-options-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.payment-buttons-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 25px;
}

.visa-pay-button {
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.visa-pay-button .button-icon {
    font-size: 24px;
}

.visa-pay-button.primary {
    background: linear-gradient(135deg, #0073aa 0%, #005177 100%);
    color: white;
}

.visa-pay-button.primary:hover {
    background: linear-gradient(135deg, #005177 0%, #003d5c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.4);
}

.visa-pay-button.secondary {
    background: white;
    color: #0073aa;
    border: 3px solid #0073aa;
}

.visa-pay-button.secondary:hover {
    background: #f0f5f8;
    border-color: #005177;
    color: #005177;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 115, 170, 0.2);
}

.payment-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    font-size: 16px;
    padding: 0 15px;
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
}

.payment-divider span {
    padding: 0 15px;
    background: white;
    position: relative;
    z-index: 1;
}

.payment-info-box {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.payment-info-box p {
    margin: 0 0 12px 0;
    color: #555;
    line-height: 1.6;
}

.payment-info-box p:last-child {
    margin-bottom: 0;
}

.payment-info-box strong {
    color: #0073aa;
}

/* Responsive Design for Payment Options */
@media (max-width: 768px) {
    .payment-buttons-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-divider {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .payment-divider::before,
    .payment-divider::after {
        display: none;
    }
    
    .visa-pay-button {
        width: 100%;
    }
}

/* Loading Overlay */
.visa-form-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border-radius: 15px;
    z-index: 100;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.visa-form-loading p {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* Error Message */
.visa-application-error {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.visa-application-error h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

.visa-application-error a {
    color: #0073aa;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .visa-app-title {
        font-size: 24px;
    }
    
    .visa-app-meta-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .visa-app-pricing .price-primary {
        font-size: 28px;
    }
    
    .visa-requirements-list {
        grid-template-columns: 1fr;
    }
    
    .visa-progress-steps {
        flex-wrap: wrap;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .visa-form-row {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .visa-button {
        width: 100%;
        text-align: center;
    }
    
    .reference-number {
        font-size: 24px;
    }
}
