.clw-form-wrapper,
.clw-form-wrapper * {
    box-sizing: border-box;
    font-family: inherit;
}

.clw-form-wrapper {
    width: 100%;
    max-width: var(--clw-form-max-width, 100%);
    margin: clamp(1.5rem, 5vw, 3rem) auto;
    background: #ffffff;
    border: 1px solid rgba(6, 59, 53, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 36px rgba(6, 59, 53, 0.12);
    padding: clamp(1.75rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3.25rem);
}

.clw-form {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    position: relative;
}

.clw-form .form-control {
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.clw-service-highlight {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--clw-color-primary, #063b35);
    background: rgba(6, 59, 53, 0.08);
    border: 1px solid rgba(6, 59, 53, 0.12);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin: 0;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 12px 24px rgba(6, 59, 53, 0.08);
}

.clw-loading-indicator {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
    pointer-events: none;
    text-align: center;
    padding: 1.5rem;
}

.clw-loading-indicator[hidden] {
    display: none !important;
}

.clw-loading-indicator__spinner {
    width: 4rem;
    height: 4rem;
    display: inline-block;
    border: 0.45rem solid rgba(6, 59, 53, 0.15);
    border-top-color: var(--clw-color-primary, #063b35);
    border-radius: 50%;
    animation: clw-spin 0.85s linear infinite;
}

.clw-loading-indicator__text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--clw-color-primary, #063b35);
}

.clw-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clw-form.is-loading .clw-loading-indicator {
    display: flex;
}

.clw-progress {
    position: relative;
}

.clw-progress__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    align-items: center;
}

.clw-progress__item {
    position: relative;
    display: flex;
    justify-content: center;
}

.clw-progress__item:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 18px;
    left: -50%;
    width: 100%;
    height: 4px;
    background: #e4e7e6;
    z-index: 0;
}

.clw-progress__item.is-active::before,
.clw-progress__item.is-complete::before {
    background: var(--clw-color-primary, #063b35);
}

.clw-progress__number {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(6, 59, 53, 0.18);
    background: #f2f4f4;
    color: rgba(47, 57, 66, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.2s ease;
}

.clw-progress__item.is-active .clw-progress__number,
.clw-progress__item.is-complete .clw-progress__number {
    background: var(--clw-color-primary, #063b35);
    border-color: var(--clw-color-primary, #063b35);
    color: #ffffff;
    box-shadow: 0 0 0 6px rgba(6, 59, 53, 0.16);
}

.clw-steps {
    position: relative;
    overflow: hidden;
}

.clw-step {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    position: absolute;
    inset: 0;
}

.clw-step.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.clw-step__header {
    margin-bottom: 1.75rem;
}

.clw-step__header--center {
    text-align: center;
}

.clw-step__description--highlight {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(47, 57, 66, 0.78);
    text-align: center;
}

@media (min-width: 768px) {
    .clw-step__header--md-left {
        text-align: left;
    }

    .clw-step__description--highlight {
        text-align: left;
    }
}

.clw-step__title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--clw-color-primary, #063b35);
}

.clw-step__description {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: rgba(47, 57, 66, 0.75);
}

.clw-step--summary .clw-step__description {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.clw-grid {
    display: grid;
    gap: 1.25rem;
}

.clw-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.clw-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(47, 57, 66, 0.85);
}

.clw-field input,
.clw-field select,
.clw-field textarea {
    width: 100%;
    border: 1px solid rgba(6, 59, 53, 0.18);
    border-radius: 0;
    background: #f4f6f5;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    color: #2f3942;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.clw-field textarea {
    resize: vertical;
    min-height: 140px;
}

.clw-field input:focus,
.clw-field select:focus,
.clw-field textarea:focus {
    border-color: var(--clw-color-primary, #063b35);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(6, 59, 53, 0.12);
}

.clw-field--error input,
.clw-field--error select,
.clw-field--error textarea {
    border-color: var(--clw-color-accent, #bb6c3c);
    box-shadow: 0 0 0 3px rgba(187, 108, 60, 0.18);
}

.clw-field input::placeholder,
.clw-field textarea::placeholder {
    color: rgba(47, 57, 66, 0.45);
}

.clw-services__group {
    padding: 0;
}

.clw-services__title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--clw-color-primary, #063b35);
    margin: 0 0 0.85rem;
}

.clw-services__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
}

.clw-service-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.clw-service-check__input {
    width: 18px;
    height: 18px;
    border-radius: 0;
    border: 1px solid rgba(6, 59, 53, 0.3);
    margin: 0;
    appearance: none;
    background: #ffffff;
    position: relative;
    cursor: pointer;
}

.clw-service-check__input:checked {
    background: var(--clw-color-primary, #063b35);
    border-color: var(--clw-color-primary, #063b35);
}

.clw-service-check__input:checked::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid #ffffff;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

.clw-service-check__input:focus {
    box-shadow: 0 0 0 3px rgba(6, 59, 53, 0.18);
}

.clw-service-check__label {
    font-size: 0.95rem;
    color: rgba(47, 57, 66, 0.85);
    font-weight: 500;
}

.clw-summary {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 520px;
    width: 100%;
}

.clw-summary__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    border: 1px solid rgba(6, 59, 53, 0.12);
    border-radius: 12px;
    background: rgba(221, 227, 226, 0.45);
    padding: 1.1rem 1.5rem;
}

.clw-summary__item + .clw-summary__item {
    margin-top: 1rem;
}

.clw-summary__label {
    font-weight: 600;
    color: rgba(47, 57, 66, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.clw-summary__value {
    font-weight: 700;
    color: var(--clw-color-primary, #063b35);
    font-size: 1.05rem;
}

.clw-summary__cta {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    display: inline-flex;
    justify-content: center;
    padding: 0.95rem 2.6rem;
    border-radius: 6px;
    font-weight: 700;
    color: #ffffff;
    background: var(--clw-color-primary, #063b35);
    border: 1px solid var(--clw-color-primary, #063b35);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clw-summary__cta:hover,
.clw-summary__cta:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(6, 59, 53, 0.25);
    background: #045148;
    border-color: #045148;
}

.clw-grid--schedule {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.clw-field__hint {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(47, 57, 66, 0.6);
}

.clw-schedule {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.clw-time-picker {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(6, 59, 53, 0.18);
    background: #f8fbfa;
    color: rgba(6, 59, 53, 0.85);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.clw-time-picker optgroup {
    color: rgba(6, 59, 53, 0.8);
    font-weight: 700;
    background: rgba(6, 59, 53, 0.05);
}

.clw-time-picker optgroup:not(:first-of-type) {
    border-top: 1px solid rgba(6, 59, 53, 0.12);
}

.clw-time-picker optgroup option {
    font-weight: 600;
    padding-left: 0.5rem;
}

.clw-time-picker:focus {
    outline: none;
    border-color: var(--clw-color-primary, #063b35);
    box-shadow: 0 0 0 3px rgba(6, 59, 53, 0.2);
    background: #ffffff;
}

.clw-time-picker:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.clw-time-picker option[disabled] {
    color: rgba(47, 57, 66, 0.55);
}

.clw-time-picker option[data-status="reserved"] {
    color: rgba(187, 108, 60, 0.85);
}

.clw-time-picker option[data-status="past"] {
    color: rgba(47, 57, 66, 0.55);
}

.clw-time-picker option[data-status="offline"] {
    color: rgba(6, 59, 53, 0.45);
    font-style: italic;
}

.clw-time-picker__message {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: rgba(47, 57, 66, 0.7);
}

.clw-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.clw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.clw-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clw-btn:hover,
.clw-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 20px rgba(6, 59, 53, 0.2);
    outline: none;
}

.clw-btn-prev {
    background: transparent;
    color: var(--clw-color-accent, #bb6c3c);
    border-color: rgba(187, 108, 60, 0.35);
}

.clw-btn-prev:hover,
.clw-btn-prev:focus {
    background: rgba(187, 108, 60, 0.1);
    border-color: var(--clw-color-accent, #bb6c3c);
}

.clw-btn-next,
.clw-btn--return {
    background: var(--clw-color-primary, #063b35);
    color: #ffffff;
    border-color: var(--clw-color-primary, #063b35);
}

.clw-btn-next:hover,
.clw-btn-next:focus,
.clw-btn--return:hover,
.clw-btn--return:focus {
    background: #045148;
    border-color: #045148;
}

.clw-response {
    display: none;
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
}

.clw-response--error {
    display: block;
    background: rgba(187, 108, 60, 0.16);
    color: #7a3e1e;
}

.clw-response--success {
    display: block;
    background: rgba(6, 59, 53, 0.16);
    color: var(--clw-color-primary, #063b35);
}

.clw-field--honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.clw-form.is-loading {
    opacity: 0.65;
    pointer-events: none;
}

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

@media (max-width: 960px) {
    .clw-form-wrapper {
        margin: 2rem 1.5rem;
        padding: 2.5rem 2rem;
    }

    .clw-form {
        padding: 0;
    }

    .clw-services__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .clw-form-wrapper {
        margin: 1.5rem 1rem;
        padding: 2rem 1.25rem;
    }

    .clw-form {
        gap: 1.75rem;
    }

    .clw-progress__list {
        margin-bottom: 1.5rem;
    }

    .clw-step__title {
        font-size: 1.55rem;
    }

    .clw-navigation {
        flex-direction: column;
    }

    .clw-btn {
        width: 100%;
    }
}
