body {
    font-family: "Twemoji Country Flags", "Segoe UI", sans-serif;
    margin: 0;
    background: linear-gradient(120deg, #f7f7f7 0%, #f0f2f5 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


.container {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    max-width: 700px;
    width: 100%;
    margin: 2rem;
}


h1 {
    text-align: center;
    font-weight: 700;
    color: #f05a24;
    margin-bottom: 2rem;
    font-size: 2rem;
}


.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: #697084;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: #f6f8fb;
    border: 1.5px solid #dbe7fa;
    border-radius: 32px;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

textarea {
    border-radius: 20px;
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #f05a24;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(240, 90, 36, 0.15);
}

.choice-container {
    display: flex;
    align-items: center;
    background-color: #f6f8fb;
    border: 1.5px solid #dbe7fa;
    border-radius: 32px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.choice-container:hover {
    border-color: #f5b9a5;
    background-color: #fff8f5;
}

.choice-container input {
    width: auto;
    margin-right: 1rem;
    flex-shrink: 0;
}

.choice-container label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    flex-grow: 1;
    width: 100%;
    padding: 0.75rem 0.6rem;
}

.nav-buttons {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e7e7e7;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: #f05a24;
    color: #ffffff;
    border: none;
    border-radius: 32px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

button[type="submit"]:hover {
    background: #d85121;
    box-shadow: 0 4px 15px rgba(240, 90, 36, 0.2);
}

.back-link {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: #697084;
    border: none;
    border-radius: 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.back-link:hover {
    background: #fff0eb;
    color: #f05a24;
}


p.error {
    color: #e53935;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding-left: 1.2rem;
}

.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-input {
    font-family: "Twemoji Country Flags", "Segoe UI", sans-serif;
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;

}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
}

.custom-select-options.show {
    display: block;
}

.custom-select-option {
    padding: 12px;
    cursor: pointer;
}

.custom-select-option:hover {
    background-color: #f3f4f6;
}

.custom-select-option.hidden {
    display: none;
}

.required-indicator {
    color: #dc2626;
    font-weight: bold;
    margin-left: 4px;
}

.country-flag-img {
    width: 24px;      
    height: auto;    
    margin-right: 10px;
    vertical-align: middle;
}


.choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 0.75rem; 
    
    border: none;
    background: none;
    padding: 0;
}

.choices-grid .choice-container {
    margin-bottom: 0; 
}


@media (max-width: 600px) {
    .choices-grid {
        grid-template-columns: 1fr;
    }
}


.welcome-container {
    text-align: center;
    padding: 2rem 1rem;
}

.welcome-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.welcome-container h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.welcome-container p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2.5rem auto; 
}

.start-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #f05a24;
    color: #ffffff;
    border: none;
    border-radius: 32px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.start-button:hover {
    background: #d85121;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 90, 36, 0.25);
}

.terms-agreement-box {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    background-color: #f6f8fb; /* Light background to stand out */
    border: 1.5px solid #dbe7fa;
    border-radius: 32px; /* Matches your other inputs */
    margin-top: 2rem; /* Spacing above the box */
}

.terms-agreement-box input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.terms-agreement-box label {
    margin-bottom: 0;
    color: #697084;
    font-weight: 400;
}

.terms-agreement-box label a {
    color: #f05a24; /* Use your brand color for links */
    text-decoration: underline;
    font-weight: 500;
}

/* Style for when validation fails */
.terms-agreement-box.is-invalid {
    border-color: #e53935; /* Red border on error */
    animation: shake 0.5s;
}

/* Shake animation for visual feedback on error */
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Styles for the Modal */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 750px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease-out;
}

.modal-close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#modal-title {
    color: #f05a24;
    margin-top: 0;
    text-align: center;
}

#modal-body {
    max-height: 65vh;
    overflow-y: auto;
    line-height: 1.7;
}