/* RHF Event Reservations Frontend Styles */

/* Reservation Button Section */
.rhf-er-reservation-section {
    margin-top: var(--spacing-xl, 40px);
    text-align: center;
}

.rhf-er-reservation-btn {
    background: var(--brand-accent, #FF8C42);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.rhf-er-reservation-btn:hover {
    background: #e67a2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.rhf-er-reservation-btn:active {
    transform: translateY(0);
}

/* Reservation Modal Styles */
.rhf-er-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.rhf-er-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: rhf-er-slideIn 0.3s ease-out;
}

@keyframes rhf-er-slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rhf-er-modal-content h2 {
    background: #343b49;
    color: white;
    margin: 0;
    padding: 20px 60px 20px 30px;
    border-radius: 12px 12px 0 0;
    font-size: 1.5em;
    position: relative;
}

.rhf-er-modal-close {
    color: white;
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rhf-er-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Registration Form Styles */
#rhf-er-reservation-form {
    padding: 30px;
    margin: 0;
}

.rhf-er-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.rhf-er-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.rhf-er-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.rhf-er-form-group input,
.rhf-er-form-group textarea,
.rhf-er-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.rhf-er-form-group input::placeholder {
    color: #999;
    font-style: italic;
}

.rhf-er-form-group input:focus,
.rhf-er-form-group textarea:focus,
.rhf-er-form-group select:focus {
    outline: none;
    border-color: #343b49;
    box-shadow: 0 0 0 3px rgba(52, 59, 73, 0.1);
}

.rhf-er-form-group input[type="email"]:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.rhf-er-form-group input[type="tel"]:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.rhf-er-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.rhf-er-form-group select:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.rhf-er-submit-btn {
    width: 100%;
    background: var(--brand-accent, #FF8C42);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.rhf-er-submit-btn:hover {
    background: #e67a2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.rhf-er-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Spinner for loading state */
.rhf-er-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: rhf-er-spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Success/Error Messages */
.rhf-er-message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

.rhf-er-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rhf-er-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Registration Confirmation Styles */
.rhf-er-confirmation-success {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border-radius: 12px;
    border: 2px solid #28a745;
    margin: 0;
}

.rhf-er-success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: rhf-er-successPulse 0.6s ease-out;
}

@keyframes rhf-er-successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.rhf-er-confirmation-success h3 {
    color: #155724;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.rhf-er-confirmation-success p {
    color: #155724;
    margin: 15px 0;
    line-height: 1.5;
}

.rhf-er-event-title {
    font-size: 18px;
    font-weight: 600;
    color: #343b49 !important;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #d4edda;
    margin: 20px 0 !important;
}

.rhf-er-confirmation-details {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #c3e6cb;
}

.rhf-er-next-steps {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #d4edda;
    margin-top: 25px;
    text-align: left;
}

.rhf-er-next-steps h4 {
    color: #155724;
    font-size: 16px;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 600;
}

.rhf-er-next-steps ul {
    margin: 0;
    padding-left: 20px;
    color: #155724;
}

.rhf-er-next-steps li {
    margin: 8px 0;
    line-height: 1.4;
}

.rhf-er-next-steps li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 5px;
}

/* Body scroll lock when modal is open */
body.rhf-er-modal-open {
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rhf-er-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .rhf-er-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #rhf-er-reservation-form {
        padding: 20px;
    }
    
    .rhf-er-modal-content h2 {
        padding: 15px 20px;
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .rhf-er-reservation-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .rhf-er-modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

