/* Booking Page Navigation - Match Homepage Exactly */
.booking-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.nav-logo-link {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    margin-left: 10px;
}

.nav-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.nav-logo i {
    color: #3498db;
    margin-right: 8px;
}

.nav-logo i {
    color: #3498db;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #3498db;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
}

.booking-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.booking-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.admin-icon {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white !important;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.admin-icon:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(149, 165, 166, 0.4);
}

.admin-icon i {
    font-size: 1.1rem;
}

/* Burger Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    /* TRANSPARENT NAVBAR ON MOBILE */
    .booking-nav {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
        animation: none;
    }
    
    .booking-nav::before,
    .booking-nav::after {
        display: none !important;
    }
    
    /* LOGO VISIBILITY ON TRANSPARENT BACKGROUND */
    .nav-logo-img {
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    /* BURGER MENU VISIBILITY - ADD SHADOW */
    .nav-toggle .bar {
        background: #2c3e50;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
        transition: background 0.3s ease, box-shadow 0.3s ease;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        height: 70px;
        padding: 0 20px;
        background: transparent;
        box-shadow: none;
        border: none;
        outline: none;
    }
    
    .nav-container::before,
    .nav-container::after {
        display: none !important;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: url('hero.png') center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero.png') center/cover no-repeat;
    filter: blur(3px);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 90px; /* Account for fixed navigation */
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: #667eea;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.tagline {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.booking-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 800px;
}

.card-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-header h2 i {
    color: #667eea;
}

.card-header p {
    color: #666;
    font-size: 1rem;
}

/* Form Styles */
.form-section {
    margin-bottom: 35px;
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #667eea;
}

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

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

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

.form-group label {
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:invalid {
    border-color: #e74c3c;
}

/* Extra Bed Styles */
.extra-bed-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.extra-bed-quantity {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
}

.extra-bed-quantity select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

/* Pricing Information */
.pricing-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e1e5e9;
}

.pricing-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.pricing-item:last-child {
    margin-bottom: 0;
}

.pricing-item i {
    color: #3498db;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.pricing-item span {
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.4;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e1e5e9;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e1e5e9;
    font-size: 1rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total-row {
    font-weight: 700;
    font-size: 1.2rem;
    color: #667eea;
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    border: 2px solid #667eea;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    position: relative;
    overflow: hidden;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 160, 71, 0.3);
}

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

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #ccc !important;
}

/* CAPTCHA Styling */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.captcha-container .g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

.captcha-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    background: rgba(231, 76, 60, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.2);
    animation: shake 0.5s ease-in-out;
}

.captcha-error i {
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mobile CAPTCHA adjustments */
@media (max-width: 768px) {
    .captcha-container .g-recaptcha {
        transform: scale(0.8);
    }
    
    .captcha-error {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Loading animation styles */
.submit-btn.loading {
    pointer-events: none;
    color: transparent;
    will-change: transform;
}

.submit-btn.loading .fas {
    color: transparent;
    transition: color 0.2s ease;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite, bubbleScale 0.4s ease-out forwards;
    opacity: 0;
    transform: scale(0);
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

@keyframes spin {
    0% { 
        transform: rotate(0deg) scale(1);
    }
    100% { 
        transform: rotate(360deg) scale(1);
    }
}

@keyframes bubbleScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .footer {
        text-align: center !important;
        padding: 15px 20px;
        font-size: 0.85rem;
    }
    
    .footer p {
        text-align: center !important;
        margin: 0 auto;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Add close button to modal */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-header {
    margin-bottom: 25px;
}

.success-icon {
    margin-bottom: 15px;
}

.success-icon i {
    font-size: 4rem;
    color: #27ae60;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-body p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.booking-id {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.booking-id strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.booking-id span {
    color: #3498db;
    font-weight: 600;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

.copy-booking-id {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.copy-booking-id:hover {
    background: #2980b9;
}

.booking-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 15px;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        padding: 20px;
        margin: 0;
        max-height: calc(100vh - 40px);
        border-radius: 15px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
        width: 35px;
        height: 35px;
        background: rgba(0, 0, 0, 0.1);
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
        margin-top: 10px;
    }
    
    .gcash-details {
        margin: 20px 0;
    }
    
    .gcash-item {
        margin-bottom: 15px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
    }
    
    .payment-instructions {
        margin-top: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
    }
    
    .modal-footer {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #e9ecef;
    }
    
    .modal-footer .btn-primary {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .booking-card {
        padding: 25px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        margin-bottom: 10px;
        font-size: 1rem;
        font-weight: 600;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    /* Phone input wrapper mobile styles */
    .phone-input-wrapper {
        width: 100%;
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }
    
    .country-code-dropdown {
        min-width: 90px;
        max-width: 90px;
        padding: 14px 8px;
        font-size: 0.85rem;
        flex-shrink: 0;
        border-right: 1px solid #e0e0e0;
        margin-right: 8px;
    }
    
    .phone-input-wrapper input[type="tel"] {
        flex: 1;
        padding: 14px 16px;
        font-size: 1rem;
        border: none;
        background: transparent;
        outline: none;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
    
    /* Ensure footer is centered on mobile */
    .footer {
        text-align: center !important;
        padding: 15px 20px;
    }
    
    .footer p {
        text-align: center !important;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .booking-card {
        padding: 20px;
    }
    
    .form-section {
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    .form-group label {
        margin-bottom: 12px;
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .form-group input,
    .form-group select {
        padding: 16px 18px;
        font-size: 1.1rem;
        border-radius: 12px;
    }
    
    /* Phone input wrapper for small mobile */
    .phone-input-wrapper {
        border-radius: 12px;
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    .country-code-dropdown {
        min-width: 75px;
        max-width: 75px;
        padding: 16px 6px;
        font-size: 0.8rem;
        flex-shrink: 0;
        border-right: 1px solid #e0e0e0;
        margin-right: 8px;
    }
    
    .phone-input-wrapper input[type="tel"] {
        flex: 1;
        padding: 16px 18px;
        font-size: 1.1rem;
        border: none;
        background: transparent;
        outline: none;
    }
    
    /* Ensure proper spacing between form elements */
    .form-grid .form-group:not(:last-child) {
        margin-bottom: 25px;
    }
    
    /* Prevent any potential overlapping */
    .form-group * {
        box-sizing: border-box;
    }
    
    /* Ensure error messages don't overlap */
    .error-message {
        margin-top: 8px;
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Mobile error summary */
    .error-summary {
        position: fixed;
        top: 80px;
        left: 15px;
        right: 15px;
        z-index: 1000;
        margin-bottom: 0;
        border-radius: 8px;
    }
    
    .error-summary-content {
        padding: 12px 16px;
    }
    
    .error-summary-text strong {
        font-size: 0.9rem;
    }
    
    .error-summary-text p {
        font-size: 0.8rem;
        margin-top: 4px;
    }
    
    /* Mobile file upload styles */
    .file-upload-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .file-upload-preview img {
        width: 50px;
        height: 50px;
        align-self: flex-start;
    }
    
    .file-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-info span {
        max-width: 100%;
        font-size: 0.9rem;
        line-height: 1.3;
        word-break: break-all;
        white-space: normal;
        text-overflow: initial;
        overflow: visible;
    }
    
    /* Hide long filenames on mobile to prevent stretching */
    .file-info span.long-filename {
        display: none;
    }
    
    .remove-file {
        align-self: flex-end;
        margin-top: 5px;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .form-group {
        margin-bottom: 30px;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .phone-input-wrapper {
        min-height: 60px;
        display: flex;
        align-items: center;
    }
    
    .country-code-dropdown {
        min-width: 65px;
        max-width: 65px;
        padding: 18px 4px;
        font-size: 0.75rem;
        flex-shrink: 0;
        border-right: 1px solid #e0e0e0;
        margin-right: 6px;
    }
    
    .phone-input-wrapper input[type="tel"] {
        flex: 1;
        padding: 18px 20px;
        font-size: 1rem;
        border: none;
        background: transparent;
        outline: none;
    }
    
    .booking-card {
        padding: 15px;
        margin: 10px;
    }
    
    /* Extra small mobile file upload */
    .file-upload-preview {
        padding: 10px;
        gap: 8px;
    }
    
    .file-upload-preview img {
        width: 40px;
        height: 40px;
    }
    
    .file-info span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    /* Ensure footer is centered on small mobile */
    .footer {
        text-align: center !important;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .footer p {
        text-align: center !important;
        margin: 0 auto;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-card {
    animation: fadeIn 0.6s ease-out;
}

/* Error States */
.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
    background-color: #fdf2f2 !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    background-color: #fdf2f2;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #e74c3c;
    animation: slideIn 0.3s ease-out;
}

.error-message i {
    color: #e74c3c;
    font-size: 0.9rem;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes errorPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Enhanced Receipt Upload Styling */
.required-asterisk {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

.required-note {
    display: block;
    color: #e74c3c;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 2px;
    font-style: italic;
}

label i.fas.fa-receipt {
    color: #3498db;
    margin-right: 8px;
}

/* File upload container enhancement */
.file-upload-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.file-upload-container:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.file-upload-container.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
    animation: shake 0.5s ease-in-out;
}

/* Error Summary Styling */
.error-summary {
    background: linear-gradient(135deg, #fdf2f2 0%, #fce4e4 100%);
    border: 2px solid #e74c3c;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
    animation: slideIn 0.4s ease-out;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.error-summary-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 15px;
}

.error-summary i {
    color: #e74c3c;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.error-summary-text {
    flex: 1;
}

.error-summary-text strong {
    color: #e74c3c;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.error-summary-text p {
    color: #c0392b;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.error-summary-close {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.error-summary-close:hover {
    background-color: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

/* Phone Input Wrapper - Single Integrated Field */
.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.phone-input-wrapper:hover {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.phone-input-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.country-code-dropdown {
    flex: 0 0 auto;
    min-width: 100px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
    border-right: 1px solid #e0e0e0;
    margin-right: 8px;
}

.country-code-dropdown:focus {
    outline: none;
}

.phone-input-wrapper input[type="tel"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.phone-input-wrapper input[type="tel"]::placeholder {
    color: #999;
}

/* Error states for phone input wrapper */
.phone-input-wrapper.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.phone-input-wrapper.error .country-code-dropdown {
    border-right-color: #e74c3c;
}

.phone-input-wrapper.error:focus-within {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Success States */
.success {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

/* GCash Payment Styles */
.payment-method {
    margin-top: 10px;
}

.gcash-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00a651 0%, #00d4aa 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.gcash-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 166, 81, 0.3);
}

.gcash-btn i {
    font-size: 1.2rem;
}

/* File Upload Styles */
.file-upload-container {
    margin-top: 10px;
}

.file-upload-container input[type="file"] {
    display: none;
}

.file-upload-display {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload-display:hover {
    border-color: #00a86b;
    background: #f0fdf4;
}

.file-upload-placeholder {
    color: #666;
}

.file-upload-placeholder i {
    font-size: 2rem;
    color: #00a86b;
    margin-bottom: 10px;
    display: block;
}

.file-upload-placeholder p {
    margin: 10px 0 5px 0;
    font-weight: 500;
}

.file-upload-placeholder small {
    color: #999;
    font-size: 0.85rem;
}

.file-upload-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.file-upload-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0; /* Allow flex item to shrink below content size */
    gap: 10px;
    max-width: calc(100% - 75px); /* Ensure it doesn't exceed container width minus image width */
    overflow: hidden;
}

.file-info span {
    font-weight: 500;
    color: #333;
    flex: 1;
    min-width: 0; /* Allow text to shrink */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px; /* Reduced max width */
}

/* Hide filename when too long to prevent stretching */
.file-info span.long-filename {
    display: none;
}

.remove-file {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.file-upload-display.has-file {
    border-color: #00a86b;
    background: #f0fdf4;
}

.file-upload-display.has-file .file-upload-placeholder {
    display: none;
}

.file-upload-display.has-file .file-upload-preview {
    display: flex;
}

.file-upload-display.uploading {
    border-color: #00a86b;
    background: #f0fdf4;
}

.file-upload-display.uploading .file-upload-placeholder i {
    color: #00a86b;
}

/* Image Viewer Modal Styles */
.image-viewer-modal {
    z-index: 20000;
    background: rgba(0, 0, 0, 0.9);
}

.image-viewer-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 20001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-viewer-close:hover {
    background: white;
    transform: scale(1.1);
}

.image-viewer-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.viewer-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.viewer-image:hover {
    transform: scale(1.02);
}

.image-viewer-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-viewer-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.image-viewer-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Clickable preview styles */
.clickable-preview {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.clickable-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive styles for image viewer */
@media (max-width: 768px) {
    .image-viewer-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
    }
    
    .image-viewer-close {
        top: -35px;
        right: -5px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .viewer-image {
        max-height: 70vh;
        border-radius: 6px;
    }
    
    .image-viewer-info {
        padding: 12px 16px;
        margin-top: 10px;
        border-radius: 6px;
    }
    
    .image-viewer-info h3 {
        font-size: 1rem;
    }
    
    .image-viewer-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .image-viewer-content {
        max-width: 98vw;
        max-height: 98vh;
        margin: 5px;
    }
    
    .image-viewer-close {
        top: -30px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .viewer-image {
        max-height: 60vh;
    }
    
    .image-viewer-info {
        padding: 10px 12px;
        margin-top: 8px;
    }
    
    .image-viewer-info h3 {
        font-size: 0.9rem;
    }
    
    .image-viewer-info p {
        font-size: 0.75rem;
    }
}

/* GCash Modal Styles */
.gcash-icon {
    margin-bottom: 15px;
}

.gcash-icon i {
    font-size: 4rem;
    color: #00a651;
}

.minimum-deposit {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.minimum-deposit strong {
    color: #856404;
    font-size: 1.1rem;
    font-weight: 600;
}

.gcash-details {
    margin-top: 20px;
}

.gcash-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    margin-bottom: 20px;
}

.gcash-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.gcash-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-group {
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.calendar-nav-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.calendar-nav-btn:active {
    transform: scale(0.95);
}

#currentMonthYear {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-color.available {
    background: #d4edda;
    border-color: #c3e6cb;
}

.legend-color.reserved {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.legend-color.booked {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.legend-color.blocked {
    background: #e2e3e5;
    border-color: #d6d8db;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: #495057;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    position: relative;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.available {
    background: #d4edda !important;
    color: #155724 !important;
    font-weight: 500;
}

.calendar-day.available:hover {
    background: #c3e6cb;
}

.calendar-day.reserved {
    background: #f8f9fa !important;
    color: #6c757d !important;
    font-weight: 500;
    cursor: not-allowed;
    border: 1px solid #dee2e6;
}

.calendar-day.booked {
    background: #f8d7da !important;
    color: #721c24 !important;
    font-weight: 500;
    cursor: not-allowed;
}

.calendar-day.blocked {
    background: #e2e3e5;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.today {
    font-weight: 600;
    background: rgba(0, 123, 255, 0.1);
}

.calendar-day.selected {
    background: #007bff !important;
    color: white !important;
    font-weight: 600;
}

/* Mobile Responsive Calendar */
@media (max-width: 768px) {
    .calendar-container {
        padding: 15px;
    }
    
    .calendar-header {
        margin-bottom: 15px;
    }
    
    .calendar-nav-btn {
        padding: 8px 12px;
    }
    
    #currentMonthYear {
        font-size: 1.1rem;
    }
    
    .calendar-legend {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
    
    .calendar-day-header {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        padding: 10px 6px;
        min-height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 12px;
    }
    
    .calendar-legend {
        gap: 10px;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .calendar-day-header {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        padding: 8px 4px;
        min-height: 32px;
        font-size: 0.75rem;
    }
}

.gcash-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.gcash-number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00a651;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid #00a651;
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.copy-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.payment-instructions {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
}

.payment-instructions h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.payment-instructions ol {
    margin-left: 20px;
    color: #555;
    line-height: 1.6;
}

.payment-instructions li {
    margin-bottom: 8px;
}

.payment-instructions li:last-child {
    margin-bottom: 0;
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav-group {
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.calendar-nav-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.calendar-nav-btn:active {
    transform: scale(0.95);
}

#currentMonthYear {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.legend-color.available {
    background: #d4edda;
    border-color: #c3e6cb;
}

.legend-color.reserved {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.legend-color.booked {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.legend-color.blocked {
    background: #e2e3e5;
    border-color: #d6d8db;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: #495057;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    position: relative;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.available {
    background: #d4edda !important;
    color: #155724 !important;
    font-weight: 500;
}

.calendar-day.available:hover {
    background: #c3e6cb;
}

.calendar-day.reserved {
    background: #f8f9fa !important;
    color: #6c757d !important;
    font-weight: 500;
    cursor: not-allowed;
    border: 1px solid #dee2e6;
}

.calendar-day.booked {
    background: #f8d7da !important;
    color: #721c24 !important;
    font-weight: 500;
    cursor: not-allowed;
}

.calendar-day.blocked {
    background: #e2e3e5;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.calendar-day.today {
    font-weight: 600;
    background: rgba(0, 123, 255, 0.1);
}

.calendar-day.selected {
    background: #007bff !important;
    color: white !important;
    font-weight: 600;
}

/* Mobile Responsive Calendar */
@media (max-width: 768px) {
    .calendar-container {
        padding: 15px;
    }
    
    .calendar-header {
        margin-bottom: 15px;
    }
    
    .calendar-nav-btn {
        padding: 8px 12px;
    }
    
    #currentMonthYear {
        font-size: 1.1rem;
    }
    
    .calendar-legend {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
    
    .calendar-day-header {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        padding: 10px 6px;
        min-height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 12px;
    }
    
    .calendar-legend {
        gap: 10px;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .calendar-day-header {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        padding: 8px 4px;
        min-height: 32px;
        font-size: 0.75rem;
    }
}

