/* ==========================================================================
   PROGRAMA DE SOCIOS // STYLES & MULTI-STEP FORM ARCHITECTURE
   ========================================================================== */

/* Countdown Timer Widget */
.countdown-widget-container {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.06);
}

.countdown-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 580px) {
    .countdown-timer-grid {
        gap: 0.5rem;
    }
}

.countdown-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.85rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.cd-number {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

@media (max-width: 580px) {
    .cd-number {
        font-size: 1.5rem;
    }
}

.cd-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
}

.form-wrapper-card {
    background: #ffffff;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .form-wrapper-card {
        padding: 1.5rem 1.25rem;
    }
}

.form-card-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.5rem;
}

.badge-step {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 3px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-labels-row {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: #94a3b8;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: default;
    transition: var(--transition-fast);
}

.step-dot span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition-fast);
}

.step-dot.active {
    color: #0284c7;
    font-weight: 700;
}

.step-dot.active span {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.step-dot.completed span {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* Steps Panes */
.form-step-pane {
    display: none;
    animation: fadeInStep 0.3s ease forwards;
}

.form-step-pane.active {
    display: block;
}

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

.step-intro-box {
    margin-bottom: 2rem;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 1.25rem;
}

.step-intro-box h3 {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
    color: #0a0f1d;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.step-intro-box h3 i {
    color: #0284c7;
}

.step-intro-box p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.req {
    color: #ef4444;
    font-weight: bold;
}

.field-error {
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 0.35rem;
    display: none;
    font-family: var(--font-mono);
}

.field-error.visible {
    display: block;
}

/* Conditional Boxes */
.doc-conditional-box, .part-conditional-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.notice-info-banner {
    background: rgba(2, 132, 199, 0.06);
    border-left: 4px solid #0284c7;
    padding: 1rem 1.25rem;
    border-radius: 0 4px 4px 0;
    display: flex;
    gap: 0.85rem;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Participation Selector Cards */
.participation-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .participation-selector-grid {
        grid-template-columns: 1fr;
    }
}

.participation-card-opt {
    position: relative;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    background: #ffffff;
    transition: var(--transition-fast);
    display: block;
}

.participation-card-opt input[type="radio"] {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    accent-color: #0284c7;
}

.participation-card-opt .opt-icon {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 0.85rem;
    transition: var(--transition-fast);
}

.participation-card-opt .opt-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0a0f1d;
    margin-bottom: 0.4rem;
}

.participation-card-opt .opt-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.participation-card-opt:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

.participation-card-opt.selected {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.participation-card-opt.selected .opt-icon {
    color: #0284c7;
}

/* File Upload Grid & Drop Area */
.file-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .file-upload-grid {
        grid-template-columns: 1fr;
    }
}

.file-upload-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}

.file-card-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0a0f1d;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-card-title i {
    color: #0284c7;
}

.file-card-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.85rem;
}

.drop-area {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 1.75rem 1rem;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.drop-area:hover, .drop-area.dragover {
    border-color: #0284c7;
    background: #f0f9ff;
}

.drop-icon {
    font-size: 1.8rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.drop-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.drop-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: var(--font-mono);
    margin-top: 0.2rem;
}

.file-status-preview {
    margin-top: 0.75rem;
    display: none;
}

.file-status-preview.active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.85rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.doc-guidelines-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.size-meter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.size-meter-bar span {
    font-size: 0.82rem;
    font-family: var(--font-mono);
    color: #475569;
    display: block;
    margin-bottom: 0.4rem;
}

.size-meter-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.size-meter-fill {
    height: 100%;
    background: #10b981;
    transition: width 0.3s ease;
}

/* Declarations Checkboxes */
.declarations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.declaration-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1.15rem 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.declaration-item:hover {
    background: #f0f9ff;
    border-color: #cbd5e1;
}

.declaration-item input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: #0284c7;
    flex-shrink: 0;
    cursor: pointer;
}

.decl-text {
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.6;
}

.antibot-box {
    margin-top: 1.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
}

/* Summary Review Card */
.summary-review-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 1.75rem;
}

.summary-section-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1.5rem;
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

.sum-item label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-family: var(--font-mono);
}

.sum-item span {
    font-size: 0.92rem;
    color: #0a0f1d;
    font-weight: 500;
}

.sum-files-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sum-file-row {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    color: #334155;
}

.form-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Confirmation Screen */
.confirmation-pane {
    text-align: center;
    padding: 2.5rem 1.5rem;
    animation: fadeInStep 0.4s ease;
}

.confirm-icon-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    color: #10b981;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.confirm-code-display {
    background: #f0f9ff;
    border: 1px dashed #0284c7;
    border-radius: var(--radius-sm);
    padding: 1.25rem 2rem;
    display: inline-block;
    margin: 1rem auto;
}

/* Process steps grid */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
}

.process-step-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.process-step-item .step-num {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 800;
    color: rgba(2, 132, 199, 0.25);
    margin-bottom: 0.75rem;
}

.process-step-item h4 {
    font-size: 1.1rem;
    color: #0a0f1d;
    margin-bottom: 0.5rem;
}

.process-step-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
