﻿
/* ==========================================
   MİHENK HUKUK - RANDEVU TALEP SAYFASI
   ========================================== */

.appointment-page {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 65px 0 100px;
}

.appointment-header {
    margin-bottom: 38px;
    text-align: center;
}

    .appointment-header h1 {
        margin: 0 0 18px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: clamp(36px, 5vw, 58px);
        font-weight: 400;
        line-height: 1.2;
        color: #292521;
    }

    .appointment-header p {
        max-width: 650px;
        margin: 0 auto;
        color: #6d655e;
        font-size: 16px;
        line-height: 1.8;
    }

.appointment-form-card,
.appointment-notice {
    padding: 42px 48px;
    border: 1px solid #ded5cb;
    border-radius: 6px;
    background: #fff;
}

    .appointment-form-card h2,
    .appointment-notice h2 {
        margin: 0 0 14px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 30px;
        font-weight: 400;
        color: #292521;
    }

    .appointment-form-card > p,
    .appointment-notice p {
        margin: 0 0 30px;
        color: #6d655e;
        font-size: 15px;
        line-height: 1.8;
    }

.appointment-field {
    margin-bottom: 24px;
}

    .appointment-field label {
        display: block;
        margin-bottom: 9px;
        font-size: 14px;
        font-weight: 600;
        color: #38322d;
    }

    .appointment-field input,
    .appointment-field select,
    .appointment-field textarea {
        display: block;
        width: 100%;
        min-height: 50px;
        padding: 13px 15px;
        border: 1px solid #d9cfc5;
        border-radius: 4px;
        background: #fff;
        color: #292521;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 15px;
        line-height: 1.5;
    }

    .appointment-field textarea {
        min-height: 135px;
        resize: vertical;
    }

        .appointment-field input:focus,
        .appointment-field select:focus,
        .appointment-field textarea:focus {
            outline: 2px solid rgba(156, 118, 89, 0.25);
            outline-offset: 1px;
            border-color: #9c7659;
        }

.appointment-help {
    margin: 8px 0 28px;
    padding: 18px 20px;
    background: #faf7f3;
    border-left: 3px solid #9c7659;
    color: #6d655e;
    font-size: 14px;
    line-height: 1.8;
}

.appointment-submit,
.appointment-link {
    display: inline-block;
    padding: 16px 26px;
    border: 1px solid #9c7659;
    border-radius: 4px;
    background: #9c7659;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.appointment-submit {
    width: 100%;
}

    .appointment-submit:hover,
    .appointment-link:hover {
        background: #79563d;
        border-color: #79563d;
        color: #fff;
    }

.appointment-notice {
    text-align: center;
    background: #faf7f3;
}

@media (max-width: 700px) {
    .appointment-page {
        width: calc(100% - 32px);
        padding: 40px 0 65px;
    }

    .appointment-form-card,
    .appointment-notice {
        padding: 26px 20px;
    }

        .appointment-form-card h2,
        .appointment-notice h2 {
            font-size: 26px;
        }
}

/* ==========================================
   RANDEVU FORMU - YATAY MASAÜSTÜ DÜZENİ
   ========================================== */

.appointment-page {
    width: min(1120px, calc(100% - 40px));
    padding-top: 30px;
    padding-bottom: 55px;
}

.appointment-header {
    margin-bottom: 22px;
}

    .appointment-header h1 {
        margin-bottom: 8px;
        font-size: clamp(32px, 3.5vw, 44px);
    }

    .appointment-header p {
        font-size: 14px;
    }

.appointment-form-card {
    padding: 28px 36px;
}

    .appointment-form-card h2 {
        font-size: 25px;
        margin-bottom: 6px;
    }

    .appointment-form-card > p {
        margin-bottom: 20px;
        font-size: 14px;
    }

.appointment-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 16px;
}

    .appointment-fields-grid .appointment-field {
        min-width: 0;
        margin-bottom: 0;
    }

        .appointment-fields-grid .appointment-field:last-child {
            grid-column: 1 / -1;
        }

.appointment-field label {
    margin-bottom: 6px;
}

.appointment-field input,
.appointment-field select {
    min-height: 46px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.appointment-field select {
    cursor: pointer;
}
.appointment-field textarea {
    min-height: 75px;
    padding: 10px 12px;
}

.appointment-help {
    margin: 18px 0;
    padding: 12px 16px;
    font-size: 13px;
}

.appointment-submit {
    min-height: 48px;
    padding: 12px 20px;
}

@media (max-width: 700px) {
    .appointment-page {
        width: calc(100% - 32px);
        padding: 28px 0 50px;
    }

    .appointment-form-card {
        padding: 24px 20px;
    }

    .appointment-fields-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

        .appointment-fields-grid .appointment-field:last-child {
            grid-column: auto;
        }
}

/* Randevu formu sonuç mesajları */

.appointment-feedback {
    margin-bottom: 22px;
    padding: 16px 20px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.7;
}

.appointment-feedback-success {
    background: #eef7f0;
    border-color: #b7d4bf;
    color: #245735;
}

.appointment-feedback-error {
    background: #fff3f0;
    border-color: #e4b8af;
    color: #873b2e;
}
.appointment-submit:disabled {
    background: #c9bdb2;
    border-color: #c9bdb2;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.75;
}

    .appointment-submit:disabled:hover {
        background: #c9bdb2;
        border-color: #c9bdb2;
    }


/* ==========================================
   RANDEVU - TARİH VE SAAT SEÇİMİ
   ========================================== */

.appointment-date-field,
.appointment-time-field {
    min-width: 0;
}

    .appointment-date-field select {
        width: 100%;
        background-color: #faf7f3;
        border: 1px solid #d9cfc5;
        border-radius: 5px;
        color: #292521;
        cursor: pointer;
    }

.appointment-date-help {
    margin: 8px 0 0;
    color: #756c64;
    font-size: 12px;
    line-height: 1.6;
}

.appointment-time-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    min-height: 46px;
}

.appointment-time-button {
    min-height: 44px;
    padding: 10px 6px;
    border: 1px solid #d9cfc5;
    border-radius: 5px;
    background: #faf7f3;
    color: #38322d;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

    .appointment-time-button:hover {
        background: #eee4d9;
        border-color: #9c7659;
    }

    .appointment-time-button.is-selected {
        background: #9c7659;
        border-color: #9c7659;
        color: #fff;
    }

    .appointment-time-button:focus-visible {
        outline: 3px solid rgba(156, 118, 89, .35);
        outline-offset: 2px;
    }

.appointment-time-placeholder {
    grid-column: 1 / -1;
    margin: 0;
    padding: 13px 14px;
    border: 1px dashed #ded5cb;
    border-radius: 5px;
    background: #faf7f3;
    color: #756c64;
    font-size: 13px;
    line-height: 1.6;
}

.appointment-selected-time {
    margin: 10px 0 0;
    color: #79563d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

    .appointment-selected-time:empty {
        display: none;
    }

@media (max-width: 700px) {
    .appointment-time-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .appointment-time-button {
        min-height: 46px;
    }
}

@media (max-width: 380px) {
    .appointment-time-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ==========================================
   LIGHTHOUSE - RANDEVU BUTONU KONTRAST
   ========================================== */

.appointment-submit,
.appointment-link {
    background: #79563d;
    border-color: #79563d;
    color: #ffffff;
}

    .appointment-submit:hover,
    .appointment-link:hover {
        background: #60412d;
        border-color: #60412d;
        color: #ffffff;
    }

    /* Pasif buton */

    .appointment-submit:disabled,
    .appointment-submit:disabled:hover {
        background: #c9bdb2;
        border-color: #c9bdb2;
        color: #292521;
        opacity: 1;
        cursor: not-allowed;
    }