/**
 * Claim Tool CSS
 * Path: public_html/css/claim-tool.css
 * Version: 1.1.5
 * 
 * Changelog v1.1.0:
 * - Added step flow styles for success state
 * - Simplified success header (removed large icons)
 */

/* === CLAIM CTA (on tool page) === */
.claim-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    margin-top: 12px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    font-size: 13px;
    color: var(--text-muted, #64748b);
}

.claim-cta svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted, #64748b);
    flex-shrink: 0;
}

.claim-cta a {
    color: var(--text-secondary, #64748b);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: pointer;
}

.claim-cta a:hover {
    color: var(--primary-color, #2196F3);
}

/* === MODAL OVERLAY === */
.claim-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: claimFadeIn 0.2s ease;
}

.claim-modal-overlay.active {
    display: flex;
}

@keyframes claimFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes claimSlideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* === MODAL CONTAINER === */
.claim-modal {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: claimSlideUp 0.3s ease;
}

/* === MODAL HEADER === */
.claim-modal-header {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: #fff;
    padding: 24px 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
}

.claim-modal-header.success {
    background: linear-gradient(135deg, #10b981, #059669);
    padding: 20px;
}

.claim-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.claim-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.claim-modal-close svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.claim-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.claim-modal-icon svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.claim-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
}

.claim-modal-header.success h2 {
    margin: 0;
}

.claim-modal-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* === MODAL BODY === */
.claim-modal-body {
    padding: 24px 20px;
}

/* === BENEFITS LIST === */
.claim-benefit-list {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 0;
}

.claim-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}

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

.claim-benefit-icon {
    width: 40px;
    height: 40px;
    background: #e3f2fd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.claim-benefit-icon svg {
    width: 20px;
    height: 20px;
    fill: #2196F3;
}

.claim-benefit-icon.premium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.claim-benefit-icon.premium svg {
    fill: #d97706;
}

.claim-benefit-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
    margin: 0 0 4px 0;
}

.claim-benefit-content p {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    line-height: 1.4;
    margin: 0;
}

.claim-badge-premium {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
}

/* === FORM STYLES === */
.claim-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.claim-form-group {
    margin-bottom: 16px;
}

.claim-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #374151);
    margin-bottom: 6px;
}

.claim-form-group input[type="email"],
.claim-form-group input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #1a202c);
    box-sizing: border-box;
}

.claim-form-group input:focus-visible {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.claim-form-group input::placeholder {
    color: var(--text-muted, #9ca3af);
}

/* Honeypot - hidden from users */
.claim-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* Captcha */
.claim-captcha-group {
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

.claim-captcha-question {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.claim-captcha-question .icon {
    width: 32px;
    height: 32px;
    background: #e3f2fd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.claim-captcha-question .icon svg {
    width: 18px;
    height: 18px;
    fill: #2196F3;
}

.claim-captcha-question span {
    font-size: 14px;
    color: var(--text-primary, #374151);
    font-weight: 500;
}

.claim-captcha-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #1a202c);
}

.claim-captcha-input:focus-visible {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Submit button */
.claim-submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #1976D2, #1565C0);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.claim-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.claim-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* === SUCCESS STATE === */
.claim-content-form,
.claim-content-success {
    display: none;
}

.claim-content-form.active,
.claim-content-success.active {
    display: block;
}

.claim-success-body {
    padding: 24px 20px;
}

/* === STEP FLOW === */
.claim-steps {
    margin-bottom: 24px;
}

.claim-step {
    display: flex;
    gap: 16px;
}

.claim-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32px;
    flex-shrink: 0;
}

.claim-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.claim-step.completed .claim-step-circle {
    background: #10b981;
    color: #fff;
}

.claim-step.completed .claim-step-circle svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.claim-step.current .claim-step-circle {
    background: #1976D2;
    color: #fff;
}

.claim-step.pending .claim-step-circle {
    background: var(--bg-secondary, #e5e7eb);
    color: var(--text-muted, #9ca3af);
}

.claim-step-line {
    width: 2px;
    flex-grow: 1;
    min-height: 24px;
    margin: 8px 0;
}

.claim-step.completed .claim-step-line {
    background: #10b981;
}

.claim-step.current .claim-step-line {
    background: linear-gradient(to bottom, #2196F3 0%, #e5e7eb 100%);
}

.claim-step-content {
    padding-bottom: 20px;
    flex-grow: 1;
}

.claim-step:last-child .claim-step-content {
    padding-bottom: 0;
}

.claim-step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1a202c);
    margin-bottom: 4px;
}

.claim-step.pending .claim-step-title {
    color: var(--text-muted, #9ca3af);
}

.claim-step-desc {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    line-height: 1.4;
}

.claim-step.pending .claim-step-desc {
    color: var(--text-muted, #9ca3af);
}

.claim-step-email {
    display: inline-block;
    background: var(--bg-secondary, #f1f5f9);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #374151);
    margin-top: 8px;
}

.claim-success-note {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    text-align: center;
    margin: 0 0 20px 0;
    padding: 12px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 8px;
    line-height: 1.5;
}

.claim-success-close-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.claim-success-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* === ERROR MESSAGE === */
.claim-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}

.claim-error-message.show {
    display: block;
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .claim-modal {
        max-width: 100%;
        margin: 8px;
        max-height: calc(100vh - 32px);
    }
    
    .claim-modal-header {
        padding: 20px 16px;
    }
    
    .claim-modal-body {
        padding: 20px 16px;
    }
    
    .claim-modal-header h2 {
        font-size: 20px;
    }
    
    .claim-benefit-item {
        padding: 10px 0;
    }
    
    .claim-benefit-icon {
        width: 36px;
        height: 36px;
    }
    
    .claim-benefit-content h3 {
        font-size: 14px;
    }
    
    .claim-benefit-content p {
        font-size: 12px;
    }
    
    .claim-success-body {
        padding: 20px 16px;
    }
}