/* Welcome inline Styles */
.welcome {
    margin-top: 20px;
    margin-bottom: 5px;
}
p.intro {
    margin-top: 5px;
    margin-bottom: 5px;
}
p.instructions {
    font-weight: bold;
}
.row_heading {
    font-size: 40px;
}
.font-14 {
    font-size:14px;
}
.error-message {
    display: none;
}

.image {
    background-image: url('/static/img/welcome.jpeg');
}


/* Terms and Conditions Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.terms-modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.terms-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #e9ecef;
}

.terms-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #212529;
    font-weight: 600;
}

.terms-content {
    padding: 32px;
    overflow-y: auto;
    flex-grow: 1;
    line-height: 1.6;
    color: #495057;
}

.agree-terms {
    font-family: Inter, sans-serif;
    font-size: 15px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.terms-document {
    margin-bottom: 30px;
}

.terms-description, .terms-instruction, .terms-follow-up {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.terms-actions {
    margin: 32px 0;
    display: flex;
    justify-content: center;
}

.terms-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0070c9;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 112, 201, 0.3);
}

.terms-button:hover {
    background-color: #005ba9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 112, 201, 0.4);
}

.terms-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 112, 201, 0.3);
}

.pdf-icon {
    margin-right: 10px;
}

.terms-confirmation {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.terms-checkbox {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-checkbox + label {
    cursor: pointer;
    font-weight: 500;
}

.terms-footer {
    padding: 20px 32px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}



.btn-agree {
    background-color: #0070c9;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-agree:hover {
    background-color: #005ba9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-agree:active {
    transform: translateY(0);
}

.btn-agree:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Hide the main content until terms are accepted */
.hidden {
    display: none;
}
/* Video Modal Styles */
/* Video Modal Styles */
.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-modal {
    background: white;
    border-radius: 12px;
    width: 60%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.video-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.close-button {
    background: none;
    border: none;
    font-size: 30px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-button:hover {
    background-color: #e9ecef;
    color: #333;
}

.video-modal-content {
    flex: 1;
    padding: 0; /* Remove padding */
    display: flex;
    justify-content: center;
    align-items: center;
    background: black; /* Optional: black background to blend with video */
}

.large-video-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Use full width */
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0; /* Remove border radius for seamless look */
    box-shadow: none; /* Remove shadow */
}

.large-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
}

.video-modal-footer .button-container {
    margin: 0;
}

.video-modal-footer button {
    background-color: #0070c9;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-modal-footer button:hover {
    background-color: #005ba9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Blur effect for background */
.modal-blur #mainContent > *:not(.video-modal-overlay) {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.modal-blur .video-modal-overlay {
    filter: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-modal {
        width: 95%;
        max-height: 95vh;
    }

    .video-modal-header,
    .video-modal-content,
    .video-modal-footer {
        padding: 15px 20px;
    }

    .video-modal-header h2 {
        font-size: 20px;
    }

    .large-video-container {
        padding-bottom: 56.25%; /* Maintain 16:9 on mobile */
    }
}

@media (max-width: 480px) {
    .video-modal {
        width: 98%;
        margin: 10px;
    }

    .video-modal-header,
    .video-modal-content,
    .video-modal-footer {
        padding: 12px 15px;
    }
}