:root {
    --ink: #14151d;
    --road: #454a5e;
    --road-light: #888ea3;
    --paper: #f6f3ec;
    --paper-dim: #ece6d8;
    --amber: #f5a623;
    --amber-deep: #a8630a;
    --line: #ddd5c1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-container {
    text-align: center;
    margin: 0 auto 28px;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.container {
    max-width: 460px;
    margin: 20px auto;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--line);
    width: 90%;
    box-sizing: border-box;
}

.step {
    background: var(--paper);
    padding: 24px 20px;
    border-radius: 8px;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.step h2 {
    margin-top: 0;
    font-family: 'Big Shoulders', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 24px;
    text-align: center;
    width: 100%;
    color: var(--ink);
}

.step > * {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Button group için özel stil */
.step > .button-group {
    flex-direction: row !important;
    justify-content: center;
    gap: 10px;
}

.step input[type="date"] {
    position: relative;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-size: 16px;
    text-align: center;
    margin: 20px 0;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Inter', Arial, sans-serif;
    background: #fff;
}

/* Mobil cihazlar için tarih seçici stili */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--ink);
}

input[type="date"]:empty:before {
    content: attr(placeholder);
    color: var(--road-light);
}

input, button {
    max-width: 400px;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-size: 16px;
    box-sizing: border-box;
    width: 100%;
    font-family: 'Inter', Arial, sans-serif;
}

button {
    background: var(--amber);
    color: var(--ink);
    border: none;
    cursor: pointer;
    font-family: 'Big Shoulders', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 10px 0;
    transition: background-color 0.15s ease;
}

button:hover {
    background: var(--amber-deep);
    color: #fff;
}

.step > .button-group button:nth-child(1):not(:only-child) {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--line);
}

.step > .button-group button:nth-child(1):not(:only-child):hover {
    background: var(--paper-dim);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    max-width: 400px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.time-slot.selected {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--ink);
}

.time-slot.booked {
    background: var(--paper-dim);
    color: var(--road-light);
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot.booked:hover {
    background: var(--paper-dim);
    cursor: not-allowed;
}

.appointment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.button-group {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    justify-content: center;
    margin-top: 20px;
}

.button-group button {
    flex: 1;
    max-width: 180px;
    margin: 0;
}

#appointmentForm {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-inputs input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid var(--line);
    font-size: 16px;
    box-sizing: border-box;
    background: #fff;
}

.form-inputs input:focus {
    outline: none;
    border-color: var(--amber-deep);
}

.error-message {
    color: #b3261e !important;
    font-size: 14px;
}

@media (max-width: 768px) {
    .container {
        margin: 10px auto;
        padding: 18px;
        width: 95%;
    }

    .logo-container {
        width: 72px;
        height: 72px;
        margin: 0 auto 20px;
    }

    .step {
        width: 100%;
        padding: 18px 14px;
    }

    .step h2 {
        font-size: 20px;
    }

    input, button {
        font-size: 16px;
        padding: 12px;
    }

    .form-inputs input {
        padding: 12px;
    }
}

.confirmation {
    text-align: center;
}

.confirmation h2 {
    font-family: 'Big Shoulders', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 26px;
    color: var(--amber-deep);
    margin-bottom: 20px;
}

.confirmation-details {
    background: var(--paper);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin: 20px auto;
    width: 100%;
    max-width: 300px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.detail-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: var(--road);
}

.value {
    font-weight: 600;
    color: var(--ink);
    font-family: 'JetBrains Mono', monospace;
}

.confirmation-message {
    font-size: 16px;
    color: var(--road);
    margin: 25px 0;
}

.back-button {
    display: inline-block;
    background: var(--amber);
    color: var(--ink);
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-family: 'Big Shoulders', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 16px;
    transition: background-color 0.15s ease;
}

.back-button:hover {
    background: var(--amber-deep);
    color: #fff;
}

.redirect-message {
    color: var(--road);
    font-size: 14px;
    margin-top: 15px;
    font-style: italic;
    text-align: center;
}
