#custom-multistep-form {
    background: #fff;
    border-radius: 18px;
    max-width: 560px;
    margin: 30px auto;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
    padding: 36px 28px 28px 28px;
    font-family: 'Open Sans', 'Arial', sans-serif;
    position: relative;
    z-index: 999;
}

#custom-multistep-form h2 {
    color: var(--e-global-color-primary);
    text-align: center;
    font-size: 37px;
    line-height: 43px;
    font-weight: 400;
    margin-bottom: 18px;
}

.step-indicator {
    text-align: center;
    font-size: 1.08rem;
    margin-bottom: 18px;
    color: #6d6e6e;
}

.step-indicator .active {
    color: #799371;
    font-weight: 600;
}

.step-indicator .active .number {
    background: #84c440;
    width: 28px;
    height: 28px;
    display: inline-block;
    border-radius: 50%;
    color: #fff;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 18px !important;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea, .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd !important;
    font-size: 1rem;
    outline: none;
    transition: border .2s;
    height: 42px;
	min-height: 42px;
    color: #000;
	letter-spacing: normal;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #799371 !important;
}

textarea {
    min-height: 64px !important;
}

.toggle-group {
    display: flex;
    gap: 20px;
}

.toggle-group label {
    font-weight: 500;
    cursor: pointer;
}

#projectClientForm .next-btn, #projectClientForm .submit-btn, #projectClientForm .back-btn {
    background: #799371;
    color: #fff;
    font-weight: 600;
    padding: 12px 36px;
    border-radius: 10px;
    border: none;
    font-size: 1.11rem;
    cursor: pointer;
    margin-top: 14px;
    transition: background .18s;
    min-height: 48px;
}

#projectClientForm .next-btn:hover, #projectClientForm .submit-btn:hover {
    background: #74bc3d;
}

#projectClientForm .back-btn {
    background: #eee;
    color: #444;
    margin-right: 8px;
    border: 1px solid #bbb;
}

#projectClientForm .back-btn:hover {
    background: #ddd;
}

#form-message {
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    color: #799371;
}

#form-message.error {
    color: #e11d48;
}

#form-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.form-loading-spinner {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #0ea5e9;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
}

.step1-buttons {
    text-align: right;
}

.toggle-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f7;
    margin-top: 0;
    margin-bottom: 16px;
    gap: 0;
}

.toggle-group label {
    flex: 1 1 0;
    text-align: center;
    padding: 0.65em 0;
    margin: 0;
    font-weight: 600;
    color: #3a3a3a;
    background: #f1f3f7;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
    position: relative;
    z-index: 1;
    user-select: none;
}

.toggle-group input[type="radio"] {
    display: none;
}

/* Style for checked input's label (Yes = green, No = gray) */
.toggle-group input[type="radio"]:checked + label {
    background: #799371; /* Green for selected */
    color: #fff;
}

/* Optional: hover effect */
.toggle-group label:hover {
    background: #e5f7d2;
}

/* Fix spacing and rounded corners for first/last child */
.toggle-group label:first-of-type {
    border-radius: 8px 0 0 8px;
}

.toggle-group label:last-of-type {
    border-radius: 0 8px 8px 0;
}

.submit-form-buttons {
    justify-content: flex-end;
}

.select2-container--default .select2-selection--single {
    height: 42px;
	min-height: 42px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: -4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-container > .selection {
	width: 100% !important;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 240px;
    margin: 30px auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    position: relative;
}

.step .number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: 600;
    background: #e5e7eb;
    color: #3a3a3a;
    font-size: 1.25em;
    margin-bottom: 7px;
    transition: background 0.2s, color 0.2s;
}

.step.active .number {
    background: #799371;
    color: #fff;
    box-shadow: 0 0 0 4px #799371;
}

.step .label {
    font-size: 1em;
    color: #3a3a3a;
    font-weight: 500;
}

.step-line {
    flex: 1 1 0;
    height: 4px;
    background: #84c440;
    margin: 0 14px;
    border-radius: 2px;
    position: relative;
    top: -15px; /* vertical align with circles */
}

.step.active + .step-line {
    background: linear-gradient(90deg, #799371 60%, #e5e7eb 100%);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 700px) {
    #custom-multistep-form {
        max-width: 98vw;
        padding: 16px 5vw;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}