/* Reservation Section Styles */
#reservation {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.reservation-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.reservation-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Dropdown Styles */
.table-type-dropdown {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.table-type-dropdown-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.table-type-dropdown-btn:hover {
    border-color: var(--primary-color);
}

.table-type-dropdown-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.dropdown-text {
    color: #333;
}

.dropdown-arrow {
    color: #666;
    transition: transform 0.3s ease;
}

.table-type-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.table-type-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 5px;
    overflow: hidden;
}

.table-type-dropdown-content.show {
    display: block;
}

.table-type-option {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table-type-option:last-child {
    border-bottom: none;
}

.table-type-option:hover {
    background-color: #f8f8f8;
}

.table-type-option.active {
    background-color: #fff9c4;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Table Selection Sections */
.table-selection-section {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.table-image-container {
    text-align: center;
    margin-bottom: 25px;
}

.table-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    cursor: pointer;
}

.table-overview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.table-overview-image:hover {
    transform: scale(1.02);
}

.image-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-image-wrapper:hover .image-zoom-hint {
    opacity: 1;
}

/* Table Numbers Grid */
.table-numbers-container h4 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.table-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.room-numbers-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 300px;
    margin: 0 auto;
}

.table-number-option input[type="radio"] {
    display: none;
}

.table-number-label {
    display: block;
    padding: 12px 8px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.table-number-label:hover {
    border-color: var(--primary-color);
    background-color: #fffdf0;
}

.table-number-option input[type="radio"]:checked + .table-number-label {
    border-color: var(--primary-color);
    background-color: #fff9c4;
    color: var(--secondary-color);
}

/* Menu Info Section */
.menu-info-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.menu-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.menu-icon-container {
    flex-shrink: 0;
    color: var(--secondary-color);
}

.menu-icon {
    width: 32px;
    height: 32px;
}

.menu-text {
    flex-grow: 1;
}

.menu-text h4 {
    margin: 0 0 8px 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.menu-text p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.95rem;
}

.menu-button {
    background: linear-gradient(135deg, var(--secondary-color), #555);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Telefon Input Stilleri */
.phone-group {
    position: relative;
}

.phone-input-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.country-code-select {
    flex: 0 0 120px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    background-color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-code-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.country-code-select option {
    padding: 10px;
}

.phone-hint {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 5px;
    min-height: 20px;
}

.phone-hint.valid {
    color: #00C851;
}

.phone-hint.invalid {
    color: #ff4444;
}

/* İsim Input için Otomatik Büyük Harf Desteği */
#name {
    text-transform: capitalize;
}

/* Form Validation Improvements */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #00C851 !important;
    background-color: #f5fff7 !important;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #ff4444 !important;
    background-color: #fff5f5 !important;
}

/* Loading State Improvements */
.reserve-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.reserve-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

/* Error Message Improvements */
.security-error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    z-index: 10000;
    max-width: 400px;
    text-align: center;
    animation: slideIn 0.3s ease;
    cursor: pointer;
}

.field-error {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Success Message Improvements */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

/* Responsive Design for Phone Input */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .country-code-select {
        flex: none;
        width: 100%;
    }
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-group:has(#date) {
    position: relative;
    cursor: pointer;
}

.form-group:has(#date)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
}

#date {
    position: relative;
    z-index: 2;
    cursor: pointer;
    background-color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Form Validation States */
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #00C851 !important;
    background-color: #f5fff7 !important;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #ff4444 !important;
    background-color: #fff5f5 !important;
}

/* Loading State */
.reserve-button.loading {
    position: relative;
    color: transparent;
}

.reserve-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.menu-button:hover {
    background: linear-gradient(135deg, #555, #444);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

.reserve-button {
    background: linear-gradient(135deg, var(--primary-color), #e6c200);
    color: var(--secondary-color);
    border: none;
    padding: 16px 45px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* IP İzin Modal Stilleri */
.ip-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.ip-consent-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.ip-consent-header h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.ip-consent-body p {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.5;
}

.ip-consent-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.ip-consent-accept, .ip-consent-deny {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ip-consent-accept {
    background-color: #00C851;
    color: white;
}

.ip-consent-accept:hover {
    background-color: #007E33;
    transform: translateY(-2px);
}

.ip-consent-deny {
    background-color: #ff4444;
    color: white;
}

.ip-consent-deny:hover {
    background-color: #CC0000;
    transform: translateY(-2px);
}

/* İzin Reddedildi Mesajı */
.consent-denied-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

/* Başarı Mesajı */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

/* İsim Input için Özel Karakter Desteği */
#name {
    text-transform: none !important;
}

/* Form Validasyon Stilleri */
.form-group {
    position: relative;
}

.field-error {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

input.valid, select.valid, textarea.valid {
    border-color: #00C851 !important;
    background-color: rgba(0, 200, 81, 0.05);
}

input.invalid, select.invalid, textarea.invalid {
    border-color: #ff4444 !important;
    background-color: rgba(255, 68, 68, 0.05);
}

.phone-hint.valid {
    color: #00C851;
}

.phone-hint.invalid {
    color: #ff4444;
}



/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .ip-consent-content {
        margin: 20px;
        padding: 20px;
    }
    
    .ip-consent-buttons {
        flex-direction: column;
    }
    
    .ip-consent-accept, .ip-consent-deny {
        width: 100%;
    }
}

.reserve-button:hover {
    background: linear-gradient(135deg, #e6c200, #d4b200);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.reserve-button:active {
    transform: translateY(0);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 95%;
    max-width: 900px;
    top: 50%;
    transform: translateY(-50%);
    animation: zoomIn 0.3s;
}

#modal-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-close:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.7);
}

.modal-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Form Validation Styles */
.form-group input:invalid:not(:focus):not(:placeholder-shown),
.form-group select:invalid:not(:focus) {
    border-color: #ff4444;
    background-color: #fff5f5;
}

.form-group input:valid:not(:focus):not(:placeholder-shown),
.form-group select:valid:not(:focus) {
    border-color: #00C851;
    background-color: #f5fff7;
}

/* Textarea resize restriction */
#extra {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reservation-container {
        padding: 20px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .table-numbers-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 8px;
    }
    
    .room-numbers-grid {
        flex-direction: column;
        gap: 10px;
        max-width: 200px;
    }
    
    .menu-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .reserve-button {
        width: 100%;
        max-width: 300px;
    }
    
    .table-type-dropdown {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #reservation {
        padding: 30px 10px;
    }
    
    .form-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .table-selection-section {
        padding: 15px;
    }
    
    .table-number-label {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
    
    .menu-info-section {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translateY(-50%) scale(0.9); }
    to { transform: translateY(-50%) scale(1); }
}