/* CSS Variables for RobLaw Forms */
:root {
    /* Colors */
    --primary-blue: #008dc2;
    --secondary-blue: #00a7b6;
    --header-bg: #d0ecf6;
    --header-border: #4bbfe0;
    --section-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-dark: #000;
    --text-muted: #666;
    --text-light: #999;
    --white: #fff;
    --success-green: #28a745;
    
    /* Typography */
    --font-primary: 'GeneralSans', Arial, sans-serif;
    --font-heading: 'Aptly', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 6px;
    --spacing-md: 8px;
    --spacing-lg: 12px;
    --spacing-xl: 15px;
    --spacing-xxl: 20px;
    --spacing-xxxl: 30px;
    
    /* Border Radius */
    --border-radius-sm: 3px;
    --border-radius-md: 5px;
    --border-radius-lg: 6px;
    
    /* Font Sizes */
    --font-size-xs: 10px;
    --font-size-sm: 11px;
    --font-size-base: 12px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-xxl: 24px;
    --font-size-xxxl: 32px;
    --font-size-title: 42px;
}

/* Font Face Declarations */
@font-face {
    font-family: 'GeneralSans';
    src: url('../fonts/RLM Fonts/GeneralSans-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GeneralSans';
    src: url('../fonts/RLM Fonts/GeneralSans-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'GeneralSans';
    src: url('../fonts/RLM Fonts/GeneralSans-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GeneralSans';
    src: url('../fonts/RLM Fonts/GeneralSans-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Aptly';
    src: url('../fonts/RLM Fonts/Aptly Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Aptly';
    src: url('../fonts/RLM Fonts/Aptly Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'GeneralSans';
    src: url('../fonts/RLM Fonts/GeneralSans-Italic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'GeneralSans';
    src: url('../fonts/RLM Fonts/GeneralSans-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'GeneralSans';
    src: url('../fonts/RLM Fonts/GeneralSans-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'GeneralSans';
    src: url('../fonts/RLM Fonts/GeneralSans-SemiboldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Aptly';
    src: url('../fonts/RLM Fonts/Aptly Bold Italic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Aptly';
    src: url('../fonts/RLM Fonts/Aptly Medium Italic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/RLM Fonts/Oswald-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/RLM Fonts/Oswald-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/RLM Fonts/Oswald-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/RLM Fonts/Oswald-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/RLM Fonts/Oswald-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-md);
    line-height: 1.4;
    color: var(--text-dark);
    background: var(--white);
}

.form-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xxl);
}

/* Header Styles */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xxxl);
    padding-bottom: var(--spacing-xxl);
    border-bottom: 1px solid var(--border-color);
}

.form-logo {
    flex-shrink: 0;
}

.form-logo img {
    max-width: 180px;
    height: auto;
}

.form-title {
    flex-grow: 1;
    text-align: right;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.main-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-title);
    font-weight: bold;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Header Section */
.header-section {
    background: var(--header-bg);
    padding: var(--spacing-xxl);
    margin-bottom: 35px;
    border-radius: var(--border-radius-lg);
}

.header-section .form-control {
    border-color: var(--header-border);
}

.header-section .form-label {
    color: var(--header-border);
    font-weight: 500;
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xxl);
    font-weight: 500;
    color: var(--secondary-blue);
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--secondary-blue);
    letter-spacing: -0.3px;
}

.section-title.optional::after {
    content: " (optional)";
    font-size: var(--font-size-lg);
    font-weight: normal;
    color: var(--text-dark);
    font-family: var(--font-primary);
}

/* Form Elements */
.form-label {
    font-family: var(--font-primary);
    font-weight: normal;
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
}

.form-control, .form-select {
    font-family: inherit;
    font-size: var(--font-size-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 167, 182, 0.25);
}

/* Checkboxes and Radio Buttons */
.checkbox-group, .radio-group {
    margin-bottom: var(--spacing-xl);
}

.form-check {
    margin-bottom: var(--spacing-md);
}

.form-check-input {
    width: 16px;
    height: 16px;
}

.form-check-label {
    font-weight: bold;
    font-size: var(--font-size-md);
    margin-left: var(--spacing-xs);
}

/* Note Box */
.note {
    font-size: var(--font-size-base);
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-blue);
    border-radius: var(--border-radius-md);
}

/* Example Text */
.example-text {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    margin-top: var(--spacing-xs);
    font-style: italic;
    padding: var(--spacing-xs);
    background: var(--section-bg);
    border-radius: var(--border-radius-sm);
}

/* License Sections */
.license-section {
    margin-bottom: var(--spacing-xxl);
}

.license-subsection {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--section-bg);
}

.license-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.license-row {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: space-between;
}

.license-row:first-child {
    justify-content: flex-start;
}

.license-row:first-child .license-item {
    flex: 0 0 calc(20% - 5px);
    max-width: calc(20% - 5px);
}

.license-row:last-child .license-item {
    flex: 0 0 calc(16.666% - 5px);
    max-width: calc(16.666% - 5px);
}

.license-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--white);
    min-height: 60px;
    aspect-ratio: 1;
}

.license-item span {
    font-weight: bold;
    font-size: var(--font-size-lg);
}

.license-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

/* Referee Sections */
.referee-section {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--section-bg);
}

.referee-title {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-blue);
    font-size: var(--font-size-xl);
    letter-spacing: -0.3px;
}

/* General Sections */
.section {
    margin-bottom: var(--spacing-xxxl);
}



/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: var(--spacing-lg);
    }

    .main-title {
        font-size: var(--font-size-xxxl);
        margin-bottom: 25px;
    }

    .header-section {
        padding: var(--spacing-xl);
        margin-bottom: var(--spacing-xxl);
    }

    .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-lg);
    }

    .section {
        margin-bottom: var(--spacing-xxl);
    }

    .form-header {
        flex-direction: column;
        gap: var(--spacing-xxl);
        text-align: center;
    }

    .form-logo img {
        max-width: 160px;
    }

    .form-title {
        font-size: 28px;
    }



    .license-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }

    .license-item {
        min-height: 50px;
        padding: var(--spacing-xs);
    }

    .license-item span {
        font-size: var(--font-size-md);
    }

    .license-item input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }

    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn {
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }
    

    
    /* Form Index Mobile Styles */
    .form-index-container {
        padding: var(--spacing-lg);
    }
    
    .index-title {
        font-size: var(--font-size-xl);
    }
    
    .index-subtitle {
        font-size: var(--font-size-base);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .form-card {
        padding: var(--spacing-lg);
    }
    
    .form-card h3 {
        font-size: var(--font-size-md);
    }
    
    .progress-section {
        padding: var(--spacing-lg);
    }
    
    .instructions-section {
        padding: var(--spacing-lg);
    }
    
    /* Mobile Footer Styles */
    .footer-info {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-xxl);
    }
    
    .form-version {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-md);
    }
    
    .footer-locations {
        font-size: var(--font-size-xs);
    }
    
    .footer-phone {
        font-size: var(--font-size-sm);
    }
}

@media (min-width: 769px) {
    .license-subsection {
        border-left: 3px solid var(--primary-blue);
    }
}

/* DANDA Form Specific Styles */
.danda-form .declaration-item {
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: flex-start;
}

.danda-form .declaration-item > *:not(.declaration-number) {
    padding-top: 15px;
}

.danda-form .declaration-number {
    font-family: 'Aptly', Arial, sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin-right: var(--spacing-lg);
    flex-shrink: 0;
    min-width: 40px;
}

.danda-form .form-section {
    margin-bottom: var(--spacing-xxxl);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--section-bg);
}

.danda-form .section-intro {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    font-style: italic;
}

.danda-form .question-group {
    margin-bottom: var(--spacing-xxl);
}

.danda-form .question-text {
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
}

.danda-form .radio-group-inline {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.danda-form .radio-group-inline .form-check {
    margin-bottom: 0;
}

.danda-form .conditional-textarea {
    margin-top: var(--spacing-lg);
}

.danda-form .signature-section {
    margin-top: var(--spacing-xxxl);
    padding: var(--spacing-xl);
    border: 2px solid var(--primary-blue);
    border-radius: var(--border-radius-md);
    background: var(--white);
}

.danda-form .signature-field {
    /* Use standard form control styling to match other forms */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    background: var(--white);
}

.danda-form .signature-field:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 167, 182, 0.25);
    outline: none;
}

/* Signature Pad Styles */
.signature-pad-container {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    background: var(--white);
    margin-bottom: var(--spacing-lg);
}

.signature-canvas {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--white);
    cursor: crosshair;
    display: block;
    margin-bottom: var(--spacing-md);
    width: 100%;
    max-width: 500px;
    height: 200px;
}

.signature-controls {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.signature-controls .btn {
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-md);
}

.signature-validation {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

.signature-validation.error {
    color: #dc3545;
}

.signature-validation.success {
    color: var(--success-green);
}

.signature-consent {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--section-bg);
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--primary-blue);
}

.signature-consent .form-check-label {
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Mobile responsive signature pad */
@media (max-width: 768px) {
    .signature-canvas {
        height: 150px;
    }
    
    .signature-controls {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .signature-controls .btn {
        width: 100%;
    }
}

/* Standardized Footer Styles */
.footer-info {
    text-align: center;
    margin-top: var(--spacing-xxxl);
    padding: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    background: var(--white);
}

.form-version {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.footer-locations {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.footer-phone {
    font-family: var(--font-primary);
    font-weight: bold;
    color: var(--primary-blue);
    font-size: var(--font-size-base);
}

.danda-form .note {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}



/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: var(--spacing-xxl);
    right: var(--spacing-xxl);
    z-index: 1000;
}

.fab-back-container {
    position: fixed;
    bottom: var(--spacing-xxl);
    left: var(--spacing-xxl);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.fab-button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--font-size-base);
    box-shadow: 0 4px 20px rgba(0, 141, 194, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    animation: fab-pulse 2s infinite;
}

.fab-button.fab-back {
    background: var(--text-muted);
    box-shadow: 0 4px 20px rgba(102, 102, 102, 0.3);
    animation: fab-pulse-back 2s infinite;
}

.fab-button.fab-back:hover {
    background: #555;
    box-shadow: 0 6px 25px rgba(102, 102, 102, 0.4);
}

.fab-button.fab-index {
    background: var(--primary-blue);
    box-shadow: 0 4px 20px rgba(0, 141, 194, 0.3);
    margin-top: var(--spacing-md);
}

.fab-button.fab-index:hover {
    background: var(--secondary-blue);
    box-shadow: 0 6px 25px rgba(0, 141, 194, 0.4);
}

.fab-button.fab-forward {
    animation: fab-pulse 2s infinite;
}

@keyframes fab-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 141, 194, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 141, 194, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 141, 194, 0.3);
    }
}

@keyframes fab-pulse-back {
    0% {
        box-shadow: 0 4px 20px rgba(102, 102, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 102, 102, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(102, 102, 102, 0.3);
    }
}

.fab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 141, 194, 0.4);
    background: var(--secondary-blue);
}

.fab-button.fab-success {
    background: var(--success-green);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.fab-button.fab-success:hover {
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
    background: #218838;
}

.fab-text {
    white-space: nowrap;
}

/* Form Title Status Badge */
.form-title .form-status {
    display: inline-block;
    margin-left: var(--spacing-lg);
    vertical-align: middle;
    font-size: var(--font-size-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-title .form-status.status-complete {
    background-color: var(--success-green);
    color: var(--white);
    border: 1px solid var(--success-green);
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {

    
    .fab-container {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
    }
    
    .fab-back-container {
        bottom: var(--spacing-lg);
        left: var(--spacing-lg);
    }
    
    .fab-button {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .fab-text {
        display: none;
    }
    
    .form-title .form-status {
        font-size: var(--font-size-xs);
        padding: 2px 6px;
        margin-left: var(--spacing-sm);
    }
}

/* Form Index Specific Styles */
.form-index .form-container {
    max-width: 1200px;
}

.form-index .form-header {
    margin-bottom: var(--spacing-xxxl);
}

/* Form Index Container */
.form-index-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xxl);
}

/* Index Header */
.index-header {
    text-align: center;
    margin-bottom: var(--spacing-xxxl);
}

.index-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xxl);
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.index-subtitle {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    font-weight: 400;
}

/* Progress Section */
.progress-section {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxxl);
}

.progress-section h4 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    height: 8px;
    border-radius: var(--border-radius-sm);
    background: var(--border-color);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: width 0.3s ease;
}

.progress-text {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxxl);
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Cards */
.form-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xxl);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 141, 194, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.form-card:hover::before {
    transform: scaleX(1);
}

.form-card h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.form-card p {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Form Status */
.form-status {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-top: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-complete {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Instructions Section */
.instructions-section {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xxl);
}

.instructions-section h4 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.instructions-section ul {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: 0;
    padding-left: var(--spacing-xl);
}

.instructions-section li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

/* Disabled Form Cards */
.form-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--section-bg);
}

.form-card.disabled:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.form-card.disabled::before {
    display: none;
}

/* Print Styles */
@media print {
    body {
        padding: 0;
    }
    
    .form-container {
        max-width: none;
        padding: 0;
    }
    
    .btn {
        display: none;
    }
}

/* Bank Account Form Specific Styles */

/* Bank Account Number Section */
.bank-account-number-section {
    margin-top: var(--spacing-lg);
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.bank-number-label {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bank Number Table Styles */
.bank-number-table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

/* Add gaps between groups */
.bank-input-cell:nth-child(2) {
    padding-right: 10px; /* Gap after BANK # group */
}

.bank-input-cell:nth-child(6) {
    padding-right: 10px;   /* Gap after BRANCH # group */
}

.bank-input-cell:nth-child(13) {
    padding-right: 10px; /* Gap after ACCOUNT # group */
}

/* Add corresponding gaps to label cells for proper alignment */
.bank-label-cell:nth-child(1) {
    padding-right: 10px; /* Gap after BANK # label */
}

.bank-label-cell:nth-child(2) {
    padding-right: 10px; /* Gap after BRANCH # label */
}

.bank-label-cell:nth-child(3) {
    padding-right: 10px; /* Gap after ACCOUNT # label */
}

.bank-input-cell {
    padding: 0;
    text-align: center;
    vertical-align: top;
    border: none;
    width: 50px; /* Fixed width to match input size */
    font-size: 0; /* Remove any font spacing */
}

/* Background colors removed - gaps provide sufficient visual separation */

/* Remove borders between input cells within groups */
.bank-input-cell {
    border-right: none;
    border-left: none;
}

.bank-labels-row {
    height: 80px;
    vertical-align: top;
}

.bank-label-cell {
    text-align: center;
    padding: var(--spacing-sm);
    position: relative;
}

.bank-label-line {
    height: 2px;
    background: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.bank-number-label {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--primary-blue);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}



@media (max-width: 934px) {
    /* Much smaller for tablets and small laptops - override everything */
    .bank-number-box {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
        border: 1px solid var(--border-color) !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .bank-number-box.is-invalid {
        border-color: #dc3545 !important;
    }
    
    /* Remove right borders from inner cells within groups */
    .bank-input-cell:nth-child(1) .bank-number-box,
    .bank-input-cell:nth-child(2) .bank-number-box,
    .bank-input-cell:nth-child(3) .bank-number-box,
    .bank-input-cell:nth-child(4) .bank-number-box,
    .bank-input-cell:nth-child(5) .bank-number-box,
    .bank-input-cell:nth-child(6) .bank-number-box,
    .bank-input-cell:nth-child(7) .bank-number-box,
    .bank-input-cell:nth-child(8) .bank-number-box,
    .bank-input-cell:nth-child(9) .bank-number-box,
    .bank-input-cell:nth-child(10) .bank-number-box,
    .bank-input-cell:nth-child(11) .bank-number-box,
    .bank-input-cell:nth-child(12) .bank-number-box,
    .bank-input-cell:nth-child(13) .bank-number-box,
    .bank-input-cell:nth-child(14) .bank-number-box,
    .bank-input-cell:nth-child(15) .bank-number-box {
        border-right: none !important;
    }
    
    /* Keep right borders only on the last cell of each group */
    .bank-input-cell:nth-child(2) .bank-number-box,
    .bank-input-cell:nth-child(6) .bank-number-box,
    .bank-input-cell:nth-child(13) .bank-number-box,
    .bank-input-cell:nth-child(16) .bank-number-box {
        border-right: 1px solid var(--border-color) !important;
    }
    
    .bank-input-cell {
        width: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Ensure right borders on group edges also turn red when invalid */
    .bank-input-cell:nth-child(2) .bank-number-box.is-invalid,
    .bank-input-cell:nth-child(6) .bank-number-box.is-invalid,
    .bank-input-cell:nth-child(13) .bank-number-box.is-invalid,
    .bank-input-cell:nth-child(16) .bank-number-box.is-invalid {
        border-right: 1px solid #dc3545 !important;
    }
    
    /* Reduce gaps for very compact layout */
    .bank-input-cell:nth-child(2),
    .bank-input-cell:nth-child(6),
    .bank-input-cell:nth-child(13) {
        padding-right: 4px !important;
    }
    
    .bank-label-cell:nth-child(1),
    .bank-label-cell:nth-child(2),
    .bank-label-cell:nth-child(3) {
        padding-right: 4px !important;
    }
    
    /* Scale down labels and lines */
    .bank-label-line {
        height: 1px !important;
        margin-bottom: 2px !important;
    }
    
    .bank-number-label {
        font-size: 9px !important;
    }
    
    .bank-labels-row {
        height: 35px !important;
    }
}

@media (max-width: 934px) {
    /* Force table to be compact */
    .bank-number-table {
        width: auto !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }
    
    .bank-number-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .bank-number-group {
        width: 100%;
    }
    
    .bank-number-inputs {
        justify-content: center;
        flex-wrap: nowrap;
    }
}

@media (max-width: 520px) {
    /* Ultra-compact for mobile portrait - calculated to fit */
    .bank-number-box {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
        border: 1px solid var(--border-color) !important;
        min-width: 18px !important;
        min-height: 18px !important;
    }
    
    .bank-number-box.is-invalid {
        border-color: #dc3545 !important;
    }
    
    /* Remove right borders from inner cells within groups */
    .bank-input-cell:nth-child(1) .bank-number-box,
    .bank-input-cell:nth-child(2) .bank-number-box,
    .bank-input-cell:nth-child(3) .bank-number-box,
    .bank-input-cell:nth-child(4) .bank-number-box,
    .bank-input-cell:nth-child(5) .bank-number-box,
    .bank-input-cell:nth-child(6) .bank-number-box,
    .bank-input-cell:nth-child(7) .bank-number-box,
    .bank-input-cell:nth-child(8) .bank-number-box,
    .bank-input-cell:nth-child(9) .bank-number-box,
    .bank-input-cell:nth-child(10) .bank-number-box,
    .bank-input-cell:nth-child(11) .bank-number-box,
    .bank-input-cell:nth-child(12) .bank-number-box,
    .bank-input-cell:nth-child(13) .bank-number-box,
    .bank-input-cell:nth-child(14) .bank-number-box,
    .bank-input-cell:nth-child(15) .bank-number-box {
        border-right: none !important;
    }
    
    /* Keep right borders only on the last cell of each group */
    .bank-input-cell:nth-child(2) .bank-number-box,
    .bank-input-cell:nth-child(6) .bank-number-box,
    .bank-input-cell:nth-child(13) .bank-number-box,
    .bank-input-cell:nth-child(16) .bank-number-box {
        border-right: 1px solid var(--border-color) !important;
    }
    
    .bank-input-cell {
        width: 18px !important;
        min-width: 18px !important;
    }
    
    /* Ensure right borders on group edges also turn red when invalid */
    .bank-input-cell:nth-child(2) .bank-number-box.is-invalid,
    .bank-input-cell:nth-child(6) .bank-number-box.is-invalid,
    .bank-input-cell:nth-child(13) .bank-number-box.is-invalid,
    .bank-input-cell:nth-child(16) .bank-number-box.is-invalid {
        border-right: 1px solid #dc3545 !important;
    }
    
    /* Minimal gaps for mobile */
    .bank-input-cell:nth-child(2),
    .bank-input-cell:nth-child(6),
    .bank-input-cell:nth-child(13) {
        padding-right: 3px !important;
    }
    
    .bank-label-cell:nth-child(1),
    .bank-label-cell:nth-child(2),
    .bank-label-cell:nth-child(3) {
        padding-right: 3px !important;
    }
    
    /* Ultra-compact labels */
    .bank-label-line {
        height: 1px !important;
        margin-bottom: 2px !important;
    }
    
    .bank-number-label {
        font-size: 8px !important;
    }
    
    .bank-labels-row {
        height: 30px !important;
    }
}

.bank-number-box {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: 0; /* Remove border radius for seamless connection */
    transition: all 0.2s ease;
    margin: 0; /* Remove any margins */
    display: block; /* Ensure block display */
}

/* Remove right border from all inputs except the last one in each group */
.bank-input-cell:nth-child(1) .bank-number-box,
.bank-input-cell:nth-child(3) .bank-number-box,
.bank-input-cell:nth-child(4) .bank-number-box,
.bank-input-cell:nth-child(5) .bank-number-box,
.bank-input-cell:nth-child(7) .bank-number-box,
.bank-input-cell:nth-child(8) .bank-number-box,
.bank-input-cell:nth-child(9) .bank-number-box,
.bank-input-cell:nth-child(10) .bank-number-box,
.bank-input-cell:nth-child(11) .bank-number-box,
.bank-input-cell:nth-child(12) .bank-number-box,
.bank-input-cell:nth-child(14) .bank-number-box,
.bank-input-cell:nth-child(15) .bank-number-box {
    border-right: none;
}

.bank-number-box:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 141, 194, 0.25);
    outline: none;
    transform: scale(1.05);
}

.bank-number-box.is-invalid {
    border-color: #dc3545 !important;
}

/* Remove Bootstrap's default validation styling */
.bank-number-box.is-invalid::before,
.bank-number-box.is-invalid::after {
    display: none !important;
}

/* Override Bootstrap's validation background image */
.bank-number-box.is-invalid {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* GST Section */
.gst-section {
    margin-top: var(--spacing-lg);
}

.gst-inputs {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start;
    flex-wrap: wrap;
}

.gst-box {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: var(--font-size-md);
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

/* GST validation styling - match bank number validation */
.gst-box.is-invalid {
    border-color: #dc3545 !important;
}

/* Remove Bootstrap's default validation styling for GST */
.gst-box.is-invalid::before,
.gst-box.is-invalid::after {
    display: none !important;
}

/* Override Bootstrap's validation background image for GST */
.gst-box.is-invalid {
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Responsive sizing for GST boxes to match bank account number */
@media (max-width: 934px) {
    .gst-box {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
        border: 1px solid var(--border-color) !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .gst-box.is-invalid {
        border-color: #dc3545 !important;
    }
}

@media (max-width: 520px) {
    .gst-box {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
        border: 1px solid var(--border-color) !important;
        min-width: 18px !important;
        min-height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .gst-box.is-invalid {
        border-color: #dc3545 !important;
    }
}

.gst-box:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 141, 194, 0.25);
    outline: none;
    transform: scale(1.05);
}

/* Email Section */
.email-section {
    margin-top: var(--spacing-lg);
}

.email-section .form-control {
    max-width: 400px;
}

/* Important Note */
.important-note {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.note-icon {
    color: #856404;
    font-size: var(--font-size-xl);
    flex-shrink: 0;
    margin-top: 2px;
}

.note-text {
    color: #856404;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* Return Options */
.return-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

.return-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 600px;
}

.option-icon {
    color: var(--primary-blue);
    font-size: var(--font-size-xxl);
    flex-shrink: 0;
}

.option-content {
    text-align: left;
}

.email-address {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: var(--font-size-lg);
}

.postal-address {
    color: var(--text-dark);
    font-size: var(--font-size-base);
    line-height: 1.4;
}

.return-divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--font-size-lg);
    margin: var(--spacing-md) 0;
}

.return-divider::before,
.return-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin: 0 var(--spacing-lg);
}

/* Responsive adjustments for bank account form */
@media (max-width: 934px) {
    .bank-number-inputs,
    .gst-inputs {
        gap: var(--spacing-xs);
    }
    
    .bank-number-box {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-md);
    }
    
    .gst-box {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-sm);
    }
    
    .return-option {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .option-content {
        text-align: center;
    }
}

/* Completion Page Styles */
.completion-page .completion-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xxxl) 0;
}

.completion-icon {
    font-size: 120px;
    color: var(--success-green);
    animation: completion-bounce 1s ease-in-out;
}

.completion-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xxxl);
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.completion-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-muted);
    margin-bottom: var(--spacing-xxxl);
    line-height: 1.6;
}

.completion-summary {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxxl);
    text-align: left;
}

.completion-summary h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.completed-forms-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.completed-form-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    padding: 0 20px;
}

.completed-form-item i {
    color: var(--success-green);
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.completed-form-item span {
    font-size: var(--font-size-base);
    color: var(--text-dark);
    font-weight: 500;
}

.completion-message {
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxxl);
}

.completion-message p {
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.completion-message p:last-child {
    margin-bottom: 0;
}

.completion-actions {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.completion-actions .btn {
    padding: var(--spacing-lg) var(--spacing-xxl);
    font-size: var(--font-size-md);
    font-weight: 500;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
}

.completion-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes completion-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Responsive completion page */
@media (max-width: 768px) {
    .completion-container {
        padding: var(--spacing-xxl) var(--spacing-lg);
    }
    
    .completion-icon {
        font-size: 80px;
    }
    
    .completion-title {
        font-size: var(--font-size-xxl);
    }
    
    .completion-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .completion-actions .btn {
        width: 100%;
        max-width: 300px;
    }
} 

/* Form validation animations - shake animation removed */

/* Form Validation Styles */
.danda-form .form-control.is-invalid,
.danda-form .form-check-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.danda-form .radio-group-inline.is-invalid {
    border: 2px solid #dc3545;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm);
    background-color: rgba(220, 53, 69, 0.05);
}

.danda-form .radio-group-inline.is-invalid .form-check-input {
    border-color: #dc3545;
}

.danda-form .radio-group-inline.is-invalid .form-check-label {
    color: #dc3545;
    font-weight: 500;
}

/* Enhanced form control focus states */
.danda-form .form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 167, 182, 0.25);
    transform: translateY(-1px);
    transition: all 0.2s ease;
} 

/* Validation Message Styles */
.validation-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 500;
    z-index: 1100;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.validation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validation-close {
    background: none;
    border: none;
    color: inherit;
    font-size: var(--font-size-xl);
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.validation-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.validation-close:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsive validation messages */
@media (max-width: 768px) {
    .validation-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        animation: slideInTop 0.3s ease-out;
    }
    
    @keyframes slideInTop {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
} 

/* Form Navigation - Moved to bottom with FAB styling */
.form-navigation {
    position: fixed;
    bottom: var(--spacing-sm);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-xs) 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-md);
}

.nav-header {
    flex-shrink: 0;
}

.nav-header .btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    box-shadow: 0 2px 10px rgba(0, 141, 194, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fab-pulse 2s infinite;
}

.nav-header .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(0, 141, 194, 0.4);
    background: var(--secondary-blue);
}

.nav-info {
    flex: 1;
    text-align: center;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    max-width: 120px;
}

.nav-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.nav-buttons .btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 0;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--font-size-base);
    box-shadow: 0 2px 10px rgba(0, 141, 194, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fab-pulse 2s infinite;
}

.nav-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(0, 141, 194, 0.4);
    background: var(--secondary-blue);
}

.nav-buttons .btn:disabled {
    background: var(--text-muted);
    box-shadow: 0 2px 10px rgba(102, 102, 102, 0.3);
    animation: fab-pulse-back 2s infinite;
    cursor: not-allowed;
    transform: none;
}

.nav-buttons .btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(102, 102, 102, 0.3);
}



/* Hide the old FAB buttons since we're using the navigation bar now */
.fab-container,
.fab-back-container {
    display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .form-navigation {
        padding: var(--spacing-xs) 0;
        bottom: var(--spacing-xs);
    }
    
    .nav-content {
        flex-direction: row;
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
        justify-content: space-between;
    }
    
    .nav-header .btn,
    .nav-buttons .btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-sm);
    }
    
    .nav-info {
        font-size: var(--font-size-xs);
        max-width: 80px;
    }
    

} 

/* Form Lock Styles */
.form-locked {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

.form-locked:focus {
    outline: none !important;
    box-shadow: none !important;
}

body.form-locked {
    pointer-events: auto; /* Allow scrolling and navigation */
}

body.form-locked .form-container {
    position: relative;
}

body.form-locked .form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* Status Indicator Styles */
.form-status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100; /* Higher z-index to appear above the locked overlay */
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-badge.status-complete {
    background: var(--success-green);
}

.status-badge.status-pending {
    background: var(--primary-blue);
}

.status-badge i {
    font-size: var(--font-size-md);
}



/* Form Header Positioning for Status Indicator */
.form-header {
    position: relative;
    z-index: 100; /* Ensure the header and status indicator are above the overlay */
}

/* Responsive adjustments for status indicator */
@media (max-width: 768px) {
    .form-status-indicator {
        position: static;
        margin-top: var(--spacing-sm);
        text-align: center;
    }
    
    .status-badge {
        font-size: var(--font-size-xs);
        padding: 6px 12px;
    }
}

/* Form Submission Banner Styles */
.form-submission-banner {
    margin-bottom: var(--spacing-xxl);
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.form-submission-banner .btn-close {
    padding: 0.25rem;
    margin: 0;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s ease-in-out;
}

.form-submission-banner .btn-close:hover {
    opacity: 0.75;
}

/* DocuSign Callback Banner Styles */
.docusign-callback-banner {
    margin-bottom: var(--spacing-xxl);
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.docusign-callback-banner .btn-close {
    padding: 0.25rem;
    margin: 0;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s ease-in-out;
}

.docusign-callback-banner .btn-close:hover {
    opacity: 0.75;
}

/* Pre-Induction Form Styles */
.pre-induction-form .form-control.is-invalid,
.pre-induction-form .form-check-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Invalid radio button styling - affects all radio buttons in the group */
.pre-induction-form .radio-group.is-invalid .form-check-input {
    border-color: #dc3545 !important;
}

.pre-induction-form .radio-group.is-invalid .form-check-label {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Invalid checkbox styling */
.pre-induction-form .license-row.is-invalid .license-item span {
    color: #dc3545 !important;
    font-weight: 600;
}

.pre-induction-form .license-row.is-invalid .license-item input[type="checkbox"] {
    border-color: #dc3545 !important;
}

/* Invalid checkbox group styling */
.pre-induction-form .checkbox-group.is-invalid .form-check-label {
    color: #dc3545 !important;
    font-weight: 600;
}

.pre-induction-form .checkbox-group.is-invalid .form-check-input {
    border-color: #dc3545 !important;
}



.pre-induction-form .submit-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2rem 0;
}


.pre-induction-form .form-locked {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.pre-induction-form .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Bank Account Form Styles */
.bank-account-form .submit-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2rem 0;
}


.bank-account-form .form-locked {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.bank-account-form .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Security: Redacted field styling */
.bank-account-form .redacted-field {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    font-family: monospace !important;
    font-weight: bold !important;
    text-align: center !important;
}

.bank-account-form .redacted-field:focus {
    box-shadow: none !important;
    border-color: #dee2e6 !important;
}

/* Tax Code Declaration Form Styles */
.tax-code-declaration-form .form-locked {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.tax-code-declaration-form .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* KiwiSaver Form Styles */
.kiwisaver-form .form-locked {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.kiwisaver-form .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Triangular Employment Form Styles */
.triangular-employment-form .declaration-content {
    margin-bottom: 2rem;
}

.triangular-employment-form .declaration-text {
    font-family: 'Aptly', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.triangular-employment-form .offence-list {
    margin-top: 1rem;
}

.triangular-employment-form .offence-item {
    margin-bottom: 2rem;
    padding: 2rem 1rem;
    border-left: 4px solid #008dc2;
    background-color: #f8f9fa;
}

.triangular-employment-form .offence-section {
    font-family: 'Aptly', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: bold;
    color: #008dc2;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.triangular-employment-form .offence-title {
    font-family: 'Aptly', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.triangular-employment-form .offence-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.triangular-employment-form .offence-details {
    margin: 0.5rem 0 0 1rem;
    color: #666;
}

.triangular-employment-form .offence-details li {
    margin-bottom: 0.25rem;
}

.triangular-employment-form .declaration-section {
    margin-bottom: 2rem;
}

.triangular-employment-form .declaration-subtitle {
    font-family: 'Aptly', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.5;
}

.triangular-employment-form .highlight-text {
    background-color: #000;
    color: #fff;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.triangular-employment-form .act-title {
    font-family: 'Aptly Bold', 'Aptly', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: bold;
    color: #BE3335;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.triangular-employment-form .acknowledgement-text {
    background-color: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #bbdefb;
}

.triangular-employment-form .acknowledgement-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.triangular-employment-form .acknowledgement-text p:last-child {
    margin-bottom: 0;
}

.triangular-employment-form .signature-fields {
    background-color: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #bbdefb;
}

.triangular-employment-form .signature-placeholder {
    border: 3px dashed #008dc2;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f8ff;
    color: #008dc2;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.triangular-employment-form .form-section {
    margin-bottom: 2rem;
}

.triangular-employment-form .section-title {
    color: #008dc2;
    border-bottom: 2px solid #008dc2;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Skills Experience Form Styles */
.skills-experience-form .skills-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skills-experience-form .skills-section-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #008dc2;
    border-bottom: 2px solid #008dc2;
    padding-bottom: 8px;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.skills-experience-form .skills-subsection-title {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    margin-top: 20px;
    letter-spacing: -0.2px;
}

.skills-experience-form .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.skills-experience-form .skill-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.skills-experience-form .skill-item:hover {
    background: #e9ecef;
    border-color: #008dc2;
}

.skills-experience-form .skill-item.checked {
    background: #e8f5e8;
    border-color: #28a745;
}

.skills-experience-form .skill-item input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    cursor: pointer;
}

.skills-experience-form .skill-item label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    flex: 1;
}

.skills-experience-form .skill-code {
    font-weight: bold;
    color: #008dc2;
    margin-right: 8px;
    min-width: 60px;
}

.skills-experience-form .other-certificates {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.skills-experience-form .other-certificates textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
}

.skills-experience-form .form-description {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Health Checklist Form Styles */
.health-checklist-form .health-section {
    background: white;
    margin-bottom: 25px;
}

.health-checklist-form .health-question {
    margin-bottom: 20px;
}

.health-checklist-form .health-question-text {
    font-family: 'Oswald', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.health-checklist-form .health-conditions-table {
    border-radius: 8px;
    overflow: hidden;
}

.health-checklist-form .health-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    border-bottom: 1px solid #dee2e6;
    min-height: 60px;
    align-items: center;
}

.health-checklist-form .health-table-row:last-child {
    border-bottom: none;
}

.health-checklist-form .condition-column {
    padding: 15px;
    font-weight: 500;
    color: #333;
}

.health-checklist-form .yes-column,
.health-checklist-form .no-column {
    padding: 15px;
    text-align: center;
}

.health-checklist-form .details-column {
    padding: 15px;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .health-checklist-form .health-table-row {
        display: block;
        padding: 15px;
        min-height: auto;
        border-bottom: none !important;
    }
    
    .health-checklist-form .condition-column {
        padding: 0 0 10px 0;
        /*font-size: 16px;*/
        font-weight: 600;
        color: #333;
        /*border-bottom: 1px solid #f0f0f0;*/
        /*margin-bottom: 10px;*/
    }
    
    .health-checklist-form .yes-column,
    .health-checklist-form .no-column {
        display: inline-flex;
        align-items: center;
        padding: 5px 15px 5px 0;
        text-align: left;
        vertical-align: top;
    }
    
    .health-checklist-form .details-column {
        padding: 5px 0;
        margin-top: 10px;
    }
    
    .health-checklist-form .details-column textarea {
        width: 100%;
        min-height: 50px;
    }
}

.health-checklist-form .yes-column,
.health-checklist-form .no-column {
    display: flex;
    /*align-items: center;
    justify-content: center;*/
}

.health-checklist-form .yes-column .form-check,
.health-checklist-form .no-column .form-check {
    margin-bottom: 0;
}

.health-checklist-form .yes-column .form-check-input,
.health-checklist-form .no-column .form-check-input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-bottom: 0;
}

.health-checklist-form .yes-column .form-check-label,
.health-checklist-form .no-column .form-check-label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin: 0;
    font-size: var(--font-size-base);
}

.health-checklist-form .details-column textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px;
    font-size: 14px;
    background: #f8f9fa;
    resize: vertical;
    min-height: 40px;
}

.health-checklist-form .work-history-questions {
    margin-bottom: 20px;
}

.health-checklist-form .work-question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.health-checklist-form .work-question-row:last-child {
    margin-bottom: 0;
}

.health-checklist-form .question-text {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.health-checklist-form .yes-no-options {
    display: flex;
    gap: 20px;
}

.health-checklist-form .radio-option {
    display: flex;
    align-items: center;
}

.health-checklist-form .radio-option .form-check {
    margin-bottom: 0;
}

.health-checklist-form .radio-option .form-check-input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-bottom: 0;
}

.health-checklist-form .radio-option .form-check-label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin: 0;
    font-size: var(--font-size-base);
}

.health-checklist-form .work-details-section {
    margin-top: 20px;
}

.health-checklist-form .details-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

.health-checklist-form .work-details-section textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    background: #f8f9fa;
    resize: vertical;
    min-height: 100px;
}

/* Health Checklist Form Validation Styles */
.health-checklist-form .form-control.is-invalid,
.health-checklist-form .form-check-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.health-checklist-form .details-column textarea.is-invalid {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.health-checklist-form .details-column textarea.details-invalid {
    border: 2px solid #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background: #fff5f5;
}

.health-checklist-form .details-column textarea.details-valid {
    border: 2px solid #28a745;
    background: #f8fff8;
}

/* Consistent Submit Button Styling - DocuSign Style */
.submit-section .btn-primary {
    background: linear-gradient(135deg, #008dc2 0%, #00a7b6 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 141, 194, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.submit-section .btn-primary:hover {
    background: linear-gradient(135deg, #0079a8 0%, #0099a6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 141, 194, 0.4);
}

.submit-section .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 141, 194, 0.3);
}

.submit-section .btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 141, 194, 0.25);
}

.submit-section .btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

/* Worksafe Induction Form Video Styles */
.worksafe-induction-form .video-section {
    margin-bottom: 2rem;
}

.worksafe-induction-form .video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1rem auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Loading States */
.worksafe-induction-form .video-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: white;
}

.worksafe-induction-form .video-loading .loading-spinner {
    margin-bottom: 1rem;
}

.worksafe-induction-form .video-loading .loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #fff;
}


/* Video Error State */
.worksafe-induction-form .video-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.worksafe-induction-form .video-error .error-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.worksafe-induction-form .video-error .error-content i {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
    display: block;
}

.worksafe-induction-form .video-error .error-content h5 {
    color: #fff;
    margin-bottom: 1rem;
}

.worksafe-induction-form .video-error .error-content p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.worksafe-induction-form #youtube-player {
    width: 100%;
    height: 400px;
    max-width: 100%;
    display: block;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.worksafe-induction-form #youtube-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.worksafe-induction-form .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.worksafe-induction-form .video-overlay.hidden {
    display: none;
}

.worksafe-induction-form .video-overlay-content {
    text-align: center;
    color: white;
}

.worksafe-induction-form .video-overlay-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.worksafe-induction-form .video-overlay:hover .video-overlay-content i {
    opacity: 1;
    transform: scale(1.1);
}

.worksafe-induction-form .video-overlay-content p {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.worksafe-induction-form .video-progress {
    margin-top: 1rem;
    padding: 0 1rem;
}

.worksafe-induction-form .progress-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.worksafe-induction-form .progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.worksafe-induction-form .progress-bar {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    transition: width 0.3s ease;
}

.worksafe-induction-form .video-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.worksafe-induction-form .video-instructions {
    margin-bottom: 1.5rem;
}

.worksafe-induction-form .video-description {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 0;
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
}

.worksafe-induction-form .video-description i {
    color: #007bff;
    font-size: 1.1rem;
}

/* Confirmation Section Styles */
.worksafe-induction-form .confirmation-section {
    margin-bottom: 2rem;
}

.worksafe-induction-form .confirmation-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
}

.worksafe-induction-form .confirmation-text {
    margin-bottom: 1.5rem;
}

.worksafe-induction-form .confirmation-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.worksafe-induction-form .confirmation-checkbox {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
}

.worksafe-induction-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.worksafe-induction-form .form-check-label {
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    cursor: pointer;
}

.worksafe-induction-form .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.worksafe-induction-form .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Video completed state */
.worksafe-induction-form .video-completed .form-check-input {
    background-color: #28a745;
    border-color: #28a745;
}

.worksafe-induction-form .video-completed .form-check-label {
    color: #28a745;
    font-weight: 600;
}

/* Responsive video sizing */
@media (max-width: 768px) {
    .worksafe-induction-form .video-container {
        margin: 0 auto 1rem auto;
        border-radius: 12px;
    }
    
    .worksafe-induction-form .video-overlay-content i {
        font-size: 3rem;
    }
    
    .worksafe-induction-form .video-overlay-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .worksafe-induction-form .video-overlay-content i {
        font-size: 2.5rem;
    }
    
    .worksafe-induction-form .video-overlay-content p {
        font-size: 0.9rem;
    }
    
    .worksafe-induction-form .video-description {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* Completion Notice Styles */
.completion-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem 3rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.completion-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.completion-icon {
    color: #28a745;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #28a745;
}

.completion-text h3 {
    color: #155724;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: var(--font-heading);
}

.completion-text p {
    color: #155724;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.completed-forms-list {
    margin-top: 1rem;
}

.completed-form-item {
    color: #155724;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: 'Oswald', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .completion-notice {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .completion-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .completion-icon {
        font-size: 1.75rem;
    }
    
    .completion-text h3 {
        font-size: 1.1rem;
    }
    
    .completion-text p {
        font-size: 0.9rem;
    }
}

/* Contractor Status and GST Section Styles */
.disabled-section {
    opacity: 0.6;
    pointer-events: none;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.disabled-section .section-title {
    color: #6c757d;
}

.disabled-section .section-intro {
    color: #6c757d;
}

.disabled-field {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.disabled-field:focus {
    box-shadow: none !important;
    border-color: #ced4da !important;
}