* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;

    background:
        linear-gradient(
            rgba(255, 248, 246, 0.18),
            rgba(255, 248, 246, 0.18)
        ),
        url("liaseta-salon-bg-v2.png");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: #3a1f2d;
    min-height: 100vh;
}

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 110px 20px 20px;
}

header {
    display: none;
}

.logo {
    font-size: 36px;
    letter-spacing: 10px;
    font-weight: 500;
    color: #4a2135;
}

.subtitle {
    margin-top: 8px;
    color: #b56f75;
    letter-spacing: 2px;
    font-size: 13px;
    text-transform: uppercase;
}

.chat-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    overflow: hidden;

    box-shadow:
        0 20px 50px rgba(70, 30, 50, 0.12);

    border: 1px solid rgba(180, 120, 130, 0.18);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;

    padding: 22px 26px;

    background: linear-gradient(
        135deg,
        #64283f,
        #84384f
    );

    color: white;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.secure-booking {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.secure-booking span {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.secure-booking small {
    font-size: 11px;
    color: #f1d9df;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: Georgia, serif;
    font-style: italic;
    font-size: 26px;

    color: white;
    background: #c77e84;
}

.chat-header h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 2px;
}

.chat-header p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #f1d9df;
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    border-radius: 50%;
    background: #4fc77b;
    vertical-align: middle;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px 24px;

    background: #fffaf9;
    border-bottom: 1px solid #f1dedd;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 18px;
    padding: 16px 12px;

    background: #f8e9e8;
    color: #4a2135;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.quick-action:hover {
    background: #f3dcda;
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 24px;
    color: #7a3048;
    flex-shrink: 0;
}

.quick-action-icon svg {
    width: 24px;
    height: 24px;
    display: block;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-action-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.quick-action-text strong {
    font-size: 14px;
    font-weight: 600;
}

.quick-action-text small {
    font-size: 12px;
    font-weight: 400;
    color: #9b7c86;
}

.quick-action-arrow {
    margin-left: auto;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: #a56b7d;
    opacity: 0.75;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.quick-action:hover .quick-action-arrow {
    transform: translateX(3px);
    opacity: 1;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 25px;

    display: flex;
    flex-direction: column;
    gap: 14px;

    background: rgba(255, 255, 255, 0.94);
}

.chat-messages.booking-mode {
    height: 480px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;

    border-radius: 16px;

    line-height: 1.5;
    font-size: 15px;

    box-shadow: 0 3px 10px rgba(74, 33, 53, 0.06);
}

.message.bot {
    align-self: flex-start;

    background: #f7e5e3;
    color: #4a2135;

    border-bottom-left-radius: 6px;
}

.message.user {
    align-self: flex-end;

    background: #8f5365;
    color: white;

    border-bottom-right-radius: 6px;
}

.services-button {
    align-self: flex-start;

    border: 1px solid #e6c8ce;
    border-radius: 20px;

    padding: 9px 16px;

    background: #fffafa;
    color: #7a3048;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.services-button:hover {
    background: #f8e9e8;
    border-color: #d9aeb7;
    transform: translateY(-1px);
}

.chat-form {
    display: flex;
    gap: 10px;

    padding: 18px;

    border-top:
        1px solid #f1dedd;
}

.chat-form input {
    flex: 1;

    border: 1px solid #ead8dc;
    border-radius: 30px;

    padding: 15px 20px;

    font-size: 15px;
    font-family: inherit;

    color: #4a2135;
    background: #fffafa;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.chat-form input:focus {
    border-color: #bf7a82;
}

.chat-form button {
    border: none;
    border-radius: 30px;

    padding: 0 28px;
    min-width: 96px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: linear-gradient(
        135deg,
        #64283f,
        #84384f
    );

    color: white;

    font-size: 15px;
    font-family: inherit;
    font-weight: 500;

    cursor: pointer;

    box-shadow: 0 6px 16px rgba(100, 40, 63, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.send-icon {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(100, 40, 63, 0.25);
}

.booking-card {
    align-self: stretch;
    width: 100%;
    position: relative;

    padding: 20px;

    background: linear-gradient(
        135deg,
        #fffaf8,
        #fdf1ef
    );

    border: 1px solid #efd8dc;
    border-radius: 22px;

    color: #4a2135;

    box-shadow:
        0 10px 30px rgba(100, 40, 63, 0.10);
}

.booking-card h3 {
    margin: 0 0 20px;

    color: #8f5365;

    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.booking-card h2 {
    margin: 0 0 22px;

    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;

    color: #4a2135;
}

.booking-card p {
    margin: 9px 0;

    font-size: 15px;
    line-height: 1.5;
}

.booking-card strong {
    color: #64283f;
}

.booking-petal {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.petal-one {
    width: 42px;
    top: 62px;
    right: 12px;
    transform: rotate(25deg);
    opacity: 0.85;
}

.petal-two {
    width: 34px;
    top: 150px;
    right: 18px;
    transform: rotate(-18deg);
    opacity: 0.75;
}

.petal-three {
    width: 38px;
    top: 235px;
    right: 10px;
    transform: rotate(38deg);
    opacity: 0.7;
}

.booking-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    margin-bottom: 16px;
}

.booking-confirmed {
    color: #8f5365;

    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.booking-thank-you {
    margin-top: 6px;

    color: #b47a86;

    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.booking-see-you {
    color: #84384f;

    font-family: "Italianno", cursive;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;

    white-space: nowrap;
}

.booking-card-content {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 28px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.booking-photo {
    min-height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #f4dedf;
    color: #b47a86;

    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;

    overflow: hidden;
}

.booking-photo img {
    width: 100%;
    height: 100%;
    min-height: 210px;

    object-fit: cover;
    display: block;
}

.booking-details h2 {
    margin: 0 0 6px;

    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 500;

    color: #4a2135;
}

.booking-tagline {
    margin-bottom: 14px;

    color: #b47a86;

    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.booking-details p {
    margin: 0 0 8px;

    color: #563443;

    font-size: 14px;
    line-height: 1.4;
}

.booking-details strong {
    color: #8f5365;

    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 600px) {

    .page {
        padding: 0;
        max-width: 100%;
    }

    .chat-card {
        border-radius: 0;
    }

    header {
        display: none;
    }

    .logo {
        font-size: 27px;
        letter-spacing: 7px;
    }

    .chat-messages {
        height: 32vh;
    }

    .message {
        max-width: 85%;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .quick-action {
        width: 100%;
    }

    .secure-booking span {
        font-size: 12px;
    }
    
    .secure-booking small {
        display: none;
    }

    .chat-form button {
        padding: 0 20px;
        min-width: 84px;
    }
}

/* Liaseta keelevalik */

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.language-button {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #ffffff;
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.language-button.active {
    background: #ffffff;
    color: #743149;
    border-color: #ffffff;
}

@media (max-width: 600px) {
    .language-switch {
        gap: 4px;
    }

    .language-button {
        padding: 6px 8px;
        font-size: 11px;
    }
}


/* LIASETA - broneeringukaart telefonis */
@media (max-width: 600px) {

    .booking-card {
        padding: 16px;
    }

    .booking-card-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .booking-photo {
        min-height: 180px;
        max-height: 220px;
    }

    .booking-photo img {
        min-height: 180px;
        max-height: 220px;
        object-fit: cover;
    }

    .booking-details {
        min-width: 0;
    }

    .booking-details h2 {
        font-size: 25px;
        overflow-wrap: break-word;
    }

    .booking-card-top {
        flex-wrap: wrap;
        gap: 12px;
    }

    .booking-see-you {
        font-size: 28px;
    }

    .booking-petal {
        opacity: 0.35;
    }
}

