/* Frontend styles for SparesSpace ID Verification */

.ss-id-verification-form-wrapper {
    max-width: 720px;
    margin: 30px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ss-id-form-header h2 {
    margin: 0 0 4px;
    font-size: 1.7rem;
    font-weight: 600;
    color: #111827;
}

.ss-id-form-header p {
    margin: 0 0 16px;
    color: #6b7280;
}

.ss-id-form-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
    margin-top: 18px;
}

.ss-id-form-section h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #111827;
}

.ss-id-form-group {
    margin-bottom: 14px;
}

.ss-id-form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #374151;
}

.ss-id-form-group input[type="text"],
.ss-id-form-group input[type="date"],
.ss-id-form-group input[type="email"],
.ss-id-form-group select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.ss-id-form-group input:focus,
.ss-id-form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    outline: none;
}

.ss-id-form-group small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #6b7280;
}

.ss-id-document-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.ss-id-document-option {
    position: relative;
}

.ss-id-document-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ss-id-document-option label {
    display: block;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    cursor: pointer;
    background: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.ss-id-document-option label:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.ss-id-document-option .document-icon {
    font-size: 24px;
    display: inline-block;
    margin-right: 8px;
}

.ss-id-document-option .document-title {
    display: block;
    font-weight: 600;
    color: #111827;
}

.ss-id-document-option .document-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.ss-id-document-option input[type="radio"]:checked + label {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.ss-id-upload-area {
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    background: #f9fafb;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ss-id-upload-area.dragover {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.ss-id-upload-area .upload-placeholder h4 {
    margin: 4px 0;
    font-size: 1rem;
    color: #111827;
}

.ss-id-upload-area .upload-placeholder p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.ss-id-upload-area .upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 4px;
}

.ss-id-upload-area .upload-preview {
    text-align: left;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-preview-image {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.file-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    word-break: break-all;
}

.file-size {
    font-size: 11px;
    color: #6b7280;
}

.remove-file {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.declaration-section {
    margin-top: 4px;
}

.ss-id-declaration {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}

.ss-id-declaration input[type="checkbox"] {
    margin-top: 3px;
}

.ss-id-privacy-notice {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.ss-id-privacy-notice a {
    color: #2563eb;
    text-decoration: underline;
}

.ss-id-form-submit {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ss-id-submit-btn {
    border-radius: 9999px;
    border: none;
    padding: 9px 18px;
    background: linear-gradient(120deg, #2563eb, #4f46e5);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.45);
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.ss-id-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.55);
}

.ss-id-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.ss-id-loading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
}

.ss-id-loading .spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    animation: ss-id-spin 0.9s linear infinite;
}

@keyframes ss-id-spin {
    to {
        transform: rotate(360deg);
    }
}

.ss-id-form-messages {
    margin-top: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.ss-id-form-messages.success {
    background: #ecfdf5;
    border: 1px solid #22c55e;
    color: #166534;
}

.ss-id-form-messages.error {
    background: #fef2f2;
    border: 1px solid #f97373;
    color: #991b1b;
}

.ss-id-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-id-modal .modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    padding: 18px 20px 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.ss-id-modal h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.ss-id-modal .modal-body {
    max-height: 320px;
    overflow-y: auto;
    font-size: 13px;
    color: #4b5563;
}

.ss-id-modal ol {
    margin: 0 0 10px 17px;
    padding: 0;
}

.ss-id-modal li {
    margin-bottom: 4px;
}

.ss-id-modal .modal-close {
    margin-top: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
}

.ss-id-status-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 16px 18px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.ss-id-status-wrapper h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

@media (max-width: 640px) {
    .ss-id-verification-form-wrapper {
        padding: 16px;
        margin: 16px 8px;
    }

    .ss-id-document-options {
        grid-template-columns: 1fr;
    }
/* Tracking & Status Card Styles */
.ss-id-status-card {
    padding: 25px;
    border-radius: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin-top: 20px;
}
.ss-id-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.status-pending { background: #fff4e5; color: #b76e00; }
.status-approved { background: #e6f4ea; color: #1e7e34; }
.status-rejected { background: #fce8e6; color: #d93025; }
.status-under_review { background: #e8f0fe; color: #1967d2; }
.ss-id-status-row {
    display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #eee;
}
.ss-id-status-message {
    margin-top: 20px; padding: 15px; border-radius: 8px; font-size: 14px;
}
.message-pending { background: #fff9f0; border-left: 4px solid #ff9800; }
.message-approved { background: #f0f9f1; border-left: 4px solid #4caf50; }
.message-rejected { background: #fff5f5; border-left: 4px solid #f44336; }
    .file-preview {
        align-items: flex-start;
    }
}
