/* =========================
   SCHEDULE SERVICE FORM
   ========================= */

.schedule-service {
    max-width: 720px;
    margin: 25px auto 45px;
    padding: 32px;
    background: #fff;
    border: 1px solid #d9e2ea;
    border-top: 6px solid #2C79B9;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

.schedule-service > p {
    margin: 0 0 24px;
    color: #333;
    font-size: 17px;
    line-height: 1.65;
}

/* Form layout */

.schedule-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form fields */

.schedule-form input,
.schedule-form select,
.schedule-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #b9c6d0;
    border-radius: 7px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Focus */

.schedule-form input:focus,
.schedule-form select:focus,
.schedule-form textarea:focus {
    border-color: #2C79B9;
    box-shadow: 0 0 0 3px rgba(44, 121, 185, 0.16);
}

/* Placeholder */

.schedule-form input::placeholder,
.schedule-form textarea::placeholder {
    color: #6f7880;
    opacity: 1;
}

/* Select */

.schedule-form select {
    cursor: pointer;
}

/* Textarea */

.schedule-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* Make service, message and other long fields full width */

.schedule-form select[name="service"],
.schedule-form textarea,
.schedule-form button,
.schedule-form input[type="submit"] {
    grid-column: 1 / -1;
}

/* Submit button */

.schedule-form button,
.schedule-form input[type="submit"] {
    width: 100%;
    padding: 15px 22px;
    border: 2px solid #2C79B9;
    border-radius: 8px;
    background: #F5B400;
    color: #184563;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.schedule-form button:hover,
.schedule-form input[type="submit"]:hover {
    background: #2C79B9;
    color: #fff;
}

.schedule-form button:active,
.schedule-form input[type="submit"]:active {
    transform: translateY(1px);
}

/* Date/time controls */

.schedule-form input[type="date"],
.schedule-form input[type="time"] {
    min-height: 50px;
}

/* Required field invalid state after interaction */

.schedule-form input:focus:invalid,
.schedule-form select:focus:invalid,
.schedule-form textarea:focus:invalid {
    border-color: #b94a48;
}

/* Mobile */

@media (max-width: 650px) {
    .schedule-service {
        margin: 15px 0 30px;
        padding: 22px 16px;
        border-radius: 9px;
    }

    .schedule-form {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .schedule-form input,
    .schedule-form select,
    .schedule-form textarea,
    .schedule-form button,
    .schedule-form input[type="submit"] {
        grid-column: 1;
        font-size: 16px;
    }

    .schedule-service > p {
        font-size: 16px;
    }
}
