/* Restaurant Reservations - Frontend Styles */

.rr-reservation-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.rr-form-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rr-form-header {
    text-align: center;
    margin-bottom: 35px;
}

.rr-form-header h2 {
    color: #d4af37;
    font-size: 32px;
    margin: 0 0 12px 0;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.rr-form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0;
}

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

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

.rr-form-group {
    display: flex;
    flex-direction: column;
}

.rr-form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rr-form-group label .required {
    color: #d4af37;
}

.rr-form-group input[type="text"],
.rr-form-group input[type="email"],
.rr-form-group input[type="tel"],
.rr-form-group input[type="date"],
.rr-form-group select,
.rr-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.rr-form-group input:focus,
.rr-form-group select:focus,
.rr-form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.rr-form-group input::placeholder,
.rr-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.rr-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.rr-form-group select option {
    background: #2d2d2d;
    color: #ffffff;
}

.rr-form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.rr-hint {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 6px;
}

.rr-large-party-notice {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.rr-large-party-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d4af37;
}

.rr-large-party-notice span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
}

.rr-large-party-notice a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.rr-large-party-notice a:hover {
    color: #e5c158;
    text-decoration: underline;
}

.rr-form-footer {
    margin-top: 10px;
}

.rr-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #c29d2f 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    position: relative;
}

.rr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #e5c158 0%, #d4af37 100%);
}

.rr-submit-btn:active {
    transform: translateY(0);
}

.rr-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rr-submit-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rr-submit-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 26, 26, 0.3);
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: rr-spin 0.6s linear infinite;
}

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

.rr-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}

.rr-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
}

.rr-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef5350;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rr-form-wrapper {
        padding: 30px 20px;
    }
    
    .rr-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rr-form-header h2 {
        font-size: 26px;
    }
}

/* Date input styling for better visibility on dark background */
.rr-form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Better focus states */
.rr-form-group input:focus-visible,
.rr-form-group select:focus-visible,
.rr-form-group textarea:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}
