/**
 * Hotel Booking Form Styles
 *
 * @package Kumrat_Tourism_OS
 */

/* Hotel Form Container */
.pdp-hotel-form {
    font-family: inherit;
}

/* Room Info Section */
.pdp-room-info {
    background: linear-gradient(135deg, #1e5c45 0%, #2d8a65 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    color: #fff;
}

.pdp-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.pdp-room-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.pdp-room-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pdp-price-label {
    font-size: 14px;
    opacity: 0.9;
}

.pdp-price-value {
    font-size: 28px;
    font-weight: 700;
}

.pdp-price-suffix {
    font-size: 14px;
    opacity: 0.8;
}

/* Room Specs */
.pdp-room-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pdp-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 12px 16px;
    border-radius: 10px;
}

.pdp-spec-icon {
    font-size: 20px;
}

.pdp-spec-text {
    font-size: 14px;
    font-weight: 500;
}

/* Room Amenities */
.pdp-room-amenities {
    background: rgba(255,255,255,0.1);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
}

.pdp-amenities-label {
    font-weight: 600;
    margin-right: 8px;
}

.pdp-amenities-list {
    opacity: 0.9;
}

/* Section Titles */
.pdp-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dates Section */
.pdp-dates-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.pdp-date-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.pdp-date-box {
    display: flex;
    flex-direction: column;
}

.pdp-date-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.pdp-date-input {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
}

.pdp-date-input:focus {
    border-color: #1e5c45;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 92, 69, 0.1);
}

/* Total Nights Display */
.pdp-total-nights {
    background: #1e5c45;
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.pdp-nights-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pdp-nights-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.pdp-nights-text {
    font-size: 18px;
    font-weight: 500;
}

.pdp-nights-detail {
    font-size: 14px;
    opacity: 0.9;
}

/* Guests Section */
.pdp-guests-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.pdp-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.pdp-guest-row:last-of-type {
    border-bottom: none;
}

.pdp-guest-info {
    display: flex;
    flex-direction: column;
}

.pdp-guest-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.pdp-guest-age {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Counter */
.pdp-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdp-cbtn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.pdp-cbtn:hover {
    border-color: #1e5c45;
    color: #1e5c45;
}

.pdp-cbtn:active {
    transform: scale(0.95);
}

.pdp-counter input[type="number"] {
    width: 60px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    font-size: 18px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.pdp-counter input[type="number"]::-webkit-outer-spin-button,
.pdp-counter input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Extra Mattress Option */
.pdp-mattress-option {
    margin-top: 16px;
    padding: 20px;
    background: #fff;
    border: 2px solid #1e5c45;
    border-radius: 12px;
}

.pdp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.pdp-checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #1e5c45;
    cursor: pointer;
}

.pdp-checkbox-text {
    display: flex;
    flex-direction: column;
}

.pdp-checkbox-text strong {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.pdp-mattress-price {
    font-size: 14px;
    color: #1e5c45;
    font-weight: 600;
}

/* Guest Info Section */
.pdp-guest-info-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.pdp-form-row {
    margin-bottom: 16px;
}

.pdp-form-row:last-child {
    margin-bottom: 0;
}

.pdp-form-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pdp-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
}

.pdp-input:focus {
    border-color: #1e5c45;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 92, 69, 0.1);
}

/* Requests Section */
.pdp-requests-section {
    margin-bottom: 24px;
}

.pdp-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.pdp-textarea:focus {
    border-color: #1e5c45;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 92, 69, 0.1);
}

/* Price Summary */
.pdp-price-summary {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.pdp-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdp-break-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
}

.pdp-break-item:last-child {
    border-bottom: none;
}

.pdp-total-row {
    background: #1e5c45;
    color: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 17px;
}

.pdp-total-row span {
    color: #fff !important;
}

/* Policy Notice */
.pdp-policy-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.pdp-policy-notice p {
    margin: 0 0 10px;
    font-weight: 600;
    color: #856404;
}

.pdp-policy-notice ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
    font-size: 13px;
}

.pdp-policy-notice li {
    margin-bottom: 6px;
}

/* Book Button */
.pdp-book-btn {
    width: 100%;
    padding: 20px 28px;
    background: linear-gradient(135deg, #1e5c45 0%, #2d8a65 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.pdp-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 92, 69, 0.3);
}

.pdp-book-text {
    font-size: 17px;
}

.pdp-book-price {
    background: rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 600px) {
    .pdp-room-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdp-room-price {
        width: 100%;
        justify-content: flex-start;
    }
    
    .pdp-room-specs {
        grid-template-columns: 1fr;
    }
    
    .pdp-date-row {
        grid-template-columns: 1fr;
    }
    
    .pdp-total-nights {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .pdp-guest-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pdp-form-cols {
        grid-template-columns: 1fr;
    }
    
    .pdp-book-btn {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Mattress row animation */
.pdp-mattress-row {
    transition: all 0.3s ease;
}

.pdp-mattress-row[style*="display: none"] {
    display: none !important;
}

.pdp-mattress-row:not([style*="display: none"]) {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
