/* ===== Cooking Class by Sasa ===== */

.cooking-class-page {
    position: relative;
    background: #ee1b24;
    overflow: hidden;
    min-height: 100vh;
    padding: 100px 0 2rem;
}

.cc-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
}

/* Decorative white swoosh arc on the left */
.cc-swoosh {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: auto;
    height: 95%;
    z-index: 1;
}

.cc-swoosh img {
    width: 100%;
    height: 100%;
}

/* ===== Left column ===== */
.cc-left {
    position: relative;
}

.cc-logo {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 28px;
}

.cc-logo img {
    height: 130px;
}

.cc-left__desc {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    max-width: 380px;
    font-family: jkt;
}

/* ===== Right column / form ===== */
.cc-right {
    flex: 1 1 460px;
    max-width: 500px;
    width: 100%;
    padding-top: 40px;
}

.cc-form--wide {
    max-width: 600px;
}

.cc-form__title {
    color: #ffffff;
    font-family: zlb;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 24px;
}

.cc-hai {
    color: #ffffff;
    font-family: zlb;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 12px;
}

.cc-subtitle {
    color: #ffffff;
    font-family: jkt;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cc-field {
    margin-bottom: 18px;
}

.cc-field label {
    display: block;
    color: #ffffff;
    font-family: jkt;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
}

.cc-field input,
.cc-member-row__name input,
.cc-phone-group input {
    width: 100%;
    background: #7a0c13;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    padding: 14px 16px;
    font-size: 14px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    outline: none;
    transition: box-shadow 0.15s ease;
}

.cc-field input::placeholder,
.cc-member-row__name input::placeholder,
.cc-phone-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cc-field input:focus,
.cc-member-row__name input:focus,
.cc-phone-group input:focus {
    box-shadow: none;
}

.cc-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #ffd9d9;
    font-family: "Poppins", "Segoe UI", sans-serif;
}

.cc-error--block {
    margin-bottom: 14px;
    margin-top: -6px;
}

.cc-submit {
    width: 100%;
    background: #ffffff;
    color: #ee1b24;
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.cc-submit:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.cc-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cc-submit:focus-visible,
.cc-field input:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ===== Step 2: Member list ===== */
.cc-member-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #ffffff;
    font-family: jkt;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 10px;
    padding-right: 6px;
}

.cc-member-head span:first-child {
    flex: 1 1 55%;
}

.cc-member-head span:last-child {
    flex: 1 1 40%;
}

.cc-member-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 6px;
    margin-bottom: 16px;
}

.cc-member-list::-webkit-scrollbar {
    width: 4px;
}

.cc-member-list::-webkit-scrollbar-track {
    background: transparent;
}

.cc-member-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
}

.cc-member-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.cc-member-row__name {
    flex: 1 1 55%;
}

.cc-member-row__phone {
    flex: 1 1 40%;
}

.cc-phone-group {
    display: flex;
    align-items: stretch;
    background: #7a0c13;
    border-radius: 6px;
    overflow: hidden;
}

.cc-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #ffffff;
    color: #ee1b24;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    margin: 4px;
}

.cc-phone-group input {
    border-radius: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
}

.cc-add-member {
    display: block;
    margin-left: auto;
    margin-bottom: 18px;
    background: #ffffff;
    color: #ee1b24;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.cc-add-member:hover {
    transform: translateY(-1px);
}

.cc-note {
    color: #ffffff;
    font-family: jkt;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* ===== Step 3: Terms & agreement ===== */
.cc-terms {
    color: #ffffff;
    font-family: jkt;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cc-terms-link {
    display: inline-block;
    color: #ffffff;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 14px;
    text-decoration: underline;
    margin-bottom: 20px;
}

.cc-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 6px;
}

.cc-checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-checkbox-box {
    width: 20px;
    height: 20px;
    background: #7a0c13;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}

.cc-checkbox-row input[type="checkbox"]:checked + .cc-checkbox-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cc-checkbox-row input[type="checkbox"]:focus-visible + .cc-checkbox-box {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.cc-checkbox-label {
    color: #ffffff;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .cc-container {
        flex-direction: column;
    }

    .cc-right {
        max-width: 100%;
        padding-top: 0;
    }

    .cc-form--wide {
        max-width: 100%;
    }

    .cc-swoosh {
        display: none;
    }

    .cc-member-row {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .cc-swoosh {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-submit,
    .cc-add-member {
        transition: none;
    }
}
