/* Reservation Form Styles */

.reservation-form-container {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 30px;
    box-shadow: none;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 25px 0;
    text-align: center;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: end;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    margin-bottom: 5px;
    white-space: nowrap;
}

.form-field input {
    padding: 12px 15px;
    border: 2px solid #3d6659;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    color: #3d6659;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    height: 46px;
    box-sizing: border-box;
    box-shadow: none;
}

.form-field input:focus {
    outline: none;
    border: 2px solid #3d6659;
    box-shadow: none;
}

/* Tarih Input'ları için özel stil */
.form-field input[type="date"] {
    font-size: 16px;
    font-weight: 600;
    color: #3d6659;
    text-align: center;
    letter-spacing: 0.5px;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator {
    color: #3d6659;
    cursor: pointer;
}

.form-field input[type="date"]::-webkit-datetime-edit {
    color: #3d6659;
    font-weight: 600;
}

.form-field input[type="date"]::-webkit-datetime-edit-text {
    color: #3d6659;
    font-weight: 600;
}

.form-field input[type="date"]::-webkit-datetime-edit-month-field,
.form-field input[type="date"]::-webkit-datetime-edit-day-field,
.form-field input[type="date"]::-webkit-datetime-edit-year-field {
    color: #3d6659;
    font-weight: 600;
    font-size: 16px;
}

/* Guest Counter Styles */
.guest-counter {
    display: flex;
    align-items: center;
    border: 2px solid #3d6659;
    border-radius: 0px;
    background-color: #ffffff;
    overflow: hidden;
    height: 46px;
    box-shadow: none;
    position: relative;
    justify-content: space-between;
    padding: 0 5px;
}

.counter-btn {
    position: static;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #3d6659;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    flex-shrink: 0;
    outline: none;
}

.counter-btn:hover {
    background-color: transparent;
    color: #2d4f42;
    transform: scale(1.1);
}

.counter-btn:active {
    background-color: transparent;
    color: #2d4f42;
    transform: scale(0.95);
}

.counter-btn.plus {
    order: 3;
}

.counter-btn.minus {
    order: 1;
}

/* SVG İkonları */
.counter-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.counter-btn:hover .counter-icon {
    transform: scale(1.1);
}

.counter-btn:active .counter-icon {
    transform: scale(0.95);
}

.counter-value {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    padding: 0 10px;
    order: 2;
}

/* Reservation Button */
.reservation-button {
    width: 100%;
    padding: 15px 30px;
    background-color: #3d6659;
    color: #ffffff;
    border: 2px solid #3d6659;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    white-space: nowrap;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.reservation-button:hover {
    background-color: #2d4f42;
    border-color: #2d4f42;
    transform: translateY(-2px);
    box-shadow: none;
}

.reservation-button:active {
    transform: translateY(0);
}

/* Tüm form elementlerinin aynı yükseklikte olması için */
.form-field input,
.guest-counter,
.reservation-button {
    height: 46px;
    box-sizing: border-box;
}

/* Form alanlarının hizalanması */
.form-row {
    align-items: stretch;
}

.form-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Input alanlarının arka plan rengi */
.form-field input {
    background-color: #f8f9fa;
    border: 2px solid #3d6659;
}

.form-field input:focus {
    background-color: #ffffff;
    border: 2px solid #3d6659;
}

/* Counter arka plan rengi */
.guest-counter {
    background-color: #f8f9fa;
    border: 2px solid #3d6659;
}

/* Counter butonları flexbox düzeni */
.guest-counter {
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 950px) {
    .reservation-form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .form-title {
        font-size: 22px;
        margin-bottom: 22px;
    }
    
    .counter-btn {
        width: 30px;
        font-size: 14px;
    }
    
    .counter-value {
        font-size: 15px;
    }
    
    .reservation-button {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .reservation-form-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .counter-btn {
        width: 35px;
        font-size: 16px;
    }
    
    .counter-value {
        font-size: 14px;
    }
    
    .reservation-button {
        width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .reservation-form-container {
        padding: 15px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .reservation-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Focus States */
.form-field input:focus,
.guest-counter:focus-within {
    border-color: #D4A574;
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.2);
}

/* Disabled State */
.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-btn:disabled:hover {
    background-color: #f8f9fa;
}

/* Loading State */
.reservation-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.reservation-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 