/**
 * Demo Booking Page Styles - Public Page
 * Clean, modern design for booking form
 */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    background-color: #fff;
}

.navbar .container {
    width: 100%;
    max-width: 100%;
}

.navbar-header {
    float: left;
    width: auto;
}

.navbar-brand {
    padding: 10px 15px;
    display: inline-block;
    float: left;
}

.navbar-nav {
    float: right;
    margin: 0;
}

.navbar-nav > li {
    float: left;
}

.navbar-nav > li > a {
    color: #333;
    font-weight: 500;
    padding: 15px 20px;
    display: block;
}

/* Prevent horizontal scroll */
* {
    box-sizing: border-box;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-nav > li > a:hover {
    color: #EF5350;
}

/* Mobile Header (visible only on mobile) */
.mobile-header {
    display: none;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

.mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    max-width: 100%;
}

.mobile-logo {
    flex-shrink: 0;
    display: inline-block;
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}

.mobile-nav li {
    display: inline-block;
}

.mobile-nav li a {
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-nav li a:hover {
    color: #EF5350;
}

/* Demo Info Section */
.demo-info-section {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.demo-title {
    font-size: 42px;
    font-weight: 700;
    color: #EF5350;
    margin-bottom: 10px;
}

.demo-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.info-box {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    margin-top: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.info-box h3 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.info-box h3 i {
    color: #EF5350;
    margin-right: 10px;
}

.info-box p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.highlight-box {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 0;
    margin-top: 0;
}

.highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.highlight-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.highlight-box h3 i {
    color: #EF5350;
    margin-right: 10px;
}

.highlight-box p {
    color: #333;
}

/* Action Buttons Container - Horizontal (for bottom) */
.action-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 900px;
}

/* Action Buttons Vertical - Left Side */
.action-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 0;
}

.action-box {
    flex: 1;
    min-width: 100%;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

.trial-box {
    background: #fff;
    color: #333;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 0;
    margin-top: 0;
}

.trial-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.trial-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.trial-box h3 i {
    color: #EF5350;
    margin-right: 10px;
}

.trial-box p {
    color: #333;
}

.btn-trial {
    background-color: #66BB6A;
    color: #fff;
    border: 2px solid #66BB6A;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-trial:hover,
.btn-trial:focus {
    background-color: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    text-decoration: none;
}

.btn-trial i {
    margin-right: 8px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 6px 0;
    color: #333;
    font-size: 16px;
}

.feature-list li i {
    color: #66BB6A;
    margin-right: 10px;
    font-size: 16px;
}

/* Form Container */
.demo-form-container {
    background: #ff4d4d;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-top: 0;
}

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

.form-header h3 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.form-header p {
    color: #fff;
    font-size: 16px;
}

.demo-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.form-group .text-danger {
    color: #fff;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    height: 45px;
    line-height: 1.5;
}

select.form-control {
    height: 45px;
    padding: 10px 15px;
}

input[type="date"].form-control,
input[type="time"].form-control {
    height: 45px;
    padding: 12px 15px;
}

/* Datepicker Styling */
.input-group.date {
    position: relative;
}

.input-group-addon {
    background-color: #EF5350;
    border-color: #EF5350;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.input-group-addon:hover {
    background-color: #E53935;
    border-color: #E53935;
}

.input-group-addon i {
    font-size: 16px;
}

#datepicker-wrapper input.form-control {
    cursor: pointer;
    background-color: #fff;
}

#datepicker-wrapper input.form-control:focus {
    border-color: #EF5350;
    box-shadow: 0 0 0 0.2rem rgba(239, 83, 80, 0.15);
}

/* Bootstrap Datepicker Custom Styles */
.datepicker {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background-color: #EF5350 !important;
    background-image: none !important;
    color: #fff !important;
}

.datepicker table tr td.today {
    background-color: #ffebee;
    color: #EF5350;
    font-weight: 600;
}

.datepicker table tr td.today:hover {
    background-color: #ffcdd2;
}

.datepicker table tr td.day:hover {
    background-color: #ffebee;
}

.datepicker table tr th.prev,
.datepicker table tr th.next {
    color: #EF5350;
}

.datepicker table tr th.prev:hover,
.datepicker table tr th.next:hover {
    background-color: #ffebee;
    color: #E53935;
}

.datepicker table thead tr:first-child th {
    background-color: #EF5350;
    color: #fff;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
}

.datepicker table thead tr:first-child th:hover {
    background-color: #E53935;
}

.datepicker table thead tr:last-child th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
}

/* Time dropdown with icon */
.input-group select.form-control {
    padding-right: 45px;
}

.form-control:focus {
    border-color: #EF5350;
    box-shadow: 0 0 0 0.2rem rgba(239, 83, 80, 0.15);
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

.btn-primary {
    background-color: #164078;
    border-color: #164078;
    font-weight: 600;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #164078;
    border-color: #164078;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

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

.btn-lg {
    padding: 16px 30px;
    font-size: 18px;
}

/* Alert Messages */
.alert {
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

.alert-success {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

/* Success Container */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 80px;
    color: #66BB6A;
    margin-bottom: 20px;
}

.success-container h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.success-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    border-top: 1px solid #e0e0e0;
}

.footer p {
    margin: 10px 0;
    color: #666;
}

.footer a {
    color: #EF5350;
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Row alignment - ensure both columns start at same vertical position */
.container > .row {
    display: flex;
    align-items: flex-start;
}

.container > .row > .col-md-5,
.container > .row > .col-md-7 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        display: none !important;
    }
    
    .mobile-header {
        display: block;
        min-height: 56px;
    }
    
    .mobile-logo img {
        max-height: 38px;
    }
    
    .mobile-nav li a {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    #main-container,
    .container {
        margin-top: 56px !important;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .demo-form-container {
        margin-top: 0;
    }
    
    /* Reorder columns - form first, then info section */
    .container > .row {
        flex-direction: column;
        display: flex;
    }
    
    .col-md-5 {
        order: 2;
        width: 100%;
        margin-bottom: 0;
    }
    
    .col-md-7 {
        order: 1;
        width: 100%;
        margin-bottom: 30px;
    }
    
    /* Reorder elements within left column - Key Features first, buttons last */
    .demo-info-section {
        display: flex;
        flex-direction: column;
    }
    
    .info-box {
        order: 1;
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .action-buttons-vertical {
        order: 2;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .demo-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .demo-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .demo-form-container {
        padding: 20px 15px;
        margin-top: 0;
    }
    
    .form-header h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .info-box h3,
    .highlight-box h3,
    .trial-box h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .feature-list li {
        font-size: 14px;
        padding: 6px 0;
    }
    
    .highlight-box,
    .trial-box {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .highlight-box p,
    .trial-box p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .btn-trial {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        font-size: 14px;
        padding: 10px 12px;
        height: 42px;
    }
    
    select.form-control {
        height: 42px;
        padding: 8px 12px;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
    }
    
    
    .footer {
        margin-top: 0;
        padding: 20px 0;
    }
    
    .footer p {
        font-size: 13px;
        margin: 8px 0;
    }
    
    .footer a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .navbar {
        display: none !important;
    }
    
    .mobile-header {
        display: block;
        padding: 6px 0;
        min-height: 48px;
    }
    
    .mobile-header-container {
        padding: 0 10px;
    }
    
    .mobile-logo img {
        max-height: 32px;
    }
    
    .mobile-nav li a {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    #main-container,
    .container {
        margin-top: 48px !important;
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .demo-form-container {
        margin-top: 0;
    }
    
    .demo-title {
        font-size: 24px;
    }
    
    .demo-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .demo-form-container {
        padding: 15px 10px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-header p {
        font-size: 13px;
    }
    
    .info-box,
    .highlight-box,
    .trial-box {
        padding: 15px 10px;
        margin-bottom: 12px;
    }
    
    .info-box h3,
    .highlight-box h3,
    .trial-box h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .feature-list li {
        font-size: 13px;
        padding: 5px 0;
    }
    
    .form-control {
        font-size: 13px;
        padding: 8px 10px;
        height: 40px;
    }
    
    select.form-control {
        height: 40px;
        padding: 6px 10px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-trial {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    
    .footer {
        padding: 15px 0;
    }
    
    .footer p {
        font-size: 12px;
        margin: 5px 0;
    }
    
    .footer a {
        font-size: 11px;
    }
    
    .col-md-7 {
        margin-bottom: 20px;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}
