/* Battery Replacement Form Styles */

/* Edit Form Specific Styles */
.edit-form {
    width: 100%;
}

.edit-form .card {
    margin-bottom: 1.5rem;
}

.edit-form .card-body {
    padding: 1.5rem;
}

.edit-form .form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}

.edit-form .form-group:last-child {
    margin-bottom: 0;
}

.edit-form .form-label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
}

.edit-form .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.edit-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
    outline: none;
}

.edit-form .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Checkbox Alignment Fixes */
.edit-form .form-check {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    min-height: 40px;
    margin: 0;
}

.edit-form .form-check-input {
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    top: 0;
    transform: none !important;
    border: 2px solid #3b82f6;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-form .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.edit-form .form-check-input:hover {
    border-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-form .form-check-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.edit-form .form-check-input:checked:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: scale(1.05);
}

.edit-form .form-check-label {
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
    padding-top: 0.125rem;
    margin: 0;
    transition: color 0.2s ease;
}

.edit-form .form-check:hover .form-check-label {
    color: #1e40af;
}

/* Ensure consistent row heights and alignment */
.edit-form .row.g-3 > .col-md-6 {
    display: flex;
    flex-direction: column;
}

.edit-form .row.g-3 > .col-md-6 > .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.edit-form .row.g-3 > .col-md-6 > .form-group > .form-check {
    flex: 1;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Force consistent checkbox positioning */
.edit-form .form-check-input {
    position: relative;
    top: 0;
    transform: none !important;
}

/* Ensure all checkboxes have the same baseline alignment */
.edit-form .form-check {
    align-items: flex-start !important;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Consistent spacing for all form groups */
.edit-form .form-group {
    margin-bottom: 0.5rem;
}

/* Ensure equal height columns */
.edit-form .col-md-6 {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}

.edit-form .col-md-6 .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Form validation styles */
.edit-form .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.edit-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.edit-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border-left: 3px solid #dc3545;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 3rem;
}

.header-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
}

/* Table Layout Fixes */
.accessories-list {
    min-width: 200px;
    max-width: 300px;
}

.accessories-list .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin: 0.125rem;
    white-space: nowrap;
    display: inline-block;
}

.recode-info {
    min-width: 120px;
    line-height: 1.2;
}

.recode-info small {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.date-info {
    min-width: 100px;
    line-height: 1.2;
}

.date-info small {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Professional Customer Info Styling */
.customer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-details {
    flex: 1;
    min-width: 0;
}

.customer-name {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

.customer-email {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.2;
    word-break: break-word;
    text-decoration: none;
    transition: all 0.2s ease;
}

.customer-email:hover {
    color: #3b82f6;
    text-decoration: underline;
    transform: translateY(-1px);
}

/* Ensure proper table cell spacing */
.table td {
    vertical-align: top;
    padding: 1rem 0.75rem;
}

/* Prevent text overlap */
.table td > div {
    position: relative;
    z-index: 1;
}

/* Table responsiveness */
.table-responsive {
    overflow-x: auto;
    border-radius: 10px;
}

.table {
    margin-bottom: 0;
    white-space: nowrap;
}

.table th {
    white-space: nowrap;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    position: relative;
}

.table th:not(:first-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #dee2e6, transparent);
}

.table td {
    white-space: normal;
    word-wrap: break-word;
}

/* Ensure accessories don't overflow */
.accessories-list .d-flex {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.accessories-list .badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .accessories-list {
        min-width: 150px;
        max-width: 200px;
    }
    
    .accessories-list .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Form Container */
.form-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 3rem;
    max-width: 100%;
    overflow-x: hidden;
}

/* Validation Error Summary */
.validation-summary {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #dc3545;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.25);
    position: relative;
    overflow: hidden;
    animation: errorShake 0.5s ease-in-out;
}

.validation-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ef4444, #f87171, #dc3545);
    animation: errorGlow 2s ease-in-out infinite;
}

.validation-summary .alert-heading {
    color: #991b1b;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.validation-summary p {
    color: #7f1d1d;
    font-weight: 600;
}

.validation-summary .error-list {
    color: #7f1d1d;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
}

.validation-summary .error-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
}

.validation-summary .error-list li:last-child {
    border-bottom: none;
}

.validation-summary .error-list li:before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1rem;
}

.validation-summary hr {
    border-color: rgba(220, 53, 69, 0.3);
    margin: 1rem 0;
}

/* Error Summary Animations */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes errorGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Error Highlight Effect */
.error-highlight {
    animation: errorPulse 0.5s ease-in-out 3;
    box-shadow: 0 0 30px rgba(220, 53, 69, 0.5);
}

@keyframes errorPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(220, 53, 69, 0.25);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 40px rgba(220, 53, 69, 0.6);
    }
}

/* Enhanced Error Summary for Mobile */
@media (max-width: 767.98px) {
    .validation-summary {
        margin: 1rem -0.5rem 1.5rem -0.5rem;
        border-radius: 10px;
    }
    
    .validation-summary .alert-heading {
        font-size: 1.1rem;
    }
    
    .validation-summary .error-list {
        padding: 0.75rem;
    }
}

.form-section, .info-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #3b82f6;
    max-width: 100%;
    overflow-x: hidden;
}

/* Section Titles */
.section-title {
    color: #1e40af;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.subsection-title {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ocean-signal {
    color: #f97316 !important;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Form Labels */
.form-label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Form Controls */
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

/* Serial Number Field Specific Styles */
.form-control[name="device_serial_number"] {
    max-width: 100%;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Character Counter Styles */
.character-counter {
    font-size: 0.8rem !important;
    color: #6c757d !important;
    margin-top: 0.25rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.character-counter.warning {
    color: #ffc107 !important;
}

.character-counter.danger {
    color: #dc3545 !important;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Validation Error States */
.form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Error Messages */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border-left: 3px solid #dc3545;
}

.invalid-feedback.d-block {
    display: block !important;
}

/* Checkbox Error State */
.custom-checkbox .form-check-input.is-invalid {
    border-color: #dc3545;
}

.custom-checkbox .form-check-input.is-invalid:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Form Labels for Invalid Fields */
.form-label.has-error {
    color: #dc3545;
}

/* Custom Checkboxes */
.custom-checkbox .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.25em;
    border: 2px solid #3b82f6;
    border-radius: 4px;
}

.custom-checkbox .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox .form-check-label {
    color: #374151;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Parts List */
.parts-list {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    margin-left: 1.5rem;
}

.part-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.part-name {
    color: #374151;
    font-weight: 500;
}

.part-price {
    color: #059669;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Info Section */
.info-title {
    color: #1e40af;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-list, .inclusion-list, .battery-life-list, .notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li, .inclusion-list li, .battery-life-list li, .notes-list li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:before, .inclusion-list li:before, .battery-life-list li:before, .notes-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Cost Highlight */
.cost-highlight {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
}

/* Address Box */
.address-box {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.company-name {
    font-weight: 600;
    color: #1e40af;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Form Footer */
.form-footer {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #f97316;
}

.ocean-signal-link {
    color: #f97316;
    text-decoration: underline;
    font-weight: 600;
}

.ocean-signal-link:hover {
    color: #ea580c;
}

/* Submit Section */
.submit-section {
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(135deg, #0a1929 0%, #1e3a8a 50%, #1e40af 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    color: white;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-section, .info-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .header-divider {
        width: 60px;
        height: 3px;
    }
}

/* Serial Number Field Responsive Adjustments */
@media (max-width: 767.98px) {
    .form-control[name="device_serial_number"] {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .form-container {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .submit-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* Confirmation Page Styles */
.success-container {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    border: 2px solid #10b981;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.success-icon {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.request-id-box {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    margin: 0 auto;
    max-width: 400px;
}

.request-id-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.request-id-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

/* Detail Sections */
.detail-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #3b82f6;
}

.detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

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

.detail-item strong {
    color: #1e40af;
    min-width: 120px;
    display: inline-block;
}

/* Service Options */
.service-option {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Additional Service Box */
.additional-service-box {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    color: #374151;
    font-style: italic;
}

/* Recode Details */
.recode-details {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    color: #374151;
}

/* Instructions Box */
.instructions-box {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.instructions-box .alert-heading {
    color: #1e40af;
    font-weight: 600;
}

.shipping-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shipping-instructions li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #374151;
}

.shipping-instructions li:before {
    content: '📦';
    position: absolute;
    left: 0;
    font-size: 1.1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.timeline-content {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    color: #374151;
    font-weight: 500;
}

.timeline-content strong {
    color: #1e40af;
}

/* Contact Section */
.contact-box {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #f97316;
}

.contact-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.contact-details > div {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.contact-details > div:last-child {
    border-bottom: none;
}

.contact-details strong {
    color: #f97316;
    min-width: 80px;
    display: inline-block;
}

/* Action Buttons */
.btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Mobile Responsiveness for Confirmation */
@media (max-width: 767.98px) {
    .success-container {
        padding: 2rem 1rem;
    }
    
    .request-id-box {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .request-id-value {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-marker {
        left: -1.25rem;
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }
    
    .timeline-item {
        padding-left: 0.5rem;
    }
}

/* Print Styles for Confirmation Page */
@media print {
    /* Hide unnecessary elements when printing */
    .page-header,
    .btn,
    .action-buttons {
        display: none !important;
    }
    
    /* Ensure proper page breaks */
    .form-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    /* Optimize colors for printing */
    .success-container {
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        box-shadow: none !important;
    }
    
    .request-id-box {
        background: #f0f0f0 !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
        box-shadow: none !important;
    }
    
    .detail-section {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
    }
    
    .instructions-box {
        background: #f0f0f0 !important;
        border: 1px solid #000000 !important;
        box-shadow: none !important;
    }
    
    .timeline-content {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
    }
    
    .contact-box {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
    }
    
    /* Ensure text is readable */
    * {
        color: #000000 !important;
    }
    
    /* Add page title for printing */
    .success-container::before {
        content: "Battery Replacement Request Confirmation";
        display: block;
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
        margin-bottom: 2rem;
        border-bottom: 2px solid #000000;
        padding-bottom: 1rem;
    }
    
    /* Add timestamp for printing */
    .success-container::after {
        content: "Printed on: " attr(data-print-date);
        display: block;
        text-align: center;
        font-size: 0.8rem;
        margin-top: 2rem;
        font-style: italic;
    }
}

/* Neutral Cost Box */
.cost-box {
    background: #f9fafb;              /* light neutral background */
    border: 2px solid #e5e7eb;        /* subtle border */
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
    color: #3b1e21;                   /* dark grey text */
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: none;                 /* no button-like shadow */
    cursor: default;                  /* no pointer on hover */
}

.cost-box strong {
    color: #ea1017;                   /* slightly darker emphasis */
    font-weight: 700;
}

