/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f9;
    margin: 0;
    padding: 0;
}

/* Form Container - Scoped to prevent conflicts */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#basic-info-form {
    max-width: 800px;
    width: 100%;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px;
}

/* Labels */
#basic-info-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Required Asterisk */
.required {
    color: red;
}

/* Input Fields - Scoped */
#basic-info-form input, 
#basic-info-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease-in-out;
    height: 34px;
}

#basic-info-form input:focus, 
#basic-info-form select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.2);
}

/* Checkbox Styling - Scoped */
#basic-info-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
}

#basic-info-form .checkbox-group label {
    margin: 0;
    line-height: 1;
    font-size: 14px;
    vertical-align: middle;
}

#basic-info-form .checkbox-group input[type="checkbox"] {
    width: 12px;
    height: 12px;
    cursor: pointer;
    margin: 0;
    accent-color: #007bff;
    vertical-align: middle;
    transform: scale(0.6);
}

/* Group Inputs into Flexbox */
#basic-info-form .form-group {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

#basic-info-form .form-group div {
    flex: 1;
}

/* Styling the Note Section */
#basic-info-form .note {
    font-size: 14px;
    background: #f8f9fa;
    padding: 12px;
    border-left: 4px solid #007bff;
    border-radius: 5px;
    margin-top: 10px;
    color: #555;
}

/* Confirmation Checkbox - Scoped */
#basic-info-form .confirmation-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

#basic-info-form .confirmation-section input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
    accent-color: #007bff;
    vertical-align: middle;
}

/* Submit Button - Scoped */
#basic-info-form button {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

#basic-info-form button:hover {
    background: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    #basic-info-form .form-group {
        flex-direction: column;
    }

    #basic-info-form {
        padding: 20px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    #basic-info-form input, 
    #basic-info-form select {
        font-size: 16px;
        padding: 14px;
    }

    #basic-info-form button {
        font-size: 18px;
    }

    #basic-info-form label {
        font-size: 14px;
    }
}
.contact-form-container {
    max-width: 900px;
    margin: auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;

    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.contact-form-container .form-group {
    margin-bottom: 15px;
}

.contact-form-container label {
    font-weight: 600;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.contact-form-container input.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: 0.3s;
}

.contact-form-container input.form-control:focus {
    border-color: #007bff;
    outline: none;
}

.contact-form-container .form-row {
    display: flex;
    gap: 20px;
}

.contact-form-container .half {
    flex: 1;
}

.contact-form-container .btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.contact-form-container .btn-primary:disabled, .btn-primary.disabled {
        background-color: #ccc; /* Inactive grey */
        cursor: not-allowed;
    }

.contact-form-container .btn-primary:hover {
    background: #0056b3;
}

.contact-form-container .error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}
/*Emergency Contact Form*/

/* Emergency Contact Form Styling */
.emergency-contact-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

/* Form Fields */
.emergency-contact-form .form-group {
    margin-bottom: 15px;
}

.emergency-contact-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.emergency-contact-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Authorization Checkbox - Start Text on the Same Line */
.emergency-contact-form .checkbox-group {
    display: flex;
    align-items: flex-start; /* Aligns the checkbox to the top of text */
    gap: 8px;
}

.emergency-contact-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 3px; /* Align checkbox with the start of text */
}

/* "Add Another Contact" Button with Circle Icon */
.emergency-contact-form .add-contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    margin-top: 10px;
}

.emergency-contact-form .add-contact-btn::before {
    content: "+";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 2px solid #007bff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: bold;
    color: #007bff;
}


/* Submit Button */

.emergency-contact-form .btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.emergency-contact-form .btn-primary:disabled, .btn-primary.disabled {
        background-color: #ccc; /* Inactive grey */
        cursor: not-allowed;
    }
    
   /* Scoped styles for the W-4 Form */
/* Scoped styles for the W-4 Form */
/* Scoped styles for the W-4 Form */
/* Scoped styles for the W-4 Form */
#w4-form {
   
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: margin-top 0.3s ease-in-out; /* Smooth transition for margin changes */
}

#w4-form fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

#w4-form legend {
    font-weight: bold;
    padding: 0 10px;
}

#w4-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}



#w4-form input, 
#w4-form select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Prevents zooming on mobile devices */
}

#w4-form p.update-message {
    font-size: 0.9em;
    color: #d9534f;
    margin-top: 10px;
}

#w4-form button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#w4-form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Disabled submit button style */
#w4-form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Adjust margin-top when exemption checkbox is checked */
.exempt-checked #w4-form {
    margin-top: 500px !important;
}

#date {
    pointer-events: none; /* Prevents clicking */
    background-color: #f3f3f3; /* Light gray background to indicate it's disabled */
    cursor: not-allowed;
}

/* Signature modal styling */
.signature-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.signature-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
/* Signature Box */
.signature-box {
    width: 320px;
    padding: 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.signature-box:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.signature-text {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    color: #555;
    margin: 0;
}

.signature-line {
    width: 90%;
    border: none;
    border-top: 1px solid #ccc;
    margin: 5px auto;
}

.click-text {
    font-size: 14px;
    color: #1a73e8;
    margin-top: 5px;
}
#signature-pad {
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: crosshair;
}

#clear-signature, #save-signature {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#clear-signature {
    background-color: #d9534f;
    color: white;
}

#clear-signature:hover {
    background-color: #c9302c;
}

#save-signature {
    background-color: #28a745;
    color: white;
}

#save-signature:hover {
    background-color: #218838;
}

#close-modal {
    background: #6c757d;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#close-modal:hover {
    background: #5a6268;
}

.direct-deposit-container {
   
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: margin-top 0.3s ease-in-out; /* Smooth transition for margin changes */
}

.direct-deposit-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.add-bank-container {
    text-align: center;
    margin: 20px 0;
}

.add-account-btn {
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.add-account-btn:hover {
    background: #0056b3;
}

.authorization-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.bankmodal-submit-btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.bankmodal-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bankmodal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    position:relative;
    margin: auto;
    margin-top:100px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bankmodal h3 {
    margin-bottom: 15px;
    color: #333;
}

.bankmodal input,
.bankmodal select {
    font-size:16px;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.save-account-btn {
    background: #007bff;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.save-account-btn:hover {
    background: #0056b3;
}

.hidden {
    visibility: hidden;
    opacity: 0;
}

.bankmodal.show {
    visibility: visible;
    opacity: 1;
}

.bankmodal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    cursor: pointer;
    color: #555;
}

.bankmodal-close-btn:hover {
    color: #000;
}

.bank-account-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    transition: transform 0.2s ease-in-out;
}

.bank-account-card:hover {
    transform: scale(1.02);
}

.bank-icon {
    font-size: 24px;
    color: #007bff;
    margin-right: 15px;
}

.bank-details {
    flex: 1;
}

.bank-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.bank-account-number {
    font-size: 14px;
    color: #666;
}

.deposit-percentage span {
    font-weight: bold;
    color: #28a745;
}

.bank-type {
    display: inline-block;
    background: #f8f9fa;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    color: #444;
    text-transform: uppercase;
    font-weight: 600;
}

.checking {
    background: #007bff;
    color: white;
}

.savings {
    background: #17a2b8;
    color: white;
}

.bank-actions {
    display: flex;
    gap: 8px;
}

.edit-btn,
.delete-btn {
    padding: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: 0.3s;
}

.edit-btn {
    background: #28a745;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.edit-btn:hover {
    background: #218838;
}

.delete-btn:hover {
    background: #c82333;
}

#addBankAccountBtn {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#addBankAccountBtn:hover {
    background: #0056b3;
}

.disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}



/* Signature Box */
.dd-signature-box {
    margin:auto;
    width: 320px;
    padding: 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.dd-signature-box:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* General Form Styling */
#i9-form {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: auto;
}

.d-none {
    display: none !important;
}

/* Title Styling */
h2 {
    text-align: center;
    font-weight: 600;
    color: #333;
}

/* Form Labels */
label.form-label {
    font-weight: 500;
    color: #555;
}

/* Select & Input Fields */
.form-control {
    border-radius: 6px;
    padding: 10px;
    border: 1px solid #ddd;
    transition: all 0.3s ease-in-out;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* File Upload Section */
#file-upload {
    padding: 8px;
}

/* Loader Container */
#upload-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* Five Spinning Bars */
.loading-bars {
    display: flex;
    gap: 5px;
}

.loading-bars div {
    width: 6px;
    height: 10px;
    background-color: #007bff; /* Primary blue */
    animation: bars-animation 1s infinite ease-in-out;
}

/* Animating each bar with a slight delay */
.loading-bars div:nth-child(1) { animation-delay: 0s; }
.loading-bars div:nth-child(2) { animation-delay: 0.1s; }
.loading-bars div:nth-child(3) { animation-delay: 0.2s; }
.loading-bars div:nth-child(4) { animation-delay: 0.3s; }
.loading-bars div:nth-child(5) { animation-delay: 0.4s; }

/* Keyframes for pulsing effect */
@keyframes bars-animation {
    0% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.8); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0.6; }
}





#file-preview-container {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap; /* Prevents breaking to the next line */
    overflow-x: auto; /* Adds horizontal scrolling if too many files */
    padding: 10px 0;
}

/* File Preview Styling */
.file-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 120px;
    height: 140px;
    border-radius: 8px;
    background: #f9f9f9;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Image Thumbnails */
.file-row img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

/* File Name */
.file-row p {
    font-size: 12px;
    text-align: center;
    margin: 0;
    font-weight: 500;
    color: #333;
}

/* Delete Button */
.delete-file-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.delete-file-btn:hover {
    background: #c82333;
}

/* Progress Bar Styling */
.progress {
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: #007bff;
}

/* Submit Button */
/* Submit button when disabled */
.i9submit-btn {
    background-color: #d6d6d6; /* Grey */
    color: #888; /* Light grey text */
    border: 1px solid #ccc;
    cursor: not-allowed;
    transition: background 0.3s ease, color 0.3s ease;
    
    width: 100%;
    padding: 10px;
    
    border: none;
    
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
  
}

/* Submit button when active (validated) */
.i9submit-btn.enabled {
    background-color: #007bff; /* Bootstrap primary blue */
    color: white;
    border: 1px solid #007bff;
    cursor: pointer;
}


/* Preparer/Translator Section */
/* Preparer/Translator Section */
#preparer_section {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    margin-top: 20px;
}

/* Section Title */
#preparer_section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}

/* Form Layout */
.preparer-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Each Input Field */
.preparer-fields .form-group {
    flex: 1;
    min-width: 250px; /* Ensures proper spacing */
}

/* Labels */
#preparer_section label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

/* Input Fields */
#preparer_section input[type="text"],
#preparer_section input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

/* Focus Effect */
#preparer_section input:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Checkbox Styling */
.preparer-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

.preparer-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preparer-fields {
        flex-direction: column;
    }
}


/* Offer Letter Styles */
.offer-letter-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
}

.offer-letter-container h2 {
    color: #0056b3;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.offer-letter-container h4 {
    color: #333;
    font-weight: bold;
    margin-top: 20px;
    border-left: 4px solid #0056b3;
    padding-left: 10px;
}

.offer-letter-container p {
    font-size: 16px;
    margin-bottom: 15px;
}

.offer-letter-container strong {
    color: #000;
}

.offer-letter-container a {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

.offer-letter-container a:hover {
    text-decoration: underline;
}



  

/* Submit button when active (validated) */
.offer-letter-container button {
     width: 100%;
    padding: 10px;
    
    border: none;
    
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    background-color: #007bff; /* Bootstrap primary blue */
    color: white;
    border: 1px solid #007bff;
    cursor: pointer;
}





