/* =========================================
   Culligan BAnn - Formulario Anexo Razón Social
   Estilo: minimalist editorial, multi-step, aire generoso.
   ========================================= */

#culbann-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 56px 64px;
    max-width: 760px;
    margin: 48px auto;
    box-shadow: 0 24px 80px rgba(0, 30, 66, 0.10);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #0A0A0A;
    box-sizing: border-box;
}

.culbann-header { margin-bottom: 32px; }
.culbann-header h2 {
    color: #001e42;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}
.culbann-sub { color: #666; font-size: 15px; line-height: 1.5; margin: 0; }

/* Progress */
.culbann-progress {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}
.culbann-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #001e42, #4c8bf5);
    border-radius: 4px;
    transition: width 0.35s ease;
}
.culbann-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    max-width: 320px;
}
.culbann-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.culbann-step-num.active { background: #001e42; color: #fff; }

/* Steps */
.culbann-step { display: none; animation: cb-fade 0.3s ease; }
.culbann-step.active { display: block; }
@keyframes cb-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.culbann-step h3 {
    font-size: 20px;
    font-weight: 700;
    color: #001e42;
    margin: 0 0 6px 0;
}
.culbann-step-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 28px 0;
}

/* Subhead inside a step */
.culbann-subhead {
    font-size: 13px;
    font-weight: 600;
    color: #001e42;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 28px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* Rows */
.culbann-row { margin-bottom: 22px; }
.culbann-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #0A0A0A;
    margin-bottom: 8px;
}
.culbann-row label span { color: #DC2626; }

.culbann-row input[type="text"],
.culbann-row input[type="email"],
.culbann-row input[type="date"],
.culbann-row input[type="number"],
.culbann-row select,
.culbann-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    font-size: 15px;
    color: #0A0A0A;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.culbann-row input:focus,
.culbann-row select:focus,
.culbann-row textarea:focus {
    border-color: #001e42;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 30, 66, 0.08);
}
.culbann-row input.error,
.culbann-row select.error { border-color: #DC2626; background: #fef2f2; }

.culbann-row input[type="file"] {
    padding: 8px 0;
    font-size: 13px;
    border: none;
    background: transparent;
}

.culbann-row.split-2 { display: flex; gap: 16px; }
.culbann-row.split-2 > div { flex: 1; }

/* Tiles */
.culbann-tiles {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.culbann-tiles.error .culbann-tile { border-color: #DC2626; }
.culbann-tile {
    flex: 1;
    min-width: 120px;
    padding: 18px 24px;
    border: 1.5px solid #d6d6d6;
    background: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0A0A0A;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}
.culbann-tile:hover { border-color: #001e42; background: #f8fafc; }
.culbann-tile.selected {
    background: #001e42;
    color: #fff;
    border-color: #001e42;
}

/* Legal block */
.culbann-legal {
    background: #f8fafc;
    border-left: 3px solid #001e42;
    padding: 18px 20px;
    border-radius: 6px;
    margin: 28px 0 20px 0;
}
.culbann-legal p {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.culbann-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 16px 0;
}
.culbann-checkbox input { margin-top: 4px; }
.culbann-checkbox label {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

/* Navigation */
.culbann-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.culbann-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid #0A0A0A;
    background: #0A0A0A;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.culbann-btn:hover:not(:disabled) { background: #001e42; border-color: #001e42; }
.culbann-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.culbann-btn-ghost {
    background: transparent;
    color: #666;
    border-color: #d6d6d6;
}
.culbann-btn-ghost:hover:not(:disabled) {
    background: #f8fafc;
    color: #0A0A0A;
    border-color: #0A0A0A;
}

.culbann-btn-primary {
    background: #001e42;
    border-color: #001e42;
}
.culbann-btn-primary:hover:not(:disabled) { background: #4c8bf5; border-color: #4c8bf5; }

/* Messages */
.culbann-msg {
    max-width: 760px;
    margin: 32px auto 0;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.culbann-msg.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.culbann-msg.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    #culbann-card {
        padding: 36px 24px;
        margin: 20px;
        border-radius: 16px;
    }
    .culbann-header h2 { font-size: 22px; }
    .culbann-row.split-2 { flex-direction: column; gap: 0; }
    .culbann-row.split-2 > div { margin-bottom: 22px; }
    .culbann-nav { flex-direction: row; gap: 12px; }
    .culbann-btn { padding: 12px 18px; font-size: 13px; flex: 1; }
    .culbann-tile { min-width: 100px; padding: 14px 16px; font-size: 14px; }
}
