*,

*::before,

*::after {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



/* body {

    font-family: 'Inter', system-ui, -apple-system, sans-serif;

    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #eef2ff 100%);

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 2rem 1rem;

    color: #1e293b;

} */


body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #eef2ff 100%);
    min-height: 100vh;
    color: #1e293b;
    margin: 0;

    /* REMOVE THESE */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */

    padding-top: 90px;
}



/* .wrapper {

    width: 100%;

    max-width: 680px;

} */

.wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem;
    /* animation: fadeInUp 0.6s ease-out; */
}



/* Header */

.form-header {

    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);

    border-radius: 1.5rem 1.5rem 0 0;

    padding: 2.5rem 2rem;

    text-align: center;

    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);

}



.header-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 56px;

    height: 56px;

    background: rgba(255, 255, 255, 0.2);

    border-radius: 1rem;

    margin-bottom: 1rem;

    backdrop-filter: blur(8px);

}



.header-icon svg {

    width: 28px;

    height: 28px;

    color: #fff;

    stroke: #fff;

}



.form-header h1 {

    font-size: 2rem;

    font-weight: 800;

    color: #fff;

    margin-bottom: 0.5rem;

    letter-spacing: -0.02em;

}



.form-header p {

    color: #bfdbfe;

    font-size: 0.9rem;

}



/* Card */

.form-card {

    background: #fff;

    border-radius: 0 0 1.5rem 1.5rem;

    padding: 2.5rem 2rem;

    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);

}



/* Grid rows */

.row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1.25rem;

    margin-bottom: 1.25rem;

}



.field {

    margin-bottom: 1.25rem;

}



/* Labels */

label {

    display: block;

    font-size: 0.7rem;

    font-weight: 700;

    color: #64748b;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    margin-bottom: 0.5rem;

}



label .req {

    color: #ef4444;

    margin-left: 2px;

}



/* Inputs */

input[type="text"],

input[type="email"],

input[type="tel"],

select,

textarea {

    width: 100%;

    padding: 0.85rem 1rem;

    border: 2px solid #e2e8f0;

    border-radius: 0.75rem;

    font-family: inherit;

    font-size: 0.9rem;

    color: #1e293b;

    background: #f8fafc;

    outline: none;

    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;

    -webkit-appearance: none;

    appearance: none;

}



input::placeholder,

textarea::placeholder {

    color: #cbd5e1;

}



input:hover,

select:hover,

textarea:hover {

    border-color: #cbd5e1;

}



input:focus,

select:focus,

textarea:focus {

    border-color: #3b82f6;

    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);

    background: #fff;

}



input.error,

select.error,

textarea.error {

    border-color: #f87171;

    background: #fef2f2;

}



.error-msg {

    color: #ef4444;

    font-size: 0.72rem;

    margin-top: 0.3rem;

    display: none;

}



.error-msg.visible {

    display: block;

}



/* Phone row */

.phone-row {

    display: flex;

    gap: 0.5rem;

}



.phone-row select {

    width: 80px;

    flex-shrink: 0;

    padding-left: 0.6rem;

    padding-right: 0.6rem;

}



.phone-row input {

    flex: 1;

}



/* State select wrapper */

.select-wrapper {

    position: relative;

}



.select-wrapper select {

    padding-right: 2.5rem;

    cursor: pointer;

}



.select-wrapper::after {

    content: '';

    pointer-events: none;

    position: absolute;

    right: 1rem;

    top: 50%;

    transform: translateY(-50%);

    width: 0;

    height: 0;

    border-left: 5px solid transparent;

    border-right: 5px solid transparent;

    border-top: 6px solid #94a3b8;

}



select option:first-child {

    color: #94a3b8;

}



select:invalid {

    color: #94a3b8;

}



textarea {

    resize: vertical;

    min-height: 130px;

}



/* Checkbox */

.consent-row {

    display: flex;

    align-items: flex-start;

    gap: 0.75rem;

    margin-bottom: 1.75rem;

    cursor: pointer;

}



.custom-checkbox {

    width: 20px;

    height: 20px;

    border: 2px solid #cbd5e1;

    border-radius: 6px;

    flex-shrink: 0;

    margin-top: 2px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.2s;

    cursor: pointer;

    background: #fff;

}



.custom-checkbox.checked {

    background: #2563eb;

    border-color: #2563eb;

}



.custom-checkbox svg {

    display: none;

    width: 12px;

    height: 12px;

    stroke: #fff;

}



.custom-checkbox.checked svg {

    display: block;

}



.consent-row input[type="checkbox"] {

    position: absolute;

    opacity: 0;

    width: 0;

    height: 0;

}



.consent-label {

    font-size: 0.875rem;

    color: #475569;

    line-height: 1.6;

    text-transform: none;

    letter-spacing: 0;

    font-weight: 400;

}



/* Submit button */

.submit-btn {

    display: inline-flex;

    align-items: center;

    gap: 0.5rem;

    padding: 1rem 2.5rem;

    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);

    color: #fff;

    font-family: inherit;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;

    border: none;

    border-radius: 0.75rem;

    cursor: pointer;

    transition: all 0.2s;

    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);

}



.submit-btn:hover {

    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);

    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.5);

    transform: translateY(-1px);

}



.submit-btn:active {

    transform: translateY(0);

}



.submit-btn:disabled {

    opacity: 0.7;

    cursor: not-allowed;

    transform: none;

}



.required-note {

    margin-top: 1.5rem;

    font-size: 0.72rem;

    color: #94a3b8;

    text-align: center;

}



/* Footer */

.footer-note {

    text-align: center;

    margin-top: 1.25rem;

    font-size: 0.72rem;

    color: #94a3b8;

}



/* Success screen */

.success-screen {

    display: none;

    background: #fff;

    border-radius: 1.5rem;

    padding: 3rem 2rem;

    text-align: center;

    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);

    animation: fadeInUp 0.5s ease-out;

}



.success-icon {

    width: 80px;

    height: 80px;

    background: linear-gradient(135deg, #3b82f6, #4338ca);

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 1.5rem;

    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);

}



.success-icon svg {

    width: 40px;

    height: 40px;

    stroke: #fff;

}



.success-screen h2 {

    font-size: 1.75rem;

    font-weight: 800;

    color: #1e293b;

    margin-bottom: 0.5rem;

}



.success-screen p {

    color: #64748b;

    margin-bottom: 2rem;

    font-size: 0.95rem;

}



.reset-btn {

    padding: 0.85rem 2rem;

    background: linear-gradient(135deg, #1d4ed8, #4338ca);

    color: #fff;

    font-family: inherit;

    font-size: 0.9rem;

    font-weight: 600;

    border: none;

    border-radius: 0.75rem;

    cursor: pointer;

    transition: all 0.2s;

    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);

}



.reset-btn:hover {

    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.5);

    transform: translateY(-1px);

}



/* Spinner */

.spinner {

    display: none;

    width: 16px;

    height: 16px;

    border: 2px solid rgba(255, 255, 255, 0.4);

    border-top-color: #fff;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;

}



@keyframes spin {

    to {

        transform: rotate(360deg);

    }

}

/* 

@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }

} */



/* Responsive */

@media (max-width: 560px) {

    .row {

        grid-template-columns: 1fr;

    }



    .form-card {

        padding: 2rem 1.25rem;

    }



    .form-header {

        padding: 2rem 1.25rem;

    }



    .form-header h1 {

        font-size: 1.6rem;

    }



    .submit-btn {

        width: 100%;

        justify-content: center;

    }

}



/* Animations */

.wrapper {

    /*animation: fadeInUp 0.6s ease-out;*/


}















/* =========================
   HEADER / NAVBAR
========================= */

.site-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}



/* .logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e3a8a;
    text-decoration: none;
    letter-spacing: -0.02em;
} */

.logo
 {
    font-size: -8.8rem;
    font-weight: 800;
    color: #1e3a8a;
    text-decoration: none;
    letter-spacing: -0.02em;
    width: 180px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
} */

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #1d4ed8;
}

.nav-link.active {
    color: #1d4ed8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #1d4ed8;
    border-radius: 999px;
}

/* Add spacing because header is fixed */
body {
    padding-top: 90px;
}

/* Mobile */
@media (max-width: 560px) {
    .nav-container {
        padding: 0.9rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.88rem;
    }
}

















/* Business account CSS */









/* New business css */

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #eef2f7;
    padding: 30px 15px;
    color: #222;
}*/

.container {
    max-width: 1100px;
    margin: auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
} 

.topbar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    padding: 28px 25px;
    text-align: center;
    color: #fff;
}

/* Placeholder logo area - replace src with real Nivagen logo */
.topbar .logo {
    height: 48px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: brightness(0) invert(1);
}

.topbar h1 {
    font-size: 30px;
    font-weight: 700;
}

.topbar p {
    margin-top: 6px;
    opacity: 0.88;
    font-size: 14px;
}

.form-wrapper {
    padding: 28px 32px;
}

.section-title {
    background: #ba122b1c;
    color: #BA122B;
    padding: 12px 38px;
    border-radius: 10px;
    margin: 28px auto 18px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.4px;
    /* display: inlin   e-block; */
    border: 2px solid #ba122b12;
}

/* Three-column grid default */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.full {
    grid-column: 1 / -1;
}

/* Tighter half-width for short fields */
.half {
    grid-column: span 1;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: 0.25s;
}

.field select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;

    padding-right: 45px;
    cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #0056b3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.08);
}

.field input[type="file"] {
    padding: 8px 12px;
    font-size: 13px;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

/* Optional badge */
.opt-label::after {
    content: " (Optional)";
    font-weight: 400;
    color: #888;
    font-size: 11px;
}

/* Copy-address checkbox row */
.copy-address-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef5ff;
    border: 1px solid #c3d9f7;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #0f3d7a;
    cursor: pointer;
}

.copy-address-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #0056b3;
    cursor: pointer;
    flex-shrink: 0;
}

/* License rows - two separate lines */
.license-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f5f7fb;
    border: 1px solid #e2e7f0;
    border-radius: 10px;
    margin-bottom: 8px;
}

.license-row label {
    min-width: 110px;
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

.license-row input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fafafa;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.license-row input[type="file"] {
    font-size: 12px;
    padding: 5px 8px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fafafa;
}

.license-row input:focus {
    outline: none;
    border-color: #0056b3;
}

/* Add ship-to button */
.add-ship-btn {
    width: 100%;
    padding: 13px;
    border: 2px dashed #0056b3;
    background: transparent;
    color: #0056b3;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.25s;
    letter-spacing: 0.2px;
}

.add-ship-btn:hover {
    background: #eef5ff;
}

/* Submit */
.submit-row {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.submit-btn {
    border: none;
    background: linear-gradient(135deg, #0056b3, #0f3d7a);
    color: #fff;
    padding: 13px 42px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: 0.25s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 86, 179, 0.28);
}

/* Receiving dept section inside ship-to */
.recv-section {
    grid-column: 1 / -1;
}

.recv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 6px;
}

/* Extra ship-to blocks */
.ship-block {
    margin-top: 0;
}

@media(max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .recv-grid {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 20px;
    }

    .topbar h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 15px;
    }
}



.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Company + Contact full 2 column */
.two-column {
    grid-column: span 1;
}

/* wrap both in full row */
.top-two-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.license-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* License number input */
.license-row input[type="text"] {
    flex: 1;
    min-width: 0;
}

/* File upload field */
.license-row input[type="file"] {
    flex: 1;
    min-width: 0;
}

/* Mobile responsive */
@media(max-width:768px) {
    .license-row {
        flex-direction: column;
        align-items: stretch;
    }
}






span.required-field-star {
    color: #ff0000ad;
}