/**
 * Reservation Form Styles
 * Orientiert am Speisekarten-Design
 * 
 * @package Speisekarten_Manager
 */

/* ==================== Reservation Container ==================== */
.skm-reservation-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skm-reservation-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 30px 0;
    text-align: center;
}

/* ==================== Message Box ==================== */
.skm-reservation-message {
    padding: 15px 20px !important;
    border-radius: 6px !important;
    margin-bottom: 25px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

.skm-reservation-message.success {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

.skm-reservation-message.error {
    background: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
}

/* ==================== Form Styling ==================== */
.skm-reservation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.skm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skm-form-group-full {
    grid-column: 1 / -1;
}

/* Labels */
.skm-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.skm-form-group label .required {
    color: #d63638;
    font-weight: 700;
}

/* Inputs & Textarea */
.skm-form-group input[type="text"],
.skm-form-group input[type="email"],
.skm-form-group input[type="tel"],
.skm-form-group input[type="number"],
.skm-form-group input[type="date"],
.skm-form-group input[type="time"],
.skm-form-group textarea {
    padding: 12px 16px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    border: 2px solid #e9ecef !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

.skm-form-group input:focus,
.skm-form-group textarea:focus {
    border-color: #2c3e50 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1) !important;
}

.skm-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Privacy Checkbox */
.skm-privacy-group {
    margin-top: 20px;
}

.skm-privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.skm-privacy-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.skm-privacy-label a {
    color: #2c3e50;
    text-decoration: underline;
}

.skm-privacy-label a:hover {
    color: #1a252f;
}

/* Submit Button */
.skm-form-actions {
    margin-top: 10px;
}

.skm-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

.skm-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.3);
}

.skm-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.skm-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: skm-spin 0.8s linear infinite;
}

@keyframes skm-spin {
    to { transform: rotate(360deg); }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .skm-reservation-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .skm-reservation-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .skm-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skm-form-group input[type="text"],
    .skm-form-group input[type="email"],
    .skm-form-group input[type="tel"],
    .skm-form-group input[type="number"],
    .skm-form-group input[type="date"],
    .skm-form-group input[type="time"],
    .skm-form-group textarea {
        padding: 14px;
        font-size: 16px; /* iOS zoom prevention */
    }
    
    .skm-submit-btn {
        padding: 18px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .skm-reservation-container {
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .skm-form-group input,
    .skm-form-group textarea {
        border-radius: 4px;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .skm-reservation-form {
        display: none;
    }
}
