/* ===================================
   CLAIMS MODAL STYLES
   =================================== */

/* Modal Overlay */
.claims-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.claims-modal-overlay.active {
    opacity: 1;
}

/* Modal Container */
.claims-modal-container {
    background: linear-gradient(145deg, #1A1C24, #0D0E12);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.claims-modal-overlay.active .claims-modal-container {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.claims-modal-header {
    padding: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.claims-header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.claims-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 217, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00D9FF;
    flex-shrink: 0;
}

.claims-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.claims-subtitle {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0;
    line-height: 1.5;
}

.claims-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.claims-close-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #FF6B6B;
    color: #FF6B6B;
}

/* Modal Body */
.claims-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

/* Form Styles */
.claims-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.claims-form.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #E5E7EB;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label svg {
    color: #00D9FF;
    flex-shrink: 0;
}

.required {
    color: #FF6B6B;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00D9FF;
    background: rgba(0, 217, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #FF6B6B;
}

.form-input[readonly] {
    background: rgba(255, 255, 255, 0.02);
    color: #9CA3AF;
    cursor: not-allowed;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    background-size: 12px 8px;
}

/* FIXED: Dropdown options styling for visibility */
.form-select option {
    background-color: #1A1C24;
    color: #FFFFFF;
    padding: 12px 10px;
    line-height: 1.6;
}
.form-select option:hover {
    background-color: #2A2C34;
    color: #00D9FF;
}

.form-select option:focus {
    background-color: #2A2C34;
    color: #00D9FF;
}

.form-select option:checked {
    background: linear-gradient(#00D9FF, #8B5CF6);
    background-color: #2A2C34;
    color: #FFFFFF;
}

.form-select option:disabled {
    color: #6B7280;
    background-color: #1A1C24;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}

.form-help {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.form-error {
    font-size: 12px;
    color: #FF6B6B;
    margin: 4px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Important Notice */
.claims-notice {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.notice-icon {
    width: 24px;
    height: 24px;
    color: #8B5CF6;
    flex-shrink: 0;
}

.claims-notice h4 {
    font-size: 14px;
    font-weight: 600;
    color: #8B5CF6;
    margin: 0 0 8px 0;
}

.claims-notice ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.claims-notice li {
    font-size: 13px;
    color: #D1D5DB;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

.claims-notice li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #8B5CF6;
    font-weight: bold;
}

/* Form Actions */
.claims-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00D9FF, #8B5CF6);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E5E7EB;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Success Message */
.claims-success {
    text-align: center;
    padding: 40px 20px;
}

.claims-success.hidden {
    display: none;
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon svg {
    color: #00FF9C;
}

.claims-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 12px 0;
}

.claims-success p {
    font-size: 16px;
    color: #9CA3AF;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

/* Spinner */
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    min-width: 250px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #00FF9C, #00D9FF);
    color: #0D0E12;
}

.notification-error {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: #FFFFFF;
}

.notification-info {
    background: linear-gradient(135deg, #00D9FF, #8B5CF6);
    color: #FFFFFF;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .claims-modal-overlay {
        padding: 16px;
    }

    .claims-modal-container {
        max-height: 95vh;
        border-radius: 20px;
    }

    .claims-modal-header {
        padding: 24px;
    }

    .claims-header-content {
        flex-direction: column;
        gap: 12px;
    }

    .claims-icon {
        width: 40px;
        height: 40px;
    }

    .claims-title {
        font-size: 20px;
    }

    .claims-subtitle {
        font-size: 13px;
    }

    .claims-modal-body {
        padding: 24px;
    }

    .claims-form {
        gap: 20px;
    }

    .claims-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .claims-notice {
        flex-direction: column;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .claims-modal-overlay {
        padding: 12px;
    }

    .claims-modal-header {
        padding: 20px;
    }

    .claims-title {
        font-size: 18px;
    }

    .claims-subtitle {
        font-size: 12px;
    }

    .claims-modal-body {
        padding: 20px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        font-size: 13px;
    }

    .notification {
        right: 12px;
        left: 12px;
        min-width: auto;
    }
}

/* Scrollbar Styling */
.claims-modal-body::-webkit-scrollbar {
    width: 8px;
}

.claims-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.claims-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 4px;
}

.claims-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
}
@media (max-width: 480px) {
    .form-select {
        padding: 10px 14px;
        padding-right: 36px;
        font-size: 14px;
        min-height: 44px;
        background-size: 10px 6px;
        background-position: right 10px center;
    }

    .form-select option {
        padding: 10px 8px;
        font-size: 14px;
    }
}

/* iOS Safari specific fix */
@supports (-webkit-touch-callout: none) {
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}