* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a4569 0%, #0d2a3f 100%);
    color: #333;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.veteran-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

/* Desktop centering */
@media (min-width: 768px) {
    .veteran-form-container {
        background: linear-gradient(135deg, #1a4569 0%, #0d2a3f 100%) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 20px !important;
        box-sizing: border-box !important;
        left: 0 !important;
        right: 0 !important;
    }

    .form-wrapper {
        width: 88% !important;
        max-width: 900px !important;
        min-width: 600px !important;
        height: 93vh !important;
        min-height: 700px !important;
        background: white !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        position: relative !important;
    }
}

@media (max-width: 767px) {
    .form-wrapper {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
}

.form-header {
    background: linear-gradient(to right, #0d2a3f, #1a4569);
    color: white;
    padding: 12px 0;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.form-header.hidden {
    display: none;
}

.form-header h1 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-header h1 i {
    color: #e67e22;
    font-size: 1.3rem;
}

.form-header p {
    font-size: 0.85rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

.progress-container {
    padding: 8px 15px;
    background: #f0f6ff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.progress-container.visible {
    opacity: 1;
    height: auto;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: #d0dbe8;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #e67e22, #d35400);
    transition: width 0.5s ease;
    width: 0%;
    border-radius: 3px;
}

.progress-percentage {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a4569;
    min-width: 35px;
    text-align: center;
}

.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 12px;
}

.form-step {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 12px 0;
}

.form-step.active {
    display: flex;
}

/* Step 1 specific styles */
.step-1-header {
    text-align: center;
    margin-bottom: 12px;
    padding: 0 10px;
}

.step-1-title {
    color: #1a4569;
    font-size: 1.2rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.step-1-title i {
    color: #e67e22;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.step-1-subtitle {
    color: #5a6d87;
    font-size: 0.85rem;
    max-width: 500px;
    margin: 0 auto;
}

.coverage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
    flex: 1;
}

.form-option {
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 85px;
}

.form-option.selected {
    border-color: #1a4569;
    background: #f0f6ff;
    box-shadow: 0 3px 10px rgba(26, 69, 105, 0.1);
    transform: translateY(-2px);
}

.form-option i {
    font-size: 1.3rem;
    color: #1a4569;
    margin-bottom: 5px;
}

.form-option .option-title {
    font-weight: 700;
    color: #1a4569;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.form-option .option-desc {
    font-size: 0.75rem;
    color: #7a8ca5;
}

.action-container {
    position: relative;
    min-height: 50px;
    margin: 10px 0 15px;
    display: flex;
    align-items: center;
}

.va-licensing {
    text-align: center;
    padding: 10px;
    background: #f0f6ff;
    border-radius: 8px;
    border: 1px solid #c2d4ee;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 1;
}

.va-licensing p {
    color: #1a4569;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.va-licensing i {
    color: #d35400;
    font-size: 1.1rem;
}

.btn-next {
    background: #e67e22;
    padding: 12px 0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(15px);
    width: 100%;
    height: 100%;
    z-index: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.btn-next.visible {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
}

.btn-next:hover {
    background: #d35400;
}

/* Other step styles */
.step-title {
    color: #1a4569;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f6ff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.step-title i {
    color: #e67e22;
    font-size: 1.1rem;
}

.step-content {
    flex: 1;
    overflow-y: auto;
    padding: 5px 0 10px;
}

/* Step 5: Name*/
.form-step[data-step="5"] .step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 !important;
    margin-top: -5px;
}

/* Step 6: Contact Information */
.form-step[data-step="6"] .step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 !important;
    margin-top: -5px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
    max-width: 600px;
    width: 100%;
}

/* Optimized birthday container */
.birthday-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-group.hidden {
    display: none;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.optional-label {
    color: #7a8ca5;
    font-weight: 400;
    font-size: 0.8rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
    font-weight: 600;
}

.invalid {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #4d9fec;
    box-shadow: 0 0 0 4px rgba(77, 159, 236, 0.2);
    outline: none;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 2px solid #f0f6ff;
    background: white;
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.btn {
    padding: 12px 20px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 69, 105, 0.25);
}

.btn:disabled {
    background: #d0dbe8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-prev {
    background: #6c757d;
}

.btn-prev:hover {
    background: #5a6268;
}

.btn-next-step {
    background: #e67e22;
}

.btn-next-step:hover {
    background: #d35400;
}

.btn-submit {
    background: #27ae60;
    padding: 12px 25px;
}

.btn-submit:hover {
    background: #219653;
}

.btn-schedule {
    background: #3498db;
    padding: 12px 25px;
}

.btn-schedule:hover {
    background: #2980b9;
}

.btn-immediate {
    background: #27ae60;
    padding: 12px 25px;
}

.btn-immediate:hover {
    background: #219653;
}

.btn-close-modal {
    background: #2ecc71;
    padding: 12px 20px;
}

.btn-close-modal:hover {
    background: #27ae60;
}

.confirmation-step {
    text-align: center;
    padding: 25px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f9fbfd;
    border-radius: 12px;
    margin: 10px 0;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.confirmation-step h2 {
    color: #1a4569;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.confirmation-step p {
    font-size: 1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 350px;
    margin-top: 10px;
}

.time-notice {
    color: #e67e22;
    font-weight: 600;
    margin-top: 8px;
    font-size: 0.9rem;
}

.helper-text {
    font-size: 0.95rem;
    color: #5a6d87;
    margin: -5px 0 10px 0;
    padding-left: 5px;
    text-align: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 2.5rem;
    color: #2ecc71;
    margin-bottom: 15px;
}

.modal-content h3 {
    font-size: 1.4rem;
    color: #1a4569;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}

.loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.loading-center {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.military-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a4569, #0d2a3f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 24px;
    box-shadow: 0 6px 15px rgba(26, 69, 105, 0.25);
}

.loading-title {
    font-size: 1.6rem;
    color: #1a4569;
    margin-bottom: 6px;
    text-align: center;
}

.loading-text {
    font-size: 0.95rem;
    color: #5a6d87;
    max-width: 500px;
    text-align: center;
    margin-bottom: 12px;
}

.loading-bar-container {
    width: 100%;
    height: 10px;
    background: #e1e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0;
    position: relative;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a4569, #3498db);
    width: 0%;
    transition: width 0.05s linear;
}

.loading-progress-percentage {
    font-weight: 700;
    color: #1a4569;
    min-width: 40px;
    font-size: 1rem;
    margin-top: 6px;
}

.loading-details-container {
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 12px 0;
}

.detail-display {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
    max-width: 90%;
    position: absolute;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: none;
    text-transform: capitalize;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.detail-display.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.detail-display.inactive {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.loading-status {
    margin-top: 12px;
    text-align: center;
    width: 100%;
}

.status-message {
    color: #5a6d87;
    margin-bottom: 6px;
    font-size: 0.95rem;
    min-height: 18px;
    text-transform: capitalize;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #1a4569;
    font-size: 0.9rem;
    font-weight: 600;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.coverage-details-container.hidden {
    display: none;
}

.birthday-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

/* Improved Coverage Purpose Step */
.purpose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.purpose-option {
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    padding: 15px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}

.purpose-option.selected {
    border-color: #1a4569;
    background: #f0f6ff;
    box-shadow: 0 3px 10px rgba(26, 69, 105, 0.1);
    transform: translateY(-2px);
}

.purpose-option i {
    font-size: 1.5rem;
    color: #1a4569;
    margin-bottom: 8px;
}

.purpose-option .purpose-title {
    font-weight: 700;
    color: #1a4569;
    font-size: 0.95rem;
}

.purpose-helper {
    font-size: 0.8rem;
    color: #5a6d87;
    margin-top: 10px;
    text-align: center;
}

/* SCHEDULING MODAL STYLES */
#schedule-modal .modal-content {
    max-width: 500px;
    width: 95%;
    padding: 25px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #1a4569;
}

#schedule-modal .modal-body {
    flex: 1;
    overflow: hidden;
    margin-top: 15px;
}

#schedule-modal .form-group {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#schedule-modal .date-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px;
    flex: 1;
    background: #f8fafd;
    border-radius: 12px;
    border: 1px solid #e1e8f0;
}

#schedule-modal .time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 8px;
    flex: 1;
    background: #f8fafd;
    border-radius: 12px;
    border: 1px solid #e1e8f0;
}

#schedule-modal .date-option,
#schedule-modal .time-slot {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#schedule-modal .date-option:hover,
#schedule-modal .time-slot:hover {
    background-color: #f0f6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 69, 105, 0.1);
}

#schedule-modal .date-option.selected {
    background-color: #1a4569;
    color: white;
    border-color: #1a4569;
    font-weight: 600;
}

#schedule-modal .time-slot.selected {
    background-color: #e67e22;
    color: white;
    border-color: #d35400;
    font-weight: 600;
}

#schedule-modal .date-option > div:first-child {
    font-weight: 600;
    font-size: 1.rem;
    color: #1a4569;
}

#schedule-modal .date-option.selected > div:first-child {
    color: white;
}

#schedule-modal .date-option > div:last-child {
    font-size: 0.9rem;
    color: #5a6d87;
}

#schedule-modal .date-option.selected > div:last-child {
    color: rgba(255,255,255,0.9);
}

#schedule-modal .schedule-confirmation {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f6ff;
    border-radius: 12px;
    display: none;
    font-size: 1.1rem;
    border: 1px solid #c2d4ee;
    text-align: center;
}

#schedule-confirmation p {
    margin-bottom: 10px;
    font-weight: 500;
}

#scheduled-time-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a4569;
    margin: 10px 0 15px;
}

#schedule-modal .actions-row {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #f0f6ff;
    color: #e74c3c;
    transform: rotate(90deg);
}

/* NEW STYLES FOR AGE/DOB SELECTION */
.age-selection-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.age-selection-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: #f0f6ff;
    border: 2px solid #e1e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #1a4569;
    transition: all 0.3s ease;
}

.age-selection-btn.selected {
    background: #1a4569;
    color: white;
    border-color: #1a4569;
}

.age-input-container {
    display: none;
}

.age-input-container.visible {
    display: block;
}

.dob-input-container {
    display: none;
}

.dob-input-container.visible {
    display: block;
}

/* Privacy Notice Styles */
.privacy-notice {
    font-size: 0.8rem;
    color: #5a6d87;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8fafd;
    border-radius: 8px;
    border: 1px solid #e1e8f0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .coverage-grid, .purpose-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
        margin: 0 auto 15px;
    }
    
    .action-container {
        max-width: 600px;
        margin: 10px auto 15px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .step-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    #schedule-modal .date-picker {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #schedule-modal .time-slots {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Fix for large landscape screens */
    .form-step[data-step="1"] {
        justify-content: space-between;
    }
    
    .form-step[data-step="1"] .coverage-grid {
        margin-bottom: 20px;
    }
    
    .form-step[data-step="1"] .action-container {
        margin-top: auto;
    }
}

@media (max-width: 767px) {
    /* Mobile optimization for step 3 */
    .form-step[data-step="5"] .step-content,
    .form-step[data-step="6"] .step-content {
        padding: 10px;
    }
    
    /* Mobile optimization for schedule modal */
    #schedule-modal .modal-content {
        max-width: 95%;
        padding: 15px;
        max-height: 85vh;
    }
    
    #schedule-modal .date-picker {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #schedule-modal .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #schedule-modal .actions-row {
        flex-direction: column;
        gap: 10px;
    }
    
    #schedule-modal .actions-row .btn {
        width: 100%;
    }
    
    .age-selection-container {
        flex-direction: column;
    }
}

@media (max-height: 600px) {
    .form-option, .purpose-option {
        padding: 8px 4px;
        min-height: 75px;
    }
    
    .form-option i, .purpose-option i {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .form-option .option-title, .purpose-option .purpose-title {
        font-size: 0.9rem;
    }
    
    .action-container {
        min-height: 45px;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Added styles for step 12 reward */
.reward-badge {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    padding: 10px 15px;
    border-radius: 30px;
    margin: 15px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.reward-icon {
    animation: pulse 1.5s infinite;
}

.reward-note {
    background: #f0f6ff;
    border-left: 4px solid #1a4569;
    padding: 12px;
    margin: 15px 0;
    text-align: left;
    border-radius: 0 8px 8px 0;
    max-width: 500px;
}

.schedule-confirmation-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fbfe 0%, #e6f0fa 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #d0e3f0;
    position: relative;
    height: 100%;
}

.confirmation-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a4569, #0d2a3f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 40px;
    box-shadow: 0 6px 15px rgba(26, 69, 105, 0.25);
}

.confirmation-content {
    max-width: 500px;
}

.mt-time {
    font-weight: bold;
    color: #1a4569;
    background: #e1ecf7;
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
    margin: 5px 0;
}

/* Added for better fit on mobile */
.confirmation-content p {
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.veteran-benefit {
    background: linear-gradient(135deg, #1a4569, #0d2a3f);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(26, 69, 105, 0.2);
}

/* Step 5 and 6 optimization */
.form-step[data-step="5"] .form-grid,
.form-step[data-step="6"] .form-grid {
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.form-step[data-step="5"] .form-group,
.form-step[data-step="6"] .form-group {
    margin-bottom: 10px !important;
}

.form-step[data-step="5"] .helper-text,
.form-step[data-step="6"] .helper-text {
    margin-bottom: 8px !important;
}

.form-step[data-step="5"] .form-navigation,
.form-step[data-step="6"] .form-navigation {
    padding: 10px 0 !important;
}

/* Step 12 optimization */
.form-step[data-step="12"] .confirmation-content {
    padding-bottom: 10px;
}

.form-step[data-step="12"] .confirmation-actions {
    position: absolute;
    bottom: 15px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
}

.form-step[data-step="12"] .confirmation-actions .btn {
    padding: 14px 20px !important;
    font-size: 1rem !important;
    width: 100%;
}

/* Added Step 12 layout improvements */
.form-step[data-step="12"] .schedule-confirmation-step {
    padding: 15px;
    max-height: 100%;
    overflow: auto;
}

.form-step[data-step="12"] .confirmation-content {
    padding: 0 10px;
    max-width: 95%;
}

.form-step[data-step="12"] .confirmation-badge {
    width: 80px;
    height: 80px;
    font-size: 35px;
}

.form-step[data-step="12"] .veteran-benefit {
    padding: 12px;
    margin: 10px 0;
}

.form-step[data-step="12"] .confirmation-actions {
    position: relative;
    bottom: 0;
    margin-top: 10px;
    padding-bottom: 10px;
}

.form-step[data-step="12"] .reward-note {
    padding: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
}

@media (max-height: 600px) {
    .form-step[data-step="12"] .confirmation-badge {
        width: 70px;
        height: 70px;
        font-size: 30px;
        margin-bottom: 10px;
    }
    
    .form-step[data-step="12"] .confirmation-content p {
        font-size: 0.95rem;
        margin: 8px 0;
    }
    
    .form-step[data-step="12"] .veteran-benefit {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Fix for landscape orientation on larger screens */
@media (min-width: 1024px) and (orientation: landscape) {
    .form-step[data-step="1"] {
        justify-content: space-between;
    }
    
    .form-step[data-step="1"] .coverage-grid {
        margin-bottom: 25px;
    }
    
    .form-step[data-step="1"] .action-container {
        margin-top: auto;
        margin-bottom: 20px;
    }
    
    .form-content {
        padding: 0 20px;
    }
}