body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 5px;
    min-height: 100vh;
    /* background: linear-gradient(to right bottom, #006a4e, #d7402f); */
    background-color: #1e6a4d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: #fff;
    width: 95%;
    max-width: 500px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;

}

.form-header img {
    max-width: 150px;
    height: auto;
    margin-bottom: 5px;
}

.form-header h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 3px;
}

.form-header p {
    font-size: 13px;
    color: #666;
}

.timer {
    font-size: 16px;
    color: #ff4d4d;
    font-weight: bold;
    margin-top: 3px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
    display: inline-block;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

select {
    background-color: white;
    color: #333;
}

input:focus, select:focus, textarea:focus {
    border-color: #45a6ff;
    outline: none;
    box-shadow: 0 0 5px rgba(69, 166, 255, 0.5);
}

input[disabled] {
    background: #f8f8f8;
    color: #6d6d6d;
}

.submit-btn {
    padding: 10px;
    background: #006a4e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.submit-btn:hover {
    background: #008c59;
}

.submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-footer {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.popup-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease;
}

.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-title {
    font-size: 1.5rem;
    color: #2b7a2b;
    margin-bottom: 10px;
}

.success-message {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
}

.close-btn {
    background-color: #2b7a2b;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fail-icon {
    text-align: center;
    margin-bottom: 20px;
}

.fail-title {
    font-size: 1.5rem;
    color: #d7402f;
    margin-bottom: 10px;
}

.fail-message {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
}

.close-btn:hover {
    background-color: #228622;
}

.close-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 122, 43, 0.5);
}

#dynamic_logo {
    max-width: 100%; /* Ensure the logo does not overflow */
    height: auto; /* Maintain aspect ratio */
}

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.collapsible-container {
    margin-top: 20px;
}

.collapsible-header {
   font-weight: bold;
   background-color: #f1f1f1;
   padding: 10px;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

.collapsible-header:hover {
   background-color: #e5e5e5;
}

.collapsible-content {
   background-color: #ffffff;
   border: 1px solid #ccc;
   border-radius: 5px;
   padding: 10px;
   margin-top: 5px;
   animation: slideIn 0.3s ease;
}

.arrow-icon {
   display: inline-block;
   font-size: 16px;
   transition: transform 0.3s ease-in-out;
   font-family: Arial, sans-serif;
}

.arrow-icon.expanded {
   transform: rotate(90deg);
}

.logo-container {
   display: flex;
   justify-content: center;
   margin-top: 20px;
}

.instruction-logo {
   max-width: 100%;
   height: auto;
   max-height: 200px;
   width: auto;
}

@keyframes slideIn {
   from {
       opacity: 0;
       transform: translateY(-10px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

.form-header img#dynamic_logo {
    margin: 0;
    max-width: 120px;
    display: block;
    margin-bottom: 5px;
}

.form-header h3 {
    margin: 5px 0;
    font-size: 16px;
}