/* ========================================
   ABC+ Warranty Application Form Styles
   Brand Colors: #112e55, #ab0609, #de080c
   Version: 1.0.1 - Fully CSS Controlled
======================================== */

/* === Variables === */
:root {
    --abc-primary: #112e55;
    --abc-accent: #ab0609;
    --abc-accent-hover: #de080c;
    --abc-border: #b8bbd3;
    --abc-text: #252c3e;
    --abc-text-light: #667291;
    --abc-success: #2eb79f;
    --abc-error: #f41033;
    --abc-white: #ffffff;
}

/* === Reset & Base === */
.abc-warranty-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.abc-warranty-container {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--abc-text);
    background: transparent;
    padding: 20px;
}

/* === Loading State === */
.abc-warranty-container .abc-loading-container {
    padding: 60px 20px;
    text-align: center;
}

.abc-warranty-container .abc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #de080c;
    border-radius: 50%;
    animation: abc-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.abc-warranty-container .abc-loading-text {
    color: var(--abc-primary);
    font-size: 18px;
    font-weight: 500;
}

.abc-warranty-container .abc-error-state {
    padding: 40px;
    text-align: center;
    color: var(--abc-error);
    font-size: 16px;
}

/* === Main Form Container === */
.abc-warranty-container .abc-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--abc-white);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* === Progress Bar === */
.abc-warranty-container .abc-progress-container {
    background: var(--abc-primary);
    color: var(--abc-white);
    padding: 25px 40px;
}

.abc-warranty-container .abc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.abc-warranty-container .abc-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.abc-warranty-container .abc-progress-fill {
    height: 100%;
    background: #de080c;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.abc-warranty-container .abc-page-dots {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.abc-warranty-container .abc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.abc-warranty-container .abc-dot.active {
    background: #de080c;
    width: 24px;
    border-radius: 5px;
}

.abc-warranty-container .abc-dot.completed {
    background: rgba(255, 255, 255, 0.6);
}

/* === Form Pages === */
.abc-warranty-container .abc-form-page {
    padding: 40px;
    background: var(--abc-white);
}

.abc-warranty-container .abc-page-title {
    color: var(--abc-primary);
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 600;
}

.abc-warranty-container .abc-page-description {
    color: var(--abc-text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

.abc-warranty-container .abc-page-content {
    /* Content wrapper */
}

.abc-warranty-container .abc-section-title {
    color: var(--abc-primary);
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 20px;
    font-weight: 600;
}

.abc-warranty-container .abc-subsection-title {
    font-size: 18px;
    color: var(--abc-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

/* === Error Summary === */
.abc-warranty-container .abc-error-summary {
    background: #ffebee;
    border: 1px solid var(--abc-error);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.abc-warranty-container .abc-error-title {
    color: var(--abc-error);
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.abc-warranty-container .abc-error-list {
    margin-top: 10px;
    margin-left: 20px;
    color: var(--abc-error);
    list-style: disc;
}

.abc-warranty-container .abc-error-list li {
    margin-bottom: 5px;
}

/* === Form Elements === */
.abc-warranty-container .abc-form-group {
    margin-bottom: 20px;
}

.abc-warranty-container .abc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.abc-warranty-container .abc-form-row .abc-form-group {
    margin-bottom: 0;
}

.abc-warranty-container .abc-three-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.abc-warranty-container .abc-form-group label {
    display: block;
    font-weight: 500;
    color: var(--abc-primary);
    margin-bottom: 8px;
    font-size: 15px;
}

.abc-warranty-container .abc-form-group input[type="text"],
.abc-warranty-container .abc-form-group input[type="email"],
.abc-warranty-container .abc-form-group input[type="tel"],
.abc-warranty-container .abc-form-group input[type="number"],
.abc-warranty-container .abc-form-group input[type="password"],
.abc-warranty-container .abc-form-group input[type="date"],
.abc-warranty-container .abc-form-group textarea,
.abc-warranty-container .abc-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--abc-border);
    border-radius: 4px;
    font-size: 15px;
    color: var(--abc-text);
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--abc-white);
}

.abc-warranty-container .abc-form-group input:focus,
.abc-warranty-container .abc-form-group textarea:focus,
.abc-warranty-container .abc-form-group select:focus {
    outline: none;
    border-color: var(--abc-success);
    box-shadow: 0 0 0 3px rgba(46, 183, 159, 0.1);
}

.abc-warranty-container .abc-form-group input::placeholder,
.abc-warranty-container .abc-form-group textarea::placeholder {
    color: var(--abc-text-light);
    opacity: 0.6;
}

.abc-warranty-container .abc-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.abc-warranty-container .abc-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252c3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.abc-warranty-container .abc-form-group small {
    display: block;
    color: var(--abc-text-light);
    font-size: 13px;
    margin-top: 5px;
}

.abc-warranty-container .abc-required {
    color: var(--abc-accent);
    font-style: normal;
    margin-left: 2px;
}

.abc-warranty-container .abc-field-error {
    color: var(--abc-error);
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.abc-warranty-container .abc-input-error {
    border: 2px solid var(--abc-error) !important;
}

/* === Radio & Checkbox Groups === */
.abc-warranty-container .abc-radio-group,
.abc-warranty-container .abc-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abc-warranty-container .abc-radio-option,
.abc-warranty-container .abc-checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid var(--abc-border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--abc-white);
}

.abc-warranty-container .abc-radio-option:hover,
.abc-warranty-container .abc-checkbox-option:hover {
    border-color: var(--abc-primary);
    background: rgba(17, 46, 85, 0.02);
}

.abc-warranty-container .abc-radio-option input[type="radio"],
.abc-warranty-container .abc-checkbox-option input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: none;
}

.abc-warranty-container .abc-radio-option span,
.abc-warranty-container .abc-checkbox-option span {
    font-size: 15px;
    color: var(--abc-text);
    pointer-events: none;
    user-select: none;
}

.abc-warranty-container .abc-radio-option.selected,
.abc-warranty-container .abc-checkbox-option.selected {
    border-color: var(--abc-accent);
    background: rgba(171, 6, 9, 0.05);
}

/* === Checkbox Lists in Two Columns === */
.abc-warranty-container .abc-checkbox-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.abc-warranty-container .abc-checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.abc-warranty-container .abc-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* === Conditional Fields === */
.abc-warranty-container .abc-conditional-field {
    margin-top: 15px;
    padding: 20px;
    background: rgba(46, 183, 159, 0.05);
    border-left: 3px solid var(--abc-success);
    border-radius: 4px;
    margin-bottom: 20px;
}

/* === Info Boxes === */
.abc-warranty-container .abc-info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.abc-warranty-container .abc-info-box strong {
    font-weight: 600;
}

.abc-warranty-container .abc-warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.abc-warranty-container .abc-warning-box p {
    margin: 0;
    font-size: 14px;
    color: var(--abc-text);
}

/* === Links === */
.abc-warranty-container .abc-link {
    color: var(--abc-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.abc-warranty-container .abc-link:hover {
    color: var(--abc-accent-hover);
    text-decoration: underline;
}

/* === File Upload === */
.abc-warranty-container .abc-file-upload {
    border: 2px dashed var(--abc-border);
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--abc-white);
}

.abc-warranty-container .abc-file-upload:hover {
    border-color: var(--abc-primary);
    background: rgba(17, 46, 85, 0.02);
}

.abc-warranty-container .abc-file-upload-icon {
    font-size: 40px;
    color: var(--abc-text-light);
    margin-bottom: 10px;
}

.abc-warranty-container .abc-file-upload-text {
    color: var(--abc-text);
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 15px;
}

.abc-warranty-container .abc-file-upload-hint {
    color: var(--abc-text-light);
    font-size: 13px;
}

.abc-warranty-container .abc-file-uploaded {
    margin-top: 10px;
    padding: 10px 15px;
    background: #e8f5f1;
    border-radius: 4px;
    color: var(--abc-success);
    font-size: 14px;
    font-weight: 500;
}

/* === Navigation Buttons === */
.abc-warranty-container .abc-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--abc-border);
    gap: 15px;
    flex-wrap: wrap;
}

.abc-warranty-container .abc-nav-left,
.abc-warranty-container .abc-nav-right {
    /* Flex children */
}

.abc-warranty-container .abc-btn-secondary {
    padding: 12px 30px;
    background: transparent;
    color: var(--abc-primary);
    border: 2px solid var(--abc-primary);
    border-radius: 150px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.abc-warranty-container .abc-btn-secondary:hover {
    background: var(--abc-primary);
    color: var(--abc-white);
}

.abc-warranty-container .abc-btn-next,
.abc-warranty-container .abc-btn-submit {
    padding: 12px 30px;
    background: var(--abc-accent);
    color: var(--abc-white);
    border: none;
    border-radius: 150px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.abc-warranty-container .abc-btn-next:hover,
.abc-warranty-container .abc-btn-submit:hover {
    background: var(--abc-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(171, 6, 9, 0.3);
}

.abc-warranty-container .abc-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: var(--abc-accent);
    color: var(--abc-white);
    border: none;
    border-radius: 150px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.abc-warranty-container .abc-btn-primary:hover {
    background: var(--abc-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(171, 6, 9, 0.3);
}

.abc-warranty-container .abc-btn-primary:disabled,
.abc-warranty-container .abc-btn-next:disabled,
.abc-warranty-container .abc-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === Auto-save Indicator === */
.abc-autosave-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: var(--abc-success);
    color: var(--abc-white);
    border-radius: 20px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.abc-autosave-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.abc-autosave-indicator.saving {
    background: #ff9800;
}

.abc-autosave-indicator.error {
    background: var(--abc-error);
}

/* === Declaration Page === */
.abc-warranty-container .abc-declaration-intro {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.abc-warranty-container .abc-declaration-title {
    color: var(--abc-primary);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.abc-warranty-container .abc-declaration-terms {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
}

.abc-warranty-container .abc-declaration-terms h4 {
    margin-bottom: 10px;
    color: var(--abc-primary);
    font-size: 16px;
}

.abc-warranty-container .abc-declaration-list {
    margin-left: 20px;
    font-size: 14px;
    line-height: 1.8;
    list-style: disc;
}

.abc-warranty-container .abc-declaration-list li {
    margin-bottom: 8px;
}

/* === Units Table (Page 8) === */
.abc-warranty-container .abc-units-section {
    margin-top: 30px;
}

.abc-warranty-container .abc-units-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.abc-warranty-container .abc-units-title {
    color: var(--abc-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.abc-warranty-container .abc-add-unit-btn {
    padding: 10px 20px;
    background: var(--abc-success);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.abc-warranty-container .abc-add-unit-btn:hover {
    background: #26a186;
    transform: translateY(-1px);
}

.abc-warranty-container .abc-add-unit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.abc-warranty-container .abc-units-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 8px;
}

.abc-warranty-container .abc-summary-stat {
    text-align: center;
}

.abc-warranty-container .abc-summary-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--abc-primary);
    display: block;
}

.abc-warranty-container .abc-summary-label {
    font-size: 12px;
    color: var(--abc-text-light);
    display: block;
    margin-top: 3px;
}

.abc-warranty-container .abc-units-table-wrapper {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.abc-warranty-container .abc-units-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 800px;
}

.abc-warranty-container .abc-units-table thead {
    background: var(--abc-primary);
    color: white;
}

.abc-warranty-container .abc-units-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 500;
}

.abc-warranty-container .abc-units-table th:nth-child(4),
.abc-warranty-container .abc-units-table th:nth-child(5) {
    text-align: center;
}

.abc-warranty-container .abc-units-table th:nth-child(7) {
    text-align: right;
}

.abc-warranty-container .abc-units-table th:nth-child(8) {
    text-align: center;
    width: 150px;
}

.abc-warranty-container .abc-units-table tbody tr {
    border-bottom: 1px solid #eee;
}

.abc-warranty-container .abc-units-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.abc-warranty-container .abc-units-table tbody tr:hover {
    background: #f0f4f8;
}

.abc-warranty-container .abc-units-table td {
    padding: 12px 10px;
}

.abc-warranty-container .abc-units-table td:nth-child(2) {
    font-weight: 500;
}

.abc-warranty-container .abc-units-table td:nth-child(4),
.abc-warranty-container .abc-units-table td:nth-child(5) {
    text-align: center;
}

.abc-warranty-container .abc-units-table td:nth-child(7) {
    text-align: right;
}

.abc-warranty-container .abc-units-table td:nth-child(8) {
    text-align: center;
}

.abc-warranty-container .abc-unit-stage-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.abc-warranty-container .abc-unit-stage-complete {
    background: #e8f5e9;
    color: #2e7d32;
}

.abc-warranty-container .abc-unit-stage-notstarted {
    background: #fff3e0;
    color: #ef6c00;
}

.abc-warranty-container .abc-unit-stage-inprogress {
    background: #e3f2fd;
    color: #1565c0;
}

.abc-warranty-container .abc-unit-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.abc-warranty-container .abc-btn-icon {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.abc-warranty-container .abc-btn-icon.edit {
    background: #2196f3;
    color: white;
}

.abc-warranty-container .abc-btn-icon.duplicate {
    background: #9c27b0;
    color: white;
}

.abc-warranty-container .abc-btn-icon.delete {
    background: #f44336;
    color: white;
}

.abc-warranty-container .abc-btn-icon:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.abc-warranty-container .abc-no-units {
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
    color: var(--abc-text-light);
}

.abc-warranty-container .abc-no-units-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.abc-warranty-container .abc-no-units p {
    margin-bottom: 15px;
    font-size: 15px;
}

.abc-warranty-container .abc-bulk-actions {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.abc-warranty-container .abc-bulk-actions-label {
    font-weight: 500;
    color: var(--abc-primary);
}

.abc-warranty-container .abc-bulk-actions-hint {
    color: var(--abc-text-light);
    font-size: 13px;
}

.abc-warranty-container .abc-bulk-btn {
    padding: 6px 12px;
    background: var(--abc-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.abc-warranty-container .abc-bulk-btn:hover {
    background: #0d2340;
}

.abc-warranty-container .abc-bulk-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* === Unit Modal === */
.abc-unit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.abc-unit-modal {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.abc-unit-modal-header {
    background: var(--abc-primary);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.abc-unit-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff !important;
}

.abc-unit-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.abc-unit-modal-body {
    padding: 25px;
}

.abc-unit-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.abc-unit-modal-cancel {
    padding: 10px 25px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.abc-unit-modal-cancel:hover {
    background: #f5f5f5;
}

.abc-unit-modal-save {
    padding: 10px 25px;
    background: var(--abc-success);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.abc-unit-modal-save:hover {
    background: #26a186;
}

/* === Quick Questions Section (Page 8) === */
.abc-warranty-container .abc-quick-questions {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* === Upload Section (Page 8) === */
.abc-warranty-container .abc-upload-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.abc-warranty-container .abc-upload-section h3 {
    color: var(--abc-primary);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .abc-warranty-container {
        padding: 10px;
    }
    
    .abc-warranty-container .abc-form-wrapper {
        border-radius: 0;
    }
    
    .abc-warranty-container .abc-progress-container {
        padding: 20px 20px;
    }
    
    .abc-warranty-container .abc-form-page {
        padding: 25px 20px;
    }
    
    .abc-warranty-container .abc-form-row,
    .abc-warranty-container .abc-three-columns {
        grid-template-columns: 1fr;
    }
    
    .abc-warranty-container .abc-checkbox-list {
        grid-template-columns: 1fr;
    }
    
    .abc-warranty-container .abc-form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .abc-warranty-container .abc-form-navigation button {
        width: 100%;
    }
    
    .abc-warranty-container .abc-page-dots {
        flex-wrap: wrap;
    }
    
    .abc-warranty-container .abc-units-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .abc-warranty-container .abc-bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .abc-unit-modal {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
}

@media (max-width: 480px) {
    .abc-warranty-container .abc-page-title {
        font-size: 22px;
    }
    
    .abc-warranty-container .abc-section-title {
        font-size: 18px;
    }
    
    .abc-warranty-container .abc-units-summary {
        grid-template-columns: 1fr;
    }
    
    .abc-warranty-container .abc-summary-value {
        font-size: 20px;
    }
}

/* === Print Styles === */
@media print {
    .abc-warranty-container .abc-progress-container,
    .abc-warranty-container .abc-form-navigation,
    .abc-autosave-indicator,
    .abc-warranty-container .abc-btn-icon,
    .abc-warranty-container .abc-add-unit-btn,
    .abc-warranty-container .abc-bulk-actions {
        display: none !important;
    }
    
    .abc-warranty-container .abc-form-wrapper {
        box-shadow: none;
    }
}

/* === Text Alignment Utilities === */
.abc-warranty-container .abc-text-center {
    text-align: center;
}

.abc-warranty-container .abc-text-right {
    text-align: right;
}

.abc-warranty-container .abc-text-left {
    text-align: left;
}

/* === Messages === */
.abc-warranty-container .abc-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.abc-warranty-container .abc-form-message.abc-error {
    background: #ffebee;
    color: var(--abc-error);
    border: 1px solid var(--abc-error);
    display: block;
}

.abc-warranty-container .abc-form-message.abc-success {
    background: #e8f5f1;
    color: var(--abc-success);
    border: 1px solid var(--abc-success);
    display: block;
}

/* === Divider === */
.abc-warranty-container .abc-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: var(--abc-text-light);
    font-size: 14px;
}

.abc-warranty-container .abc-divider::before,
.abc-warranty-container .abc-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--abc-border);
}

.abc-warranty-container .abc-divider::before {
    left: 0;
}

.abc-warranty-container .abc-divider::after {
    right: 0;
}

/* === Authentication Modal (Outside Container Scope) === */
.abc-auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 46, 85, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483600; /* near max int — sit above any theme nav/header */
    padding: 20px;
    overflow: hidden; /* Prevent background scroll */
}

.abc-auth-modal {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.abc-auth-tabs {
    display: flex;
    border-bottom: 2px solid #b8bbd3;
    flex-shrink: 0; /* Don't shrink tabs */
    background: #ffffff;
}

.abc-auth-tab {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: transparent;
    color: #667291;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.abc-auth-tab:hover {
    background: rgba(17, 46, 85, 0.05);
}

.abc-auth-tab.active {
    color: #112e55;
}

.abc-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #de080c;
}

.abc-auth-content {
    display: none;
    padding: 30px;
    overflow-y: auto;
    flex: 1; /* Take remaining space */
}

.abc-auth-content.active {
    display: block;
}

.abc-auth-content h3 {
    font-size: 24px;
    color: #112e55;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.abc-auth-content > p {
    color: #667291;
    margin-bottom: 25px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* Auth Form Elements */
.abc-auth-content .abc-form-group {
    margin-bottom: 20px;
}

.abc-auth-content .abc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.abc-auth-content .abc-form-group label {
    display: block;
    font-weight: 500;
    color: #112e55;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.abc-auth-content .abc-form-group input[type="text"],
.abc-auth-content .abc-form-group input[type="email"],
.abc-auth-content .abc-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #b8bbd3;
    border-radius: 4px;
    font-size: 15px;
    color: #252c3e;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.abc-auth-content .abc-form-group input:focus {
    outline: none;
    border-color: #2eb79f;
    box-shadow: 0 0 0 3px rgba(46, 183, 159, 0.1);
}

.abc-auth-content .abc-form-group input::placeholder {
    color: #667291;
    opacity: 0.6;
}

.abc-auth-content .abc-form-group small {
    display: block;
    color: #667291;
    font-size: 13px;
    margin-top: 5px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.abc-auth-content .abc-required {
    color: #ab0609;
    font-style: normal;
    margin-left: 2px;
}

/* Auth Checkbox */
.abc-auth-content .abc-checkbox-group {
    margin-bottom: 20px;
}

.abc-auth-content .abc-checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
    font-size: 14px;
}

.abc-auth-content .abc-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Auth Button */
.abc-auth-content .abc-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: #ab0609;
    color: #ffffff;
    border: none;
    border-radius: 150px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.abc-auth-content .abc-btn-primary:hover {
    background: #de080c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(171, 6, 9, 0.3);
}

.abc-auth-content .abc-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Auth Messages */
.abc-auth-content .abc-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.abc-auth-content .abc-form-message.abc-error {
    background: #ffebee;
    color: #f41033;
    border: 1px solid #f41033;
    display: block;
}

.abc-auth-content .abc-form-message.abc-success {
    background: #e8f5f1;
    color: #2eb79f;
    border: 1px solid #2eb79f;
    display: block;
}

/* Auth Divider */
.abc-auth-content .abc-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    color: #667291;
    font-size: 14px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.abc-auth-content .abc-divider::before,
.abc-auth-content .abc-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #b8bbd3;
}

.abc-auth-content .abc-divider::before {
    left: 0;
}

.abc-auth-content .abc-divider::after {
    right: 0;
}

/* Auth Links */
.abc-auth-content .abc-link {
    color: #ab0609;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.abc-auth-content .abc-link:hover {
    color: #de080c;
    text-decoration: underline;
}

.abc-auth-content .abc-text-center {
    text-align: center;
}

/* Auth Modal Responsive */
@media (max-width: 768px) {
    .abc-auth-modal {
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .abc-auth-content {
        padding: 20px;
    }
    
    .abc-auth-tab {
        font-size: 13px;
        padding: 15px 10px;
    }
    
    .abc-auth-content .abc-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .abc-auth-content h3 {
        font-size: 20px;
    }
}