/* Modern Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(45deg, #17a2b8, #20c997) !important;
    border: none;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0 !important;
}

.card-header h4 {
    color: white !important;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form Styling */
.form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.form-control {
    border: 2px solid rgba(23, 162, 184, 0.2);
    border-radius: 15px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Modern Button Styles */
.btn-primary {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 15px rgba(23, 162, 184, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(23, 162, 184, 0.5);
    background: linear-gradient(45deg, #20c997, #17a2b8);
}

/* Results Section Styling */
.card-title.text-success {
    color: #28a745 !important;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.card-title.text-success::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 2px;
}

/* Individual Reservation Card */
.card.border {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(23, 162, 184, 0.2) !important;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card.border:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #17a2b8 !important;
}

.card.border .card-header {
    background: linear-gradient(45deg, #17a2b8, #007bff) !important;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
}

.card.border .card-header p {
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.card.border .card-body {
    padding: 1.5rem;
}

.card.border .card-title {
    color: #17a2b8 !important;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card.border .card-text {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.card.border .card-text strong {
    color: #2c3e50;
    font-weight: 600;
}

.text-danger {
    color: #e74c3c !important;
    font-weight: 600;
}

/* Card Footer Styling */
.card-footer {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.1), rgba(255, 183, 71, 0.2)) !important;
    border: none;
    border-radius: 0 0 15px 15px;
    padding: 1.2rem 1.5rem;
}

.card-footer p {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.card-footer strong {
    color: #856404;
}

/* reCAPTCHA container styling */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    padding: 10px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(23, 162, 184, 0.1);
}


/* Responsive Improvements */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem 0;
    }
  
    .card-body {
        padding: 1.5rem;
    }
    
    .card.border .card-body {
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    .card-title.text-success {
        font-size: 1.1rem;
    }
    
    .card.border .card-title {
        font-size: 1rem;
    }
    
    .form-control {
        padding: 10px 15px;
    }
}

/* Animation for form submission */
.form-control:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.29-.29L4.8 4.2c.1-.1.1-.26 0-.36L2.59 1.63a.25.25 0 0 0-.36 0l-.29.29c-.1.1-.1.26 0 .36L3.89 4.2c.1.1 0 .26-.36.36L1.95 6.37c-.1.1-.1.26 0 .36z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Hover effects for better UX */
.form-group:hover .form-control {
    border-color: rgba(23, 162, 184, 0.5);
}

/* Loading animation for form submission */
.btn-primary:disabled {
    background: linear-gradient(45deg, #6c757d, #495057);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success state animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card.border:has(.text-success) {
    animation: successPulse 0.5s ease-in-out;
}
