/* General styling for the form */
#quiz-form br {
    display: none;
}
#quiz-form {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a1a; /* Dark background */
    border-radius: 8px; /* Rounded corners */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    color: #ffffff; /* White text */
}

/* Headings inside the form */
#quiz-form h3 {
    color: #fbc02d; /* Yellow color for section titles */
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: bold;
}

#quiz-form h1 {
    text-align: center;
    color: #fbc02d; /* Yellow color for main title */
    font-size: 24px;
    margin-bottom: 20px;
}

/* Input fields styling (text, email, tel, url, select, textarea) */
#quiz-form input[type="text"],
#quiz-form input[type="email"],
#quiz-form input[type="tel"],
#quiz-form input[type="url"],
#quiz-form select,
#quiz-form textarea {
    width: 100%; /* Full width */
    padding: 10px; /* Internal spacing */
    margin-top: 00px; /* Space above */
    border: 1px solid #333; /* Dark borders */
    border-radius: 5px; /* Rounded corners */
    background: #222; /* Dark input field background */
    color: #fff; /* White text inside inputs */
    font-size: 16px;
    box-sizing: border-box; /* Include padding in width */
}

/* Input fields on focus */
#quiz-form input[type="text"]:focus,
#quiz-form input[type="email"]:focus,
#quiz-form input[type="tel"]:focus,
#quiz-form input[type="url"]:focus,
#quiz-form select:focus,
#quiz-form textarea:focus {
    outline: none;
    border: 1px solid #fbc02d; /* Yellow border on focus */
}

/* Submit button styling */
#quiz-form button[type="submit"] {
    display: block;
    width: 100%; /* Full width button */
    padding: 15px; /* Internal padding */
    background: #fbc02d; /* Yellow background */
    color: #000; /* Black text */
    border: none;
    border-radius: 25px; /* Fully rounded corners */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase; /* Uppercase text */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

#quiz-form button[type="submit"]:hover {
    background: #ffa000; /* Darker yellow on hover */
}

/* Checkboxes and radio buttons */
#quiz-form input[type="checkbox"],
#quiz-form input[type="radio"] {
    accent-color: #fbc02d; /* Yellow checkmark or radio fill */
    width: 18px; /* Size adjustment */
    height: 18px;
}

/* Labels for input fields */
#quiz-form label {
    font-size: 14px;
    color: #ddd; /* Light gray text for labels */
    margin-bottom: 5px;
    display: block;
}

/* Spacing between sections */
#quiz-form .form-group {
    margin-bottom: 40px;
}
#quiz-form .form-group{
	margin-top: 60px;
}
#quiz-form .form-group:first-of-type{
	margin-top: 0;
}
/* Paragraph text (e.g., descriptions) */
#quiz-form p {
    color: #aaa; /* Light gray for additional text */
}

/* Unified column layout */
#quiz-form .form-column {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    gap: 10px; /* Space between options */
    margin-bottom: 40px;
}
#quiz-form .form-column.no-margin{
	margin-bottom: 0;
}
#quiz-form .form-column.couples-registration p{
	margin: 0;
}
/* Unified row layout */
#quiz-form .form-row {
    display: flex;
    gap: 20px; /* Spacing between columns */
    margin-bottom: 40px;
}

#quiz-form .form-field.half-width {
    flex: 1; /* Equal width for fields in a row */
}

#quiz-form .form-field.third-width {
    flex: 1; /* Equal width for date fields or similar */
}

/* "Other" input styling */
#quiz-form .other-option .other-input {
    display: none; /* Initially hidden */
    margin-top: 10px;
    margin-left: 20px; /* Indent for better alignment */
    width: calc(100% - 20px); /* Adjust width */
}

/* Show "Other" input when corresponding radio is checked */
#quiz-form .radio-option input[type="radio"]:checked ~ .other-input {
    display: inline-block;
}

/* Unified list styling */
#quiz-form ul {
    padding-left: 20px; /* Indent for list */
    margin-bottom: 15px;
    color: #aaa; /* Light gray text */
    font-size: 14px; /* Smaller text for instructions */
}

/* Radio and checkbox alignment */
#quiz-form .radio-option {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between radio/checkbox and label */
}


#quiz-form .validation-error {
    border: 2px solid red;
    padding: 10px;
    background-color: #ffe6e6;
}
#quiz-form .validation-error label{
	color: #1a1a1a;
}
.form-element + .form-element{
	margin-top: 25px;
}

#quiz-form .personal-info-group input{
	margin-top: 0;
}
#quiz-form .form-column.couples-registration{
	margin-bottom: 0;
}

#quiz-form .form-column.couples-registration + h3{
	margin-top: 40px;	
}
#quiz-form .profession-group .form-column{
	margin-bottom: 0;
}
#quiz-form .profession-group > div + div{
	margin-top: 10px;
}
#quiz-form p{
	margin-bottom: 0;
}
#quiz-form .social-head{
	margin-top: 40px;
}
#quiz-form .form-group.agreements-group .form-field.form-column .radio-option{
    margin-top: 15px;
 }
#quiz-form .text{
    margin-bottom: 15px;
 }
#custom-upload-btn {
    background-color: #f0ad4e;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#custom-upload-btn:hover {
    background-color: #ec971f;
}

#photo-preview img {
    max-width: 200px;
    max-height: 200px;
    display: block;
}

#photo-preview .remove-photo {
    position: absolute;
    top: -7px;
    right: -7px;
    background: #f0ad4e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 28px;
    text-align: center;
    line-height: 0px;
    cursor: pointer;
    font-size: 14px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
} 
.upload-block{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#photo-preview{
    display: inline-block;
}
#form-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#form-popup div {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    text-align: center;
}

#form-popup button {
    background-color: #f0ad4e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#form-popup.active{
    display: flex!important;
    justify-content: center!important;
    align-items: center!important;
}
#form-popup button:hover {
    background-color: #ec971f;
}

@media(max-width: 769px){
    #quiz-form .form-row[data-group="date_of_birth"],
    #quiz-form .form-row.contacts{
        display: flex;
        flex-direction: column;
    }
     #quiz-form .form-group.agreements-group .form-field.form-column .radio-option{
        display: block;
     }
    #quiz-form  label{
        font-size: 16px;
        line-height: 26px;        
    }
    #quiz-form .radio-option{
        display: inline-block;
    }
}