#atelier .block2>.schedule {
    background: white;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 285px;
    height: 230px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -30px;
    left: 20px;
}

#atelier .block2>.schedule>h2 {
    text-align: center;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    margin-top: 7px;
    margin-bottom: 35px;
}

@media only screen and (min-width: 601px) {
    #atelier .block2.has-web-campaigns>.schedule,
    #atelier .block2.has-web-campaigns>.schedule-form,
    #atelier .block2.has-web-campaigns>.schedule-result {
        visibility: hidden !important;
        pointer-events: none;
    }
}

.schedule .day {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 7px;
}

.schedule .day-letter {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.schedule .day label.disabled {
    cursor: default;
}

.schedule .day label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

.schedule .day input[type="radio"] {
    width: 23px;
    height: 23px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #e8e8e8;
    border: none;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.schedule .day input[type="radio"]:hover {
    background-color: #ddd;
    transform: scale(1.25);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.schedule .day input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
}

.schedule .day input[type="radio"]:disabled {
    cursor: default;
}

.schedule .day input[type="radio"]:disabled:hover {
    background: #e8e8e8;
    transform: none;
}

.schedule .day input[type="radio"]:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: red;
    border-radius: 50%;
}

.schedule-button {
    background: #eee;
    border: none;
    border-radius: 25px;
    padding: 14px ;
    margin-top: 20px;
    font-size: 14px;
    color: #b2b2b2;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    position: absolute;
    bottom: 42px;
    width: 140px;
    right: 40px;
}

.schedule-button:disabled {
    background: #e8e8e8;
    color: #999;
    cursor: default;
}

.schedule-button.enabled {
    background: #363943;
    color: white;
    cursor: pointer;
}

.schedule-button.enabled:hover {
    background: #007bff;
}

.more-button {
    background: #363943;
    border: none;
    border-radius: 25px;
    padding: 14px;
    margin-top: 20px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    position: absolute;
    bottom: 42px;
    width: 140px;
    left: 40px;
}

.more-button:hover {
    background: #007bff;
    color: white;
}

#atelier .block2>.schedule-form {
    background: white;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 285px;
    height: 230px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -30px;
    left: 20px;
}

.back-arrow {
    position: absolute;
    top: 35px;
    left: 40px;
    width: 15px;
    height: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-arrow:hover {
    color: #007bff;
}

.back-arrow::before {
    content: 'prev';
    font-family: 'swiper-icons';
}

#atelier .block2>.schedule-form h2 {
    text-align: center;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    margin-top: 7px;
    margin-bottom: 35px;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.registration-form input,
.registration-form textarea {
    background: #f5f5f5;
    border: none;
    border-radius: 5px;
    padding: 12px 16px;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    outline: none;
    transition: background-color 0.3s ease;
    height: 30px;
    box-sizing: border-box;
    width: auto;
}

.registration-form input:focus,
.registration-form textarea:focus {
    background: #ebebeb;
}

.registration-form input::placeholder,
.registration-form textarea::placeholder {
    color: #000000;
    font-size: 12px;
}

.registration-form textarea {
    resize: none;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: pre-wrap;
    text-overflow: clip;
    line-height: 1.2;
    padding-top: 6px;
    /* Hide scrollbar for webkit browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.registration-form textarea::-webkit-scrollbar {
    display: none; /* Webkit browsers */
}

#scheduleForm .submit-button {
    background: #363943;
    border: none;
    border-radius: 25px;
    padding: 14px 24px;
    margin-top: 10px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    position: absolute;
    bottom: 25px;
    left: 40px;
    right: 40px;
}

#scheduleForm .submit-button:hover {
    background: #007bff;
}

/* Error states for form validation */
.registration-form input.has-error,
.registration-form textarea.has-error {
    background: #ffebee;
    border: 1px solid #f44336;
}

.registration-form input.has-error:focus,
.registration-form textarea.has-error:focus {
    background: #ffcdd2;
}

/* Success message styles */
#atelier .block2>.schedule-result {
    background: white;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 285px;
    height: 230px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -30px;
    left: 20px;
}

#atelier .block2>.schedule-result h2 {
    text-align: center;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    margin-top: 7px;
    margin-bottom: 25px;
}

.schedule-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.schedule-result-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin: 25px 0;
    padding: 0 10px;
}

.schedule-result-button {
    background: #28a745;
    border: none;
    border-radius: 25px;
    padding: 14px 40px;
    font-size: 14px;
    color: white;
    cursor: default;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 25px;
    left: 40px;
    right: 40px;
}

#atelier .block2>.schedule-result.is-error .schedule-result-button {
    background: #dc3545;
    cursor: pointer;
}

#atelier .block2>.schedule-result.is-error .schedule-result-button:hover {
    background: #353944;
}
@media only screen and (max-width: 740px) {
    #atelier .block2 .schedule,
    #atelier .block2 .schedule-form,
    #atelier .block2 .schedule-result {
        position: absolute;
        left: auto;
    }
}

@media only screen and (max-width: 600px) {
    #atelier .block2 {
        padding: 20px;
    }
    
    #atelier .block2 .intro {
        display: none;
    }

    #atelier .block2>.schedule,
    #atelier .block2>.schedule-form,
    #atelier .block2>.schedule-result {
        display: none;
    }
}

@media only screen and (max-width: 420px) {
    #atelier .block2>.schedule,
    #atelier .block2>.schedule-form,
    #atelier .block2>.schedule-result {
        padding: 35px 30px;

    }

    .more-button{
        left: 30px;
    }

    .schedule-button{
        right: 30px;
    }

    #scheduleForm .submit-button,
    #atelier .block2>.schedule-result .schedule-result-button {
        left: 30px;
        right: 30px;
    }

    .back-arrow {
        left: 30px;
    }
}
