.ionmara-warranty-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ionmara-warranty-container.ionmara-warranty-container--success {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0px !important;
}

.ionmara-warranty-header {
    text-align: center;
    margin-bottom: 30px;
}

.ionmara-warranty-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.ionmara-warranty-header p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.5;
}

.ionmara-warranty-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.ionmara-warranty-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.ionmara-warranty-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ionmara-warranty-col {
    flex: 1;
}

.ionmara-warranty-form-group {
    margin-bottom: 20px;
}

.ionmara-warranty-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.ionmara-warranty-form-group .required {
    color: #e74c3c;
}

.ionmara-warranty-form-group input[type="text"],
.ionmara-warranty-form-group input[type="email"],
.ionmara-warranty-form-group input[type="tel"],
.ionmara-warranty-form-group input[type="date"],
.ionmara-warranty-form-group input[type="file"],
.ionmara-warranty-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.ionmara-warranty-container .ionmara-phone-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ionmara-warranty-container .ionmara-phone-code {
    flex: 0 0 200px;
    position: relative;
}

.ionmara-warranty-container .ionmara-phone-number {
    flex: 1;
}

.ionmara-warranty-container .ionmara-country-select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' 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 12px center;
    background-size: 16px 16px;
    cursor: pointer;
    box-sizing: border-box;
}

.ionmara-warranty-container .ionmara-country-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ionmara-warranty-container .ionmara-phonecode-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ionmara-warranty-container .ionmara-phonecode-option .ionmara-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.ionmara-warranty-container .ionmara-phone-code .error-message,
.ionmara-warranty-container .ionmara-phone-number .error-message {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: 12px;
    line-height: 1.35;
}

.ionmara-warranty-container .ionmara-phone-code.has-error .ionmara-country-select,
.ionmara-warranty-container .ionmara-phone-number.has-error input[type="tel"] {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

#product-category {
    padding: 6px 15px;
    padding-right: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2712%27%20height=%2712%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23888%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpolyline%20points=%276%209%2012%2015%2018%209%27%3E%3C/polyline%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
}

.ionmara-warranty-form-group input:focus,
.ionmara-warranty-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ionmara-warranty-field-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.ionmara-warranty-help {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
    font-style: italic;
}

.ionmara-warranty-container .ionmara-warranty-form-group > .error-message {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: 12px;
    line-height: 1.35;
}

.ionmara-warranty-container .file-upload-wrapper {
    position: relative;
}

.ionmara-warranty-container .file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ionmara-warranty-container .file-upload-label {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
}

.ionmara-warranty-container .file-upload-label:hover {
    border-color: #EF4136;
    background: #fff5f5;
}

.ionmara-warranty-container .file-upload-label.drag-over {
    border-color: #EF4136;
    background: #fff5f5;
}

.ionmara-warranty-container .file-upload-label.has-file {
    border-color: #28a745;
    background: #f8fff9;
}

.ionmara-warranty-container .upload-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.ionmara-warranty-container .upload-text {
    color: #6c757d;
    flex: 1;
}

.ionmara-warranty-container .file-name {
    color: #28a745;
    font-weight: 600;
    margin-left: 10px;
}

.ionmara-warranty-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.ionmara-warranty-checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.ionmara-warranty-checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
}

.ionmara-warranty-container .checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 12px;
}

.ionmara-warranty-container .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.ionmara-warranty-container .checkmark {
    min-width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.ionmara-warranty-container .checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: #EF4136;
    border-color: #EF4136;
}

.ionmara-warranty-container .checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.ionmara-warranty-container .checkbox-label:hover .checkmark {
    border-color: #EF4136;
}

/* Inline layout for checkbox and terms link */
.ionmara-warranty-form-group:has(.checkbox-label) {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ionmara-warranty-form-group:has(.checkbox-label) .checkbox-label {
    margin-bottom: 0;
}

.ionmara-warranty-form-group:has(.checkbox-label) small {
    margin-bottom: 0;
}

.ionmara-warranty-form-actions {
    text-align: center;
    margin-top: 30px;
}

.ionmara-warranty-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ionmara-warranty-btn-primary {
    background: #EF4136;
    color: white;
}

.ionmara-warranty-btn-primary:hover {
    background: #d6341f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 65, 54, 0.3);
}

.ionmara-warranty-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
#ionmara-warranty-messages {
    margin-bottom: 0px;
}

.ionmara-warranty-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.ionmara-warranty-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ionmara-warranty-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ionmara-warranty-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.ionmara-warranty-success-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.message-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    font-weight: bold;
}

.success .message-icon {
    background: #d4edda;
    color: #28a745;
}

.message-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.success h2 {
    color: #155724;
}

.claim-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.detail-item strong {
    color: #495057;
    font-weight: 600;
}

.detail-item span {
    color: #2c3e50;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

.btn-primary:hover {
    background: #d6341f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 65, 54, 0.3);
}

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

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

/* Loading state */
.ionmara-warranty-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ionmara-warranty-loading .ionmara-warranty-btn-primary::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: ionmara-spin 1s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .ionmara-warranty-container {
        margin: 10px;
        padding: 15px;
    }
    
    .ionmara-warranty-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0px;
    }
    
    .ionmara-warranty-col {
        margin-bottom: 0px;
    }
    
    .ionmara-warranty-header h2 {
        font-size: 24px;
    }
    
    .ionmara-warranty-section {
        padding: 15px;
    }
    
    .ionmara-warranty-section h3 {
        font-size: 18px;
    }
    
    .ionmara-warranty-btn {
        width: 100%;
        max-width: 300px;
    }

    .ionmara-warranty-container .ionmara-phone-group {
        flex-direction: row;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .ionmara-warranty-container {
        margin: 5px;
        padding: 10px;
    }

    .ionmara-warranty-row {
        margin-bottom: 0px;
    }

    .ionmara-warranty-col {
        margin-bottom: 0px;
    }
    
    .ionmara-warranty-header h2 {
        font-size: 20px;
    }
    
    .ionmara-warranty-header p {
        font-size: 14px;
    }
    
    .ionmara-warranty-section {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .ionmara-warranty-form-group input,
    .ionmara-warranty-form-group select {
        padding: 8px 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .ionmara-warranty-container .ionmara-phone-group {
        flex-direction: column;
        gap: 10px;
    }

    .ionmara-warranty-container .ionmara-phone-code {
        flex: 1 1 auto;
    }
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    height: 48px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #fff;
}

.ionmara-warranty-container #country + .select2-container--default .select2-selection--single {
    border: 2px solid #e9ecef;
    border-radius: 8px;
}

.ionmara-warranty-container #country + .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
}

.ionmara-warranty-container #country + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 10px;
}

.ionmara-warranty-container #country + .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: #495057;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6c757d;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.select2-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #3498db;
    outline: none;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3498db;
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e8f4fc;
    color: #2c3e50;
}

#select2-country-results .select2-results__option--highlighted[aria-selected] {
    background-color: #dc3545;
    color: #fff;
}

#select2-country-results .select2-results__option[aria-selected=true] {
    background-color: #fce4ec;
    color: #2c3e50;
}

.select2-container--default .select2-results__group {
    padding: 8px 12px;
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
