/**
 * Brand Soluxions Inc. - Book Now Page Mobile Responsiveness
 * Dedicated styles for book-now.php mobile view
 */

/* ===== Tablet (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Page Hero */
    .book-hero {
        padding: 120px 0 60px;
    }
    
    .book-hero h1 {
        font-size: 32px;
    }
    
    .book-hero p {
        font-size: 15px;
    }
    
    /* Booking Section */
    .booking-section {
        padding: 50px 0;
    }
    
    .booking-section .container {
        padding: 0 20px;
    }
    
    .booking-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    
    /* Booking Benefits - 2x2 Grid Layout */
    .booking-benefits {
        order: 2;
        text-align: center;
    }
    
    .booking-benefits h2 {
        font-size: 24px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    /* Create 2x2 grid for benefit items */
    .booking-benefits {
        display: block;
    }
    
    .booking-benefits h2 ~ .benefit-item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        margin-bottom: 20px;
        width: 48%;
        vertical-align: top;
        padding: 15px 10px;
        box-sizing: border-box;
    }
    
    .benefit-item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        margin-bottom: 20px;
        width: 48%;
        vertical-align: top;
        padding: 15px 10px;
        box-sizing: border-box;
    }
    
    .benefit-icon {
        width: 45px;
        height: 45px;
    }
    
    .benefit-icon i {
        font-size: 18px;
    }
    
    .benefit-content {
        text-align: center;
    }
    
    .benefit-content h4 {
        font-size: 15px;
        margin-bottom: 6px;
        text-align: center;
    }
    
    .benefit-content p {
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
    }
    
    /* Booking Form Wrapper */
    .booking-form-wrapper {
        order: 1;
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .booking-form-wrapper h2 {
        font-size: 22px;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .booking-form-wrapper > p {
        font-size: 14px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    /* Booking Form */
    .booking-form .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .booking-form .form-group {
        margin-bottom: 15px;
    }
    
    .booking-form .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
        display: block;
    }
    
    .booking-form .form-group input,
    .booking-form .form-group select,
    .booking-form .form-group textarea {
        padding: 12px 14px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .booking-form .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    /* Checkbox Group - Properly Aligned */
    .checkbox-group {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 15px;
    }
    
    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        justify-content: flex-start;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .checkbox-label span {
        line-height: 1.2;
    }
    
    /* Submit Button */
    .booking-form .btn,
    .booking-form button[type="submit"] {
        width: 100%;
        padding: 14px 30px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* ===== Mobile Phones (max-width: 480px) ===== */
@media (max-width: 480px) {
    /* Page Hero */
    .book-hero {
        padding: 100px 0 50px;
    }
    
    .book-hero h1 {
        font-size: 28px;
    }
    
    .book-hero p {
        font-size: 14px;
    }
    
    /* Booking Section */
    .booking-section {
        padding: 40px 0;
    }
    
    .booking-section .container {
        padding: 0 15px;
    }
    
    .booking-grid {
        gap: 30px;
    }
    
    /* Booking Benefits - 2x2 Grid Layout */
    .booking-benefits {
        text-align: center;
    }
    
    .booking-benefits h2 {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .benefit-item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-bottom: 15px;
        width: 48%;
        vertical-align: top;
        padding: 12px 8px;
        box-sizing: border-box;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
    }
    
    .benefit-icon i {
        font-size: 16px;
    }
    
    .benefit-content {
        text-align: center;
    }
    
    .benefit-content h4 {
        font-size: 14px;
        margin-bottom: 4px;
        text-align: center;
    }
    
    .benefit-content p {
        font-size: 11px;
        line-height: 1.3;
        text-align: center;
    }
    
    /* Booking Form Wrapper */
    .booking-form-wrapper {
        padding: 20px 15px;
    }
    
    .booking-form-wrapper h2 {
        font-size: 20px;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .booking-form-wrapper > p {
        font-size: 13px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* Booking Form */
    .booking-form .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .booking-form .form-group {
        margin-bottom: 12px;
    }
    
    .booking-form .form-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .booking-form .form-group input,
    .booking-form .form-group select,
    .booking-form .form-group textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .booking-form .form-group textarea {
        min-height: 90px;
    }
    
    /* Checkbox Group - Properly Aligned */
    .checkbox-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 12px;
    }
    
    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        justify-content: flex-start;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .checkbox-label span {
        line-height: 1.2;
    }
    
    /* Submit Button */
    .booking-form .btn,
    .booking-form button[type="submit"] {
        width: 100%;
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ===== Extra Small Phones (max-width: 360px) ===== */
@media (max-width: 360px) {
    /* Page Hero */
    .book-hero {
        padding: 90px 0 40px;
    }
    
    .book-hero h1 {
        font-size: 24px;
    }
    
    .book-hero p {
        font-size: 13px;
    }
    
    /* Booking Section */
    .booking-section {
        padding: 35px 0;
    }
    
    .booking-section .container {
        padding: 0 12px;
    }
    
    .booking-grid {
        gap: 25px;
    }
    
    /* Booking Benefits - 2x2 Grid Layout */
    .booking-benefits h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .benefit-item {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-bottom: 12px;
        width: 48%;
        vertical-align: top;
        padding: 10px 5px;
        box-sizing: border-box;
    }
    
    .benefit-icon {
        width: 34px;
        height: 34px;
    }
    
    .benefit-icon i {
        font-size: 13px;
    }
    
    .benefit-content h4 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .benefit-content p {
        font-size: 10px;
        line-height: 1.3;
    }
    
    /* Booking Form Wrapper */
    .booking-form-wrapper {
        padding: 15px 12px;
    }
    
    .booking-form-wrapper h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .booking-form-wrapper > p {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    /* Booking Form */
    .booking-form .form-group {
        margin-bottom: 10px;
    }
    
    .booking-form .form-group label {
        font-size: 11px;
    }
    
    .booking-form .form-group input,
    .booking-form .form-group select,
    .booking-form .form-group textarea {
        padding: 9px 10px;
        font-size: 13px;
    }
    
    .booking-form .form-group textarea {
        min-height: 80px;
    }
    
    /* Checkbox Group - Properly Aligned */
    .checkbox-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
    }
    
    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        justify-content: flex-start;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin: 0;
        flex-shrink: 0;
    }
    
    /* Submit Button */
    .booking-form .btn,
    .booking-form button[type="submit"] {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ===== iPhone SE and similar (375px width) ===== */
@media (max-width: 375px) {
    .book-hero h1 {
        font-size: 24px;
    }
    
    .booking-benefits h2,
    .booking-form-wrapper h2 {
        font-size: 19px;
    }
    
    .booking-form-wrapper {
        padding: 18px 14px;
    }
    
    .benefit-item {
        width: 48%;
        padding: 10px 6px;
    }
    
    .benefit-icon {
        width: 36px;
        height: 36px;
    }
    
    .benefit-icon i {
        font-size: 14px;
    }
    
    .benefit-content h4 {
        font-size: 12px;
    }
    
    .benefit-content p {
        font-size: 10px;
    }
    
    .checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Modern Date Picker Styling ===== */
/* Date input styling for a modern, elegant look */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    background-color: #fff;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Custom calendar icon */
.form-group input[type="date"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300a5a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-group input[type="date"]:focus {
    border-color: #00a5a8;
    box-shadow: 0 0 0 3px rgba(0, 165, 168, 0.15);
    outline: none;
}

.form-group input[type="date"]:hover {
    border-color: #00a5a8;
}

/* Style for the date text */
input[type="date"]:not(:placeholder-shown),
input[type="date"]:valid {
    color: #1a1a2e;
}

input[type="date"]:invalid {
    color: #666666;
}
