#custom-form {
    color: #847564;
    margin: auto;
    font-family: "Manrope", Sans-serif;
    font-size: 5vw;
}

@media only screen and (min-width: 768px) {
    #custom-form {
        font-size: clamp(18px,0.8vw,20.5px) !important;
    }
}

/* Ensure consistent styling for form sections */
.form-section {
    margin-bottom: 15px;
    width: 100%;
}

.form-section label:not(.radio-group label) {
    margin-bottom: 2vw;
    display: block; /* Ensures margin applies properly */
}

@media only screen and (min-width: 768px) {
    .form-section label:not(.radio-group label) {
        margin-bottom: 0.2vw;
    }
}

#calendar.form-section {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically (if needed) */
}
/* Alternative using grid (if flexbox doesn't work perfectly) */
#calendar.form-section {
    display: grid;
    place-items: center; /* Centers both horizontally and vertically */
}

.flatpickr-calendar {
    font-size: initial !important;
}

/* Keep first two sections in a row */
@media (min-width: 768px) {
    .form-row {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }

    .form-row .form-section {
        width: 50%;
    }
}

/* Make double and triple field sections display correctly */
.double-fields,
.triple-fields {
    display: flex;
    gap: 10px;
}

.double-fields .form-section,
.triple-fields .form-section {
    flex: 1;
}

#custom-form .form-section.divider {
    padding-top: 0.5vw;
}

/* Ensure dropdown has full width */
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* Align "Ricevere il preventivo" options in one line */
.inline-radio-group {
    display: flex;
    gap: 20px;
}

.inline-radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Align checkbox and label on the same row */
.consent-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Full-width submit button */
#custom-form button {
    width: 100%;
    font-size: 0.8vw;
    background-color: #28D8EA;
    color: #FFF;
    border: none;
    padding: 10px;
    cursor: pointer;
}

@media (max-width: 767px) {
    #custom-form button {
        font-size: 5vw;
    }
    #custom-form .margin-bottom {
        margin-bottom: 5vw;
	}
}

.image-radio-group {
	text-align: center;
}
.image-radio-group label {
    display: inline-block !important;
    margin: 10px;
    cursor: pointer;
}
.image-radio-group input[type="radio"] {
    display: none;
}
.image-radio-group img {
    border: 3px solid transparent !important;
    border-radius: 8px !important;
    width: 10vw;
	min-width: 160px;
    transition: 0.3s;
}
.image-radio-group input[type="radio"]:checked + img {
    border-color: #0073aa !important;;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}


@media (max-width: 767px) {
	.image-radio-group img {
		width: 35vw;
	}
}