/**
 * Modern Booking Form Styles
 * Elegant, minimal design matching the reference image
 */

/* Form Container */
.phb-modern-form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.phb-modern-form {
    background-color: #EDE8E0;
    padding: 60px;
    border-radius: 0;
}

/* Tab Buttons */
.phb-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.phb-tab-btn {
    padding: 16px 40px;
    border: none;
    background: transparent;
    color: #6B7B6A;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.phb-tab-btn.active {
    background-color: #1E3A2F;
    color: #FFFFFF;
}

.phb-tab-btn:not(.active):hover {
    color: #1E3A2F;
}

/* Form Grid */
.phb-form-content {
    max-width: 700px;
    margin: 0 auto;
}

.phb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.phb-form-row:has(.phb-form-col-full) {
    grid-template-columns: 1fr;
}

.phb-form-row.phb-dates-row {
    margin-top: 40px;
}

.phb-form-col {
    display: flex;
    flex-direction: column;
}

/* Input Fields */
.phb-field-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #2C3E2D;
    margin-bottom: 8px;
}

.phb-modern-input,
.phb-modern-select,
.phb-modern-textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #D4CFC7;
    border-bottom-color: #1E3A2F;
    background: transparent;
    font-size: 15px;
    color: #2C3E2D;
    outline: none;
    transition: border-color 0.3s ease;
}

.phb-modern-input:focus,
.phb-modern-select:focus,
.phb-modern-textarea:focus {
    border-bottom-color: #1E3A2F;
}

.phb-modern-input::placeholder,
.phb-modern-textarea::placeholder {
    color: #9B9B9B;
}

.phb-modern-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E2D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    cursor: pointer;
}

/* Booking Period Selector */
.phb-booking-period {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 40px 0 30px;
}

.phb-booking-for-label {
    font-size: 14px;
    color: #2C3E2D;
    min-width: 90px;
}

.phb-period-selector {
    display: flex;
    gap: 15px;
}

.phb-period-btn {
    padding: 12px 24px;
    border: 1px solid #D4CFC7;
    background: transparent;
    color: #6B7B6A;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phb-period-btn.active {
    background: #FFFFFF;
    border-color: #2C3E2D;
    color: #2C3E2D;
}

.phb-period-btn:not(.active):hover {
    border-color: #6B7B6A;
    color: #2C3E2D;
}

/* Room Counter */
.phb-room-counter {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.phb-room-label {
    font-size: 14px;
    color: #2C3E2D;
    min-width: 90px;
}

.phb-counter-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phb-counter-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #D4CFC7;
    background: #FFFFFF;
    color: #6B7B6A;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phb-counter-btn:hover {
    border-color: #1E3A2F;
    color: #1E3A2F;
}

.phb-room-count {
    font-size: 32px;
    font-weight: 300;
    color: #1E3A2F;
    min-width: 40px;
    text-align: center;
}

.phb-room-hint {
    font-size: 12px;
    color: #9B9B9B;
    margin-left: 10px;
}

/* Date Fields */
.phb-date-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9B9B9B;
    margin-bottom: 8px;
}

.phb-date-wrapper {
    position: relative;
}

.phb-date-wrapper .phb-modern-input {
    padding-right: 35px;
}

.phb-date-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #2C3E2D;
    cursor: pointer;
    pointer-events: none;
}

/* Textarea */
.phb-textarea-wrapper {
    margin: 40px 0;
}

.phb-modern-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Tab Content */
.phb-tab-content {
    display: none;
}

.phb-tab-content.active {
    display: block;
}

/* Venue Fields */
.phb-venue-fields {
    margin-bottom: 30px;
}

/* Price Box */
.phb-price-box {
    background: #FFFFFF;
    border: 1px solid #D4CFC7;
    padding: 30px 35px;
    margin: 40px 0;
}

.phb-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.phb-price-calc {
    font-size: 15px;
    color: #6B7B6A;
}

.phb-price-total {
    font-size: 28px;
    font-weight: 400;
    color: #1E3A2F;
}

.phb-price-note {
    font-size: 12px;
    color: #9B9B9B;
    margin: 0;
}

/* Submit Button */
.phb-submit-wrapper {
    text-align: center;
    margin-top: 40px;
}

.phb-submit-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 60px;
    background: #1E3A2F;
    color: #FFFFFF;
    border: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phb-submit-modern:hover {
    background: #2C4D3F;
    transform: translateY(-2px);
}

.phb-btn-icon {
    font-size: 16px;
}

/* Form Messages */
.phb-calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--phb-gray-200);
}

/* Limited availability - less than minimum required rooms */
.phb-calendar-day.limited {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.phb-calendar-day.limited:hover:not(.disabled):not(.other-month) {
    background: #ffeaa7;
}

/* Fully booked */
.phb-calendar-day.fully-booked,
.phb-calendar-day.disabled {
    background: #f8d7da;
    color: #721c24;
    opacity: 0.5;
    cursor: not-allowed;
}

.phb-calendar-day.checkin-or-before {
    background: #ffebee;
    color: #c62828;
}

.phb-form-messages .phb-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ffc107;
    margin: 10px 0;
}

.phb-form-messages .phb-success {
    color: #1E3A2F;
    font-size: 14px;
    padding: 15px;
    background: rgba(30, 58, 47, 0.1);
}

.phb-form-messages .phb-error {
    color: #c0392b;
    font-size: 14px;
    padding: 15px;
    background: rgba(192, 57, 43, 0.1);
}

/* Success Container - Thank You Message */
.phb-success-container {
    text-align: center;
    padding: 60px 40px;
    background: #FFFFFF;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.phb-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: #22C55E;
    animation: phb-scale-in 0.5s ease;
}

.phb-success-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes phb-scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.phb-success-title {
    font-size: 32px;
    font-weight: 500;
    color: #1E3A2F;
    margin: 0 0 15px;
    letter-spacing: 1px;
}

.phb-success-text {
    font-size: 16px;
    color: #6B7B6A;
    margin: 0 0 30px;
    line-height: 1.6;
}

.phb-booking-card {
    background: #F8F6F3;
    border: 2px dashed #1E3A2F;
    border-radius: 8px;
    padding: 25px 40px;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.phb-booking-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6B7B6A;
}

.phb-booking-number {
    font-size: 36px;
    font-weight: 600;
    color: #1E3A2F;
}

.phb-email-note {
    font-size: 14px;
    color: #9B9B9B;
    margin: 20px 0 30px;
}

.phb-btn-large {
    padding: 18px 50px;
    font-size: 14px;
}

/* Date Picker Customization */
.phb-datepicker {
    font-family: inherit;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .phb-modern-form {
        padding: 40px 25px;
    }
    
    .phb-form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .phb-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .phb-tab-btn {
        width: 100%;
    }
    
    .phb-booking-period {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .phb-room-counter {
        flex-wrap: wrap;
    }
    
    .phb-period-selector {
        width: 100%;
    }
    
    .phb-period-btn {
        flex: 1;
    }
    
    .phb-price-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .phb-submit-modern {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .phb-modern-form {
        padding: 30px 20px;
    }
    
    .phb-room-counter {
        gap: 10px;
    }
    
    .phb-counter-btn {
        width: 38px;
        height: 38px;
    }
    
    .phb-room-count {
        font-size: 26px;
    }
}
