/* ============================================================
   new-company.css  —  Modern SaaS Company Registration
   Fully reactive to system --auth-primary & mobile-friendly
   Palette:
     Background:   #F4F7FC
     Card:         #FFFFFF
     Primary:      #174EA6
     PPS Navy:     #132649
     Input:        #F8FAFD
     Border:       #E2E8F0
     Input Focus:  #EAF2FF
   ============================================================ */

.nc-container {
    width: 100%;
    max-width: 880px;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px -8px rgba(19, 38, 73, 0.08), 0 0 0 1px #E2E8F0;
    margin: 24px auto;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Header */
.nc-header {
    background: linear-gradient(135deg, var(--auth-primary, #174EA6) 0%, #132649 100%);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.nc-header::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nc-logo-circle {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nc-logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nc-header-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.nc-header-text h3 {
    color: #ffffff;
    font-weight: 800;
    font-size: 21px;
    margin: 0 0 3px;
    letter-spacing: -0.3px;
}

.nc-header-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin: 0;
}

.nc-header-brand {
    margin-right: auto;
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

/* Steps */
.nc-steps {
    display: flex;
    background: #F8FAFD;
    border-bottom: 1px solid #E2E8F0;
    position: relative;
}

.nc-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    position: relative;
}

.nc-step::before,
.nc-step::after {
    content: '';
    position: absolute;
    top: 26px;
    width: 50%;
    height: 2px;
    background: #E2E8F0;
    transition: background 0.3s;
}

.nc-step::before { left: 0; }
.nc-step::after { right: 0; }
.nc-step:first-child::before,
.nc-step:last-child::after { display: none; }

.nc-step.active::after,
.nc-step.done::after,
.nc-step.done + .nc-step::before {
    background: var(--auth-primary, #174EA6);
}

.nc-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nc-step.active .nc-step-num,
.nc-step.done .nc-step-num {
    background: var(--auth-primary, #174EA6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(23, 78, 166, 0.3);
}

.nc-step-label {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    font-weight: 600;
    transition: color 0.3s;
}

.nc-step.active .nc-step-label {
    color: var(--auth-primary, #174EA6);
    font-weight: 700;
}

/* Body / Form */
.nc-body {
    padding: 28px 34px;
}

.nc-section {
    margin-bottom: 24px;
}

.nc-section-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #132649;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1.5px dashed #E2E8F0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nc-section-title i {
    font-size: 18px;
    color: var(--auth-primary, #174EA6);
}

/* Fields & Grid */
.nc-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nc-field {
    flex: 1;
    min-width: 220px;
    margin-bottom: 14px;
}

.nc-field.full {
    flex: 0 0 100%;
}

.nc-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: #132649;
    margin-bottom: 5px;
    display: block;
}

.nc-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nc-field-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s;
}

.nc-field-wrap:focus-within .nc-field-icon {
    color: var(--auth-primary, #174EA6);
}

.nc-input {
    width: 100%;
    height: 42px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 6px 38px 6px 12px;
    font-size: 13px;
    color: #0f172a;
    background: #F8FAFD;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

select.nc-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    padding-left: 36px;
}

.nc-input:focus {
    border-color: var(--auth-primary, #174EA6);
    box-shadow: 0 0 0 3px rgba(23, 78, 166, 0.15);
    background: #EAF2FF;
}

textarea.nc-input {
    height: auto;
    min-height: 80px;
    padding: 10px 12px;
    resize: vertical;
}

.nc-required {
    color: #ef4444;
}

/* Package cards */
.nc-pkg-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 6px;
}

.nc-pkg-card {
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #F8FAFD;
    user-select: none;
}

.nc-pkg-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.nc-pkg-card.selected {
    border-color: var(--auth-primary, #174EA6);
    background: #EAF2FF;
    box-shadow: 0 6px 18px rgba(23, 78, 166, 0.14);
    transform: translateY(-2px);
}

.nc-pkg-card:hover:not(.selected) {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-2px);
}

.nc-pkg-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #EAF2FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--auth-primary, #174EA6);
    margin-bottom: 10px;
}

.nc-pkg-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
}

.nc-pkg-price {
    font-size: 12.5px;
    color: var(--auth-primary, #174EA6);
    font-weight: 700;
}

.nc-pkg-desc {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 4px;
}

.nc-pkg-badge {
    position: absolute;
    top: -9px;
    right: 50%;
    transform: translateX(50%);
    background: var(--auth-primary, #174EA6);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(23, 78, 166, 0.3);
    white-space: nowrap;
}

/* Terms */
.nc-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #475569;
    margin: 18px 0 20px;
    cursor: pointer;
    font-weight: 600;
}

.nc-terms-check input {
    accent-color: var(--auth-primary, #174EA6);
    margin-top: 2px;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.nc-terms-check a {
    color: var(--auth-primary, #174EA6);
    font-weight: 700;
    text-decoration: none;
}

.nc-terms-check a:hover {
    text-decoration: underline;
}

/* Actions */
.nc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}

.auth-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    background: #F8FAFD;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-btn-ghost:hover {
    background: #EAF2FF;
    color: var(--auth-primary, #174EA6);
    border-color: var(--auth-primary, #174EA6);
}

.nc-btn-submit {
    height: 44px;
    background: var(--auth-primary, #174EA6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 32px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(23, 78, 166, 0.25);
    transition: all 0.2s ease;
    text-decoration: none;
}

.nc-btn-submit:hover {
    background: var(--auth-primary-dark, #0d3c89);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(23, 78, 166, 0.35);
    color: #ffffff;
}

/* Success screen */
.nc-success {
    display: none;
    text-align: center;
    padding: 40px 24px;
}

.nc-success-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ABB87, #059669);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #ffffff;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(10, 187, 135, 0.3);
}

.nc-success h4 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.nc-success p {
    color: #64748b;
    font-size: 13.5px;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* Validation Alert */
.nc-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ============================================================ */
@media (max-width: 768px) {
    .nc-container {
        margin: 12px auto;
        border-radius: 16px;
    }

    .nc-header {
        padding: 20px 16px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .nc-logo-circle {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .nc-header-text h3 {
        font-size: 18px;
    }

    .nc-header-text p {
        font-size: 12px;
    }

    .nc-header-brand {
        margin: 0;
        font-size: 14px;
        padding: 3px 12px;
    }

    .nc-body {
        padding: 20px 16px;
    }

    .nc-row {
        flex-direction: column;
        gap: 0;
    }

    .nc-field {
        min-width: 100%;
        margin-bottom: 12px;
    }

    .nc-pkg-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .nc-pkg-card {
        padding: 14px 12px;
        display: flex;
        align-items: center;
        text-align: right;
        gap: 12px;
    }

    .nc-pkg-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .nc-pkg-badge {
        right: 12px;
        transform: none;
    }

    .nc-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .nc-actions button,
    .nc-actions a {
        width: 100% !important;
        justify-content: center;
    }
}
