/* X8 Verify Frontend Verification Form Styles */

#x8-evs-form-container.x8-evs-verify-card {
    width: 100%;
    max-width: 520px;
    margin: 24px auto;
    padding: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header block */
.x8-evs-verify-header {
    padding: 32px 28px 24px;
    text-align: center;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
}

.x8-evs-verify-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: center;
}

.x8-evs-verify-title {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.x8-evs-verify-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* Verification Introduction */
.x8-evs-verification-intro {
    margin: 0;
    padding: 24px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.x8-evs-intro-heading {
    margin: 0 0 12px 0;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.x8-evs-requirements {
    margin: 0 0 16px 0;
    padding-left: 20px;
    list-style: none;
}

.x8-evs-requirements li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 8px;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.5;
}

.x8-evs-requirements li::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
}

.x8-evs-verification-note {
    margin: 0;
    padding: 12px 14px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #92400e;
    line-height: 1.45;
}

/* Main form block */
.x8-evs-verification-form {
    padding: 28px;
    text-align: center;
}

.x8-evs-document-type-choice {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
}

.x8-evs-doc-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.x8-evs-document-type-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9375rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.x8-evs-document-type-select:hover {
    border-color: #94a3b8;
}

.x8-evs-document-type-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.x8-evs-cta-text {
    margin: 0 0 24px 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #000;
}

.x8-evs-cta-wrap {
    margin-top: 8px;
}

/* Primary button */
.x8-evs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.x8-evs-btn-large {
    padding: 16px 36px;
    font-size: 1.0625rem;
}

.x8-evs-btn-primary {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.x8-evs-btn-primary:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.x8-evs-btn-primary:active {
    transform: translateY(0);
}

.x8-evs-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading state */
.x8-evs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px;
    margin-top: 16px;
    text-align: center;
}

.x8-evs-loading p {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
}

.x8-evs-loading .x8-evs-spinner {
    order: -1;
}

/* Notice Styles */
.x8-evs-notice {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

.x8-evs-notice-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.x8-evs-notice-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.x8-evs-notice-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

.x8-evs-notice p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.x8-evs-notice p:last-child {
    margin-bottom: 0;
}

/* Verification Actions (e.g. other status screens) */
.x8-evs-verification-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Button base (fallback for other contexts) */
.button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.button-primary {
    background: #007cba;
    color: white;
}

.button-primary:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

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

.button-secondary:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.button-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
}

.button:disabled {
    background: #ccc !important;
    color: #999 !important;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading Animation */
.x8-evs-loading {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.x8-evs-loading p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.x8-evs-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Result Styles */
.x8-evs-result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 6px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

.x8-evs-result.success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.x8-evs-result.error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.x8-evs-result p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 600px) {
    #x8-evs-form-container.x8-evs-verify-card {
        margin: 16px 12px;
        max-width: none;
        border-radius: 12px;
    }
    
    .x8-evs-verify-header {
        padding: 24px 20px 20px;
    }
    
    .x8-evs-verify-title {
        font-size: 1.35rem;
    }
    
    .x8-evs-verification-intro {
        padding: 20px;
    }
    
    .x8-evs-verification-form {
        padding: 20px;
    }
    
    .x8-evs-document-type-choice {
        padding: 14px 16px;
    }
    
    .x8-evs-btn-large {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .x8-evs-verification-actions {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .button-large {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .x8-evs-verify-header {
        padding: 20px 16px 16px;
    }
    
    .x8-evs-verify-icon {
        width: 40px;
        height: 40px;
        background-size: 22px 22px;
    }
    
    .x8-evs-verify-title {
        font-size: 1.2rem;
    }
    
    .x8-evs-verify-subtitle {
        font-size: 0.875rem;
    }
    
    .x8-evs-verification-intro {
        padding: 16px;
    }
    
    .x8-evs-requirements li {
        font-size: 0.875rem;
    }
    
    .x8-evs-verification-note {
        font-size: 0.75rem;
        padding: 10px 12px;
    }
    
    .x8-evs-verification-form {
        padding: 16px;
    }
}

/* Accessibility */
.x8-evs-btn:focus-visible,
#x8-evs-start-verification:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #x8-evs-form-container {
        border: 2px solid #000;
    }
    
    .x8-evs-notice {
        border-left-width: 6px;
    }
    
    .button {
        border: 2px solid currentColor;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #x8-evs-form-container {
        background: #1e1e1e;
        border-color: #444;
        color: #fff;
    }
    
    #x8-evs-form-container h3 {
        color: #fff;
    }
    
    .x8-evs-verification-intro {
        background: #2a2a2a;
        color: #ccc;
    }
    
    .x8-evs-verification-intro p {
        color: #ccc;
    }
    
    .x8-evs-requirements li {
        color: #aaa;
    }
    
    .x8-evs-verification-form p {
        color: #ccc;
    }
    
    .x8-evs-verification-note {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .x8-evs-loading p {
        color: #aaa;
    }
    
    .x8-evs-spinner {
        border-color: #444;
        border-top-color: #4a9eff;
    }
} 