
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #145DA0;
    --dark-blue: #022C4C;
    --light-blue: #498FCD;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--dark-blue);
    min-height: 100vh;
    overflow-x: hidden;
    padding: 20px; /* Added padding for overall body */
}

/* Animated background with gradient orbs and particles */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #022c4c 0%, #145da0 50%, #498fcd 100%);
    z-index: -2;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--light-blue);
    bottom: -50px;
    right: -50px;
    animation-delay: 7s;
}

.gradient-orb-3 {
    width: 350px;
    height: 350px;
    background: var(--dark-blue);
    top: 50%;
    right: -150px;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0px, 0px);
    }

    25% {
        transform: translate(30px, -50px);
    }

    50% {
        transform: translate(-20px, 20px);
    }

    75% {
        transform: translate(50px, 50px);
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.5;
    animation: particle-float 15s linear infinite;
    animation-delay: calc(var(--i) * 2s);
}

    .particle:nth-child(1) {
        top: 20%;
        left: 10%;
    }

    .particle:nth-child(2) {
        top: 60%;
        left: 80%;
    }

    .particle:nth-child(3) {
        top: 70%;
        left: 20%;
    }

    .particle:nth-child(4) {
        top: 30%;
        right: 15%;
    }

    .particle:nth-child(5) {
        top: 10%;
        right: 40%;
    }

    .particle:nth-child(6) {
        bottom: 20%;
        right: 10%;
    }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Header Section */
.header {
    background: var(--white);
    padding: 25px 20px;
    margin: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.6s ease-out;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 50;
}

.header-container {
    width: 100%;
    max-width: 1200px; /* Increased max-width for header content */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    /*display: flex;*/
    align-items: center;
    gap: 10px;
}

    .logo h1 {
        color: var(--primary-blue);
        font-size: 1.8rem; /* Slightly adjusted font size */
        margin-bottom: 0;
        font-weight: 700;
    }

    .logo p {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 0;
        line-height: 1.5;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Added logout button styling */
.logout-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    border: none;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 93, 160, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .logout-btn .logout-icon {
        font-size: 1.2rem;
    }

    .logout-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(20, 93, 160, 0.4);
    }

    .logout-btn:active {
        transform: translateY(0);
    }

/* Main Container for the form */
.main-container {
    max-width: 1200px; /* Increased max-width */
    margin: 20px auto 30px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-wrapper {
    width: 100%;
    /*max-width: 800px;*/
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 10;
}

/* Tabbed Navigation */
.tab-navigation {
    display: flex;
    justify-content: space-around; /* Distribute buttons evenly */
    padding: 15px 10px;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0; /* Rounded top corners */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

    .tab-btn.active {
        color: var(--primary-blue);
        background: rgba(20, 93, 160, 0.1);
    }

    .tab-btn:hover:not(.active) {
        color: var(--dark-blue);
    }

.tab-number {
    background: var(--primary-blue);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.tab-btn.active .tab-number {
    background: var(--light-blue);
}

/* Progress Bar */
.progress-section {
    padding: 15px 30px;
    background-color: var(--light-gray);
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.progress-text {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* Form Content Styling */
.registration-form {
    padding: 40px;
}

.tab-content {
    display: none; /* Hide all tabs by default */
    animation: fadeIn 0.5s ease-out;
}

    .tab-content.active {
        display: block; /* Show the active tab */
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    transition: all 0.3s ease;
    animation: fadeInSection 0.8s ease-out forwards;
}

    .form-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    color: var(--primary-blue);
    font-size: 1.4rem; /* Slightly larger section titles */
    font-weight: 700;
    margin-bottom: 25px; /* Increased margin below titles */
    display: flex;
    align-items: center;
    gap: 10px;
    animation: titleSlide 0.6s ease-out;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title::before {
    content: '';
    width: 5px; /* Slightly thicker indicator */
    height: 30px; /* Slightly taller indicator */
    background: linear-gradient(180deg, var(--primary-blue), var(--light-blue));
    border-radius: 3px; /* Slightly more rounded */
    animation: heightExpand 0.6s ease-out;
}

@keyframes heightExpand {
    from {
        height: 0;
    }

    to {
        height: 30px;
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    animation: groupFadeIn 0.6s ease-out;
}

@keyframes groupFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

label {
    display: block;
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required::after {
    content: '*';
    color: #e74c3c;
    margin-left: 4px;
}

.form-input { /* Consolidated input styling */
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light-gray);
    color: var(--dark-blue); /* Ensure input text color is consistent */
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary-blue);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(20, 93, 160, 0.1);
        transform: translateY(-2px);
    }

textarea.form-input { /* Specific styling for textarea */
    resize: vertical;
    min-height: 80px;
}

/* Radio and Checkbox Styling */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

    .radio-label:hover,
    .checkbox-label:hover {
        border-color: var(--light-blue);
        background: #f0f5fc;
        transform: translateX(5px);
    }

    .radio-label span,
    .checkbox-label span {
        flex-grow: 1; /* Allows text to take available space */
    }

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    transition: transform 0.3s ease;
}

    input[type="radio"]:checked,
    input[type="checkbox"]:checked {
        transform: scale(1.2);
    }

/* File Upload Area */
.file-upload-area {
    /*border: 2px dashed var(--light-blue);
    border-radius: 8px;
    padding: 30px;*/
    text-align: center;
    /*background: linear-gradient(135deg, rgba(73, 143, 205, 0.05) 0%, rgba(20, 93, 160, 0.05) 100%);*/
    cursor: pointer;
    /*transition: all 0.3s ease;*/
    position: relative;
    overflow: hidden;
    /*color: var(--primary-blue);*/
    font-weight: 600;
}

    .file-upload-area .file-upload-icon {
        font-size: 2rem;
        display: block;
        margin-bottom: 8px;
        animation: bounce 0.6s ease-out;
    }

    .file-upload-area p {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .file-upload-area small {
        color: #666;
        display: block;
        font-size: 0.85rem;
    }

.file-name {
    margin-top: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--dark-blue);
    word-break: break-all; /* Prevent long file names from breaking layout */
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(73, 143, 205, 0.1) 0%, rgba(20, 93, 160, 0.1) 100%);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 93, 160, 0.15);
}

    .file-upload-area:hover::before {
        left: 100%;
    }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Dropdown Options */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145DA0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Tab Action Buttons */
.tab-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: flex-end; /* Align buttons to the right */
    padding: 0 40px 40px; /* Padding for the bottom of the form */
    animation: buttonFadeIn 0.8s ease-out;
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn:hover::before {
        width: 300px;
        height: 300px;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(20, 93, 160, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(20, 93, 160, 0.4);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark-blue);
    border: 2px solid var(--border-color);
}

    .btn-secondary:hover {
        background: var(--border-color);
        border-color: var(--primary-blue);
        transform: translateY(-2px);
    }

/* Help Text */
.help-text {
    color: #666;
    font-size: 0.85rem;
    margin-top: 6px;
    font-style: italic;
    display: block; /* Ensure it's on its own line */
}

.note {
    background: linear-gradient(135deg, rgba(73, 143, 205, 0.1) 0%, rgba(20, 93, 160, 0.1) 100%);
    border-left: 4px solid var(--primary-blue);
    padding: 15px;
    border-radius: 6px;
    color: var(--dark-blue);
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: noteFadeIn 0.6s ease-out;
}

@keyframes noteFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logo {
        margin-bottom: 10px;
    }

        .logo h1 {
            font-size: 1.6rem;
        }

        .logo p {
            font-size: 0.85rem;
        }

    .form-wrapper {
        margin: 0 15px; /* Adjust margin for smaller screens */
    }

    .tab-navigation {
        justify-content: center; /* Center tabs */
        padding: 10px;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .tab-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .progress-section {
        padding: 10px 15px;
    }

    .registration-form {
        padding: 25px;
    }

    .tab-actions {
        padding: 0 25px 25px;
        justify-content: center; /* Center buttons */
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 15px;
        margin: 10px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .header-content p {
        font-size: 0.85rem;
    }

    .logout-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .form-wrapper {
        margin: 10px auto; /* Center the form wrapper */
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tab-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px; /* Limit button width */
    }

    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        margin: 10px auto; /* Center header */
        max-width: calc(100% - 20px);
    }

    .header-content h1 {
        font-size: 1.3rem;
    }

    .header-content p {
        font-size: 0.8rem;
    }

    .logout-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .form-wrapper {
        margin: 10px 5px; /* Further reduce margin for very small screens */
    }

    form {
        padding: 15px;
    }

    .form-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select {
        padding: 10px 12px;
        font-size: 16px;
    }

    label {
        font-size: 0.9rem;
    }

    .file-upload-area {
        padding: 20px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

.pt-26 {
    padding-top: 26px !important;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.active {
    display: block;
}

/* Make modal content FULL SCREEN */
.modal-content {
    background-color: var(--white);
    width: 100%;
    height: 100%;
    margin: 0; /* remove top spacing */
    border-radius: 0; /* remove rounding */
    padding: 25px;
    box-shadow: none;
    animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

    .modal-header h2 {
        color: var(--dark-blue);
        font-size: 1.6rem;
        margin: 0;
    }

/* Close Button */
.close-btn {
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: #444;
    transition: color 0.3s ease;
}

    .close-btn:hover {
        color: var(--primary-blue);
    }

/* Modal Body */
.modal-body {
    flex: 1;
    overflow-y: auto; /* allow scroll for long content */
    padding-right: 5px;
}

/* Layout inside full screen */
.modal-content {
    display: flex;
    flex-direction: column;
}

/* Actions */
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}


/* Mobile */
@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.3rem;
    }
}


/* Row */
.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Columns */
[class^="col-"] {
    padding: 10px;
    box-sizing: border-box;
}

/* Column width calculation */
.col-1 {
    width: 8.33%;
}

.col-2 {
    width: 16.66%;
}

.col-3 {
    width: 25%;
}

.col-4 {
    width: 33.33%;
}

.col-5 {
    width: 41.66%;
}

.col-6 {
    width: 50%;
}

.col-7 {
    width: 58.33%;
}

.col-8 {
    width: 66.66%;
}

.col-9 {
    width: 75%;
}

.col-10 {
    width: 83.33%;
}

.col-11 {
    width: 91.66%;
}

.col-12 {
    width: 100%;
}

/* Optional: Responsive for smaller screens */
@media(max-width: 768px) {
    [class^="col-"] {
        width: 100%;
    }
}



.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light-gray);
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}


    .checkbox-item:hover {
        border-color: var(--light-blue);
        background: #f0f5fc;
    }

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.text-cust {
    color: #145da0;
    font-weight: bold;
}

.border-right{
    border-right: 1px solid #c6c6c6;
}


/* PRINT + PDF Styling */
@media print {
    /* Hide buttons */
    #btnPrint,
    #BtnSubmit,
    #btnPDF {
        display: none !important;
    }
    /* Convert everything to black & white */
    * {
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        background: white !important;
    }
    /* A4 size */
    @page {
        size: A4;
        margin: 15mm;
    }
    /* Add header */
    body::before {
        content: "INAIO Registration Form  2026";
        display: block;
        font-size: 22px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 10px;
    }
    /* Add footer */
    body::after {
        content: "Generated on: " attr(data-print-date);
        display: block;
        text-align: center;
        font-size: 12px;
        margin-top: 20px;
    }
    /* Borders around all sections */
    .section-title {
        /*border-bottom: 2px solid #000 !important;*/
        margin-top: 20px;
        padding-bottom: 5px;
        font-size: 18px;
    }

    .row {
        /*border-bottom: 1px solid #333;*/
        padding: 6px 0;
        margin-bottom: 2px;
    }

    .border-right {
        /*border-right: 1px solid #000 !important;*/
    }
    /* Compact layout for 1-page A4 */
    label, .text-cust {
        font-size: 13px !important;
        line-height: 1.2;
    }

    .col-6, .col-12 {
        padding: 0 5px !important;
    }

    img {
        border: 1px solid #000 !important;
    }

    .animated-background {
        display: none;
    }
}

.btn-success {
    background: darkgreen !important;
    color: white !important;
}

.btn-blue {
    width: 100px !important;
}



