﻿* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #f5f1e7;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

/* Main page */
.page {
    width: 100%;
    max-width: 1050px;
    margin: 28px auto 0;
    padding: 0 28px 30px;
}

/* =========================
   SALON TITLE
========================= */

.salon-name {
    width: 82%;
    margin: 0 auto 23px;
    padding: 16px 12px 15px;
    background: #e00000;
    color: #fff;
    text-align: center;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.05;
    white-space: nowrap;
}

/* =========================
   GREEN PROMOTION BAR
========================= */

.promo-bar {
    width: 96%;
    margin: 0 auto 27px;
    background: #003900;
    color: #ffff00;
    padding: 7px 8px 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

/* =========================
   REGISTER SECTION
========================= */

.register-section {
    display: grid;
    grid-template-columns: 280px 250px 300px;
    justify-content: center;
    align-items: end;
    column-gap: 22px;
    margin-bottom: 35px;
}

.form-block {
    text-align: center;
}

.form-label {
    display: block;
    height: 28px;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    white-space: nowrap;
}

/* Phone input */

.phone-input {
    width: 275px;
    height: 61px;
    padding: 5px 10px;
    border: 2px solid #888;
    border-radius: 12px;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    color: #111;
    text-align: center;
    outline: none;
}

    .phone-input:focus {
        border-color: #555;
    }

/* Buttons */

.action-button {
    width: 225px;
    height: 60px;
    border: 0;
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffff00;
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
    text-shadow: 1px 1px 1px rgba(0,0,0,.15);
}

.register-button {
    background: #6ca500;
}

.remove-button {
    width: 300px;
    background: #f05a00;
}

.action-button:hover {
    filter: brightness(1.08);
}

.action-button:active {
    transform: translateY(1px);
}

/* =========================
   RULES BOX
========================= */

.rules-box {
    width: 94%;
    margin: 0 auto;
    border: 1px solid #555;
    padding: 21px 17px 20px;
    background: rgba(255,255,255,.08);
}

.rules-title {
    margin: 0 0 27px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
}

/* Individual rules */

.rule {
    margin: 0 0 25px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
}

    .rule:last-child {
        margin-bottom: 0;
    }

.rule-main {
    font-weight: 700;
}

.rule-sub {
    margin-top: 2px;
    margin-left: 24px;
    font-weight: 400;
}

/* =========================
   BACK BUTTON
========================= */

.back-container {
    text-align: center;
    margin-top: 27px;
}

.back-button {
    width: 205px;
    height: 60px;
    border: 0;
    border-radius: 9px;
    background: #dfcccc;
    color: #ffff00;
    font-size: 27px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 3px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.4);
}

    .back-button:hover {
        filter: brightness(1.05);
    }
/* =========================
   APPOINTMENT SECTION
========================= */

.appointment-section {
    width: 100%;
}


/* Header */

.appointment-header {
    display: grid;
    grid-template-columns: 495px 200px 140px;
    padding-bottom: 4px;
    border-bottom: 3px solid #111;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}


/* Appointment rows */

.appointment-row {
    display: grid;
    grid-template-columns: 495px 200px 140px;
    align-items: center;
    min-height: 65px;
    font-size: 27px;
}


/* Service */

.service-name {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}


    /* Checkbox */

    .service-name input[type="checkbox"] {
        appearance: none;
        width: 40px;
        height: 40px;
        margin: 0;
        border: 2px solid #aaa;
        background: #f7f1df;
        cursor: pointer;
    }


        .service-name input[type="checkbox"]:checked {
            position: relative;
        }


            .service-name input[type="checkbox"]:checked::after {
                content: "✓";
                position: absolute;
                left: 7px;
                top: 1px;
                font-size: 30px;
                font-weight: bold;
                color: #333;
            }
/* =========================
   CANCEL BUTTON
========================= */

.cancel-action {
    margin-top: 13px;
}


.cancel-button {
    width: 255px;
    height: 60px;
    background: #f05a00;
}
/* =========================
   DIVIDER
========================= */

.content-divider {
    width: 100%;
    height: 10px;
    margin-bottom: 30px;
    background: #002d62;
    border-radius: 1px;
}
.date-time span{
    display:none;
}

/* =========================
           TABLET
        ========================= */
@media (max-width: 900px) {
    .page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .salon-name {
        width: 95%;
        font-size: 25px;
    }

    .promo-bar {
        width: 100%;
        font-size: 16px;
    }

    .register-section {
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
    }

    .form-block:first-child {
        grid-column: 1 / -1;
    }

    .remove-button {
        width: 225px;
    }

    .cancel-title {
        white-space: normal;
        font-size: 18px;
    }

    .cancel-form {
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
        margin-bottom: 50px;
    }

    .cancel-input-group {
        grid-column: 1 / -1;
    }

    .content-divider {
        margin-bottom: 30px;
    }

    .appointment-section {
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
    }

    .appointment-header,
    .appointment-row {
        margin-left: auto;
        margin-right: auto;
    }

    .back-container {
        margin-top: 100px;
    }
}

/* =========================
           MOBILE
        ========================= */

@media (max-width: 600px) {

    .page {
        margin-top: 15px;
        padding: 0 10px 25px;
    }

    .salon-name {
        width: 100%;
        font-size: 17px;
        padding: 12px 5px;
        white-space: normal;
    }

    .promo-bar {
        width: 100%;
        font-size: 13px;
        white-space: normal;
        padding: 8px;
    }

    .register-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .form-block,
    .phone-input,
    .action-button,
    .remove-button {
        width: 100%;
        max-width: 330px;
    }

    .form-label {
        height: auto;
        line-height: 1.3;
        white-space: normal;
        margin-bottom: 8px;
    }

    .rules-box {
        width: 100%;
        padding: 18px 14px;
    }

    .rules-title {
        font-size: 24px;
    }

    .rule {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .rule-sub {
        margin-left: 15px;
    }

    .back-button {
        width: 200px;
    }

    .cancel-form {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .cancel-input-group,
    .cancel-button-group {
        width: 100%;
        max-width: 330px;
    }

        .cancel-input-group .form-label {
            text-align: center;
            padding-left: 0;
        }

    .phone-input,
    .submit-button,
    .top-back-button {
        width: 100%;
    }

    .content-divider {
        height: 7px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .appointment-section {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .appointment-header,
    .appointment-row {
        width: 580px;
    }

    .appointment-header {
        font-size: 24px;
    }

    .appointment-row {
        font-size: 22px;
        display:block;
    }
    .date-time{
        text-align:left;
    }
    .date-time span {
        display: inline;
        font-weight:bold
    }
    .date-time-header {
        display: none;
    }
    .back-container {
        margin-top: 80px;
    }
}