/*======================================
Theme Name: Free Divi Child Theme By Pee-Aye Creative
Theme URI: https://www.peeayecreative.com/
Description: This is a free Divi child theme from Pee-Aye Creative!
Author: Nelson Lee Miller (aka The Divi Teacher)
Author URI: https://www.peeayecreative.com/
Author Email: nelson@peeayecreative.com
Template: Divi
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
======================================*/

 /* ===== NOTES ==================================================================
 * 
 * New to Divi? Take our full Divi course: https://www.peeayecreative.com/product/beyond-the-builder-the-ultimate-divi-website-course/
 * 
 * Learn cool tricks and features with our Divi tutorials: https://www.peeayecreative.com/blog/
 * 
 * Discover our premium Divi products: https://www.peeayecreative.com/shop/
 * 
 * =============================================================================== */
/* ===== NICO BRAND STYLES ===== */
    
/*add your custom CSS below this line*/


/* ===== NICO PENSION FORM - MODERN PROFESSIONAL STYLES ===== */
:root {
    --nico-navy: #0B2863;
    --nico-cyan: #00AEEF;
    --nico-gold: #E89E47;
    --nico-bg-light: #f4f7fc;
    --nico-white: #ffffff;
    --nico-black: #1A1A1A;
    --nico-gray: #6B7280;
    --nico-border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
}

/* ===== WRAPPER ===== */
.nico-pension-wrapper {
    max-width: 920px;
    margin: 30px auto;
    background: var(--nico-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* ===== HEADER ===== */
.nico-header {
    background: var(--nico-navy);
    padding: 28px 40px;
    color: var(--nico-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 4px solid var(--nico-gold);
}

.nico-header .logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nico-header .logo-icon {
    width: 56px;
    height: 56px;
    background: var(--nico-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: var(--nico-navy);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.nico-header .brand h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--nico-white);
    letter-spacing: -0.5px;
}

.nico-header .brand .tagline {
    font-size: 13px;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.nico-header .badge {
    background: var(--nico-gold);
    color: var(--nico-navy);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PROGRESS BAR ===== */
.nico-progress {
    display: flex;
    background: var(--nico-bg-light);
    padding: 14px 40px;
    gap: 2px;
    border-bottom: 1px solid var(--nico-border);
    flex-wrap: wrap;
}

.nico-progress .step {
    flex: 1;
    min-width: 60px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #B0B5C0;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nico-progress .step.active {
    color: var(--nico-navy);
}

.nico-progress .step.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--nico-gold);
    border-radius: 4px;
}

.nico-progress .step .num {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9CA3AF;
    font-size: 11px;
    font-weight: 700;
    margin-right: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nico-progress .step.active .num {
    background: var(--nico-navy);
    color: var(--nico-white);
}

/* ===== FORM BODY ===== */
.nico-form-body {
    padding: 32px 40px 24px;
}

/* ===== SECTIONS ===== */
.nico-section {
    margin-bottom: 32px;
    padding: 24px 28px;
    background: var(--nico-white);
    border: 1px solid var(--nico-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.nico-section:hover {
    box-shadow: var(--shadow-md);
}

.nico-section:last-child {
    margin-bottom: 0;
}

.nico-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--nico-navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nico-border);
}

.nico-section-title .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--nico-navy);
    color: var(--nico-white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.nico-section-desc {
    font-size: 13px;
    color: var(--nico-gray);
    margin: 6px 0 18px 44px;
    line-height: 1.5;
}

/* ===== FORM ROWS ===== */
.nico-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 14px;
}

.nico-row.full {
    grid-template-columns: 1fr;
}

.nico-row.three {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ===== FORM GROUPS ===== */
.nico-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nico-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--nico-navy);
}

.nico-group label .req {
    color: #EF4444;
    font-weight: 700;
    margin-left: 2px;
}

.nico-group .hint {
    font-size: 11px;
    color: var(--nico-gray);
    font-weight: 400;
    margin-top: 2px;
}

/* ===== INPUTS ===== */
.nico-group input,
.nico-group select,
.nico-group textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--nico-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    background: var(--nico-white);
    color: var(--nico-black);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.nico-group input:hover,
.nico-group select:hover,
.nico-group textarea:hover {
    border-color: #9CA3AF;
}

.nico-group input:focus,
.nico-group select:focus,
.nico-group textarea:focus {
    outline: none;
    border-color: var(--nico-cyan);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

.nico-group input::placeholder,
.nico-group textarea::placeholder {
    color: #B0B5C0;
}

/* ===== FILE INPUTS ===== */
.nico-group input[type="file"] {
    padding: 10px 12px;
    border: 2px dashed var(--nico-border);
    background: var(--nico-bg-light);
    cursor: pointer;
    font-size: 13px;
    color: var(--nico-gray);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.nico-group input[type="file"]:hover {
    border-color: var(--nico-cyan);
    background: #f0f7fc;
}

.nico-group input[type="file"]::file-selector-button {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    background: var(--nico-navy);
    color: var(--nico-white);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-right: 10px;
}

.nico-group input[type="file"]::file-selector-button:hover {
    background: #091f4e;
}

/* ===== RADIO / CHECKBOX ===== */
.nico-radio-group,
.nico-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding-top: 4px;
}

.nico-radio-group label,
.nico-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    color: var(--nico-black);
    padding: 4px 0;
}

.nico-radio-group input[type="radio"],
.nico-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--nico-navy);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

/* ===== PEP BOX ===== */
.nico-pep-box {
    background: #f5f9ff;
    border-left: 4px solid var(--nico-gold);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.nico-pep-box p {
    font-size: 13px;
    margin: 4px 0;
    color: var(--nico-black);
    line-height: 1.6;
}

.nico-pep-box strong {
    color: var(--nico-navy);
}

/* ===== BENEFICIARY TABLE ===== */
.nico-beneficiary-wrap {
    overflow-x: auto;
    margin-top: 10px;
}

.nico-beneficiary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 620px;
}

.nico-beneficiary-table th {
    background: var(--nico-navy);
    color: var(--nico-white);
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nico-beneficiary-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--nico-border);
}

.nico-beneficiary-table input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--nico-border);
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--nico-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nico-beneficiary-table input:focus {
    border-color: var(--nico-cyan);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.12);
}

.nico-beneficiary-table .total-row td {
    font-weight: 700;
    padding-top: 12px;
    border-top: 2px solid var(--nico-navy);
}

.nico-beneficiary-table .total-row input {
    font-weight: 700;
    background: #f5f9ff;
    color: var(--nico-navy);
    border-color: var(--nico-navy);
}

/* ===== ADD BENEFICIARY ===== */
.nico-add-beneficiary {
    margin-top: 12px;
}

.nico-add-beneficiary .btn-add {
    padding: 8px 20px;
    font-size: 13px;
    background: var(--nico-bg-light);
    color: var(--nico-navy);
    border: 1.5px solid var(--nico-border);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nico-add-beneficiary .btn-add:hover {
    background: var(--nico-navy);
    color: var(--nico-white);
    border-color: var(--nico-navy);
}

.nico-add-beneficiary .btn-add:active {
    transform: scale(0.97);
}

/* ===== DECLARATION ===== */
.nico-declaration {
    background: var(--nico-bg-light);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin-top: 10px;
    border: 1px solid var(--nico-border);
}

.nico-declaration p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--nico-black);
    line-height: 1.7;
}

.nico-declaration strong {
    color: var(--nico-navy);
}

/* ===== SIGNATURE ===== */
.nico-signature-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.nico-signature-row .nico-group input {
    border: none;
    border-bottom: 2px solid var(--nico-border);
    border-radius: 0;
    padding: 8px 4px;
    background: transparent;
    transition: border-color 0.3s ease;
}

.nico-signature-row .nico-group input:focus {
    border-color: var(--nico-navy);
    box-shadow: none;
}

/* ===== BUTTONS ===== */
.nico-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    padding-top: 24px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 36px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--nico-navy);
    color: var(--nico-white);
    box-shadow: 0 4px 12px rgba(11, 40, 99, 0.25);
}

.btn-primary:hover {
    background: #091f4e;
    box-shadow: 0 6px 20px rgba(11, 40, 99, 0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--nico-bg-light);
    color: var(--nico-navy);
    border: 1.5px solid var(--nico-border);
}

.btn-secondary:hover {
    background: #e8e9ed;
}

/* ===== ALERTS ===== */
.nico-alert {
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 20px 40px;
    font-size: 15px;
}

.nico-alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 5px solid #15803d;
}

.nico-alert-success h3 {
    color: #15803d;
    margin-top: 0;
    font-size: 18px;
}

.nico-alert-error {
    background: #fef2f2;
    border-left: 5px solid #ef4444;
    color: #991b1b;
}

/* ===== FOOTER ===== */
.nico-footer {
    background: var(--nico-navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 16px 40px;
    font-size: 12px;
    text-align: center;
    border-top: 3px solid var(--nico-gold);
}

.nico-footer a {
    color: var(--nico-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nico-footer a:hover {
    color: var(--nico-white);
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nico-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .nico-header .logo {
        flex-direction: column;
    }
    .nico-header .brand h1 {
        font-size: 20px;
    }
    .nico-form-body {
        padding: 16px;
    }
    .nico-section {
        padding: 16px;
    }
    .nico-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .nico-row.three {
        grid-template-columns: 1fr;
    }
    .nico-signature-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .nico-progress {
        padding: 10px 12px;
    }
    .nico-progress .step {
        font-size: 9px;
        min-width: 40px;
        padding-bottom: 6px;
    }
    .nico-progress .step .num {
        display: none;
    }
    .nico-beneficiary-table {
        min-width: 480px;
    }
    .nico-actions {
        flex-direction: column;
    }
    .nico-actions .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
    .nico-alert {
        margin: 16px;
    }
    .nico-section-desc {
        margin-left: 0;
    }
}