/* ===================================
   Skip Hire Booking System - Frontend Styles (No Shadows)
   =================================== */

/* Postcode Form Styles */
.shbs-postcode-wrapper {
    background: transparent;
    padding: 0;
    margin: 20px 0;
}

.shbs-postcode-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 50px;
    padding: 10px 10px 10px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.shbs-postcode-content {
    width: 100%;
}

.shbs-postcode-form {
    display: flex;
    align-items: center;
    gap: 20px;
}

.shbs-input-wrapper {
    flex: 1;
}

.shbs-postcode-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    background: transparent;
    padding: 8px 0;
}

.shbs-postcode-input::placeholder {
    color: #999999;
    opacity: 1;
}

.shbs-postcode-button {
    background: #1193eb;
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 12px 35px;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

.shbs-postcode-button:hover {
    background: #1907c0;
    color: #ffffff;
}

.shbs-postcode-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
}

.shbs-postcode-message.success {
    background: #ecedf9;
    color: #1907c0;
    border: 1px solid #d4d6ea;
}

.shbs-postcode-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Postcode Already Set Styles */
.shbs-postcode-set .shbs-postcode-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.shbs-postcode-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.shbs-postcode-confirmed {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
}

.shbs-postcode-confirmed strong {
    font-size: 18px;
    color: #1907c0;
}

.shbs-region-badge {
    background: #1907c0;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.shbs-change-link {
    color: #1193eb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.shbs-change-link:hover {
    text-decoration: underline;
}

/* Ensure button styling is consistent when postcode is set */
.shbs-postcode-button-set {
    padding: 15px 30px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* Custom Product Fields — styling lives in product-fields.css (no panel here) */
.shbs-field-group {
    margin-bottom: 25px;
}

.shbs-field-group:last-child {
    margin-bottom: 0;
}

.shbs-field-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #1907c0;
}

.shbs-field-label .required {
    color: #d63638;
}

.shbs-datepicker {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
}

.shbs-datepicker:focus {
    border-color: #1193eb;
    outline: none;
}

.shbs-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
}

.shbs-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.shbs-checkbox-text {
    flex: 1;
}

.shbs-field-description {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.shbs-restrictions-info {
    margin-top: 12px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #d63638;
}

.shbs-restrictions-list {
    margin: 10px 0 0 20px;
    font-size: 14px;
    color: #666;
}

.shbs-restrictions-list li {
    margin-bottom: 6px;
}

/* Region Info on Product Page */
.shbs-region-info {
    background: #ecedf9;
    border-left: 4px solid #1907c0;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.shbs-region-message {
    margin: 0;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shbs-region-message strong {
    font-size: 18px;
    color: #1907c0;
}

.shbs-change-postcode {
    color: #1193eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}

.shbs-change-postcode:hover {
    text-decoration: underline;
}

.shbs-price-modifier {
    margin: 0;
    font-size: 14px;
}

.shbs-modifier-positive {
    color: #d63638;
    font-weight: 600;
}

.shbs-modifier-negative {
    color: #00a32a;
    font-weight: 600;
}

.shbs-no-region-info {
    margin-bottom: 20px;
}

/* Pricing Table */
.shbs-pricing-table-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.shbs-pricing-table-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1907c0;
}

.shbs-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.shbs-pricing-table thead {
    background: #1907c0;
    color: white;
}

.shbs-pricing-table th,
.shbs-pricing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.shbs-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.shbs-pricing-table tbody tr:hover {
    background: #f5f5f5;
}

.shbs-postcodes {
    font-family: monospace;
    font-size: 14px;
}

.shbs-price {
    font-weight: 600;
    color: #1907c0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .shbs-postcode-container {
        flex-direction: column;
        border-radius: 30px;
        padding: 15px;
        gap: 15px;
    }
    
    .shbs-postcode-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .shbs-postcode-input {
        font-size: 18px;
        padding: 10px 15px;
        text-align: center;
    }
    
    .shbs-postcode-button {
        width: 100%;
        padding: 15px 30px;
        font-size: 15px;
        font-weight: 500;
    }
    
    .shbs-postcode-set .shbs-postcode-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .shbs-postcode-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .shbs-postcode-confirmed {
        justify-content: center;
    }
    
    .shbs-postcode-button-set {
        width: 100%;
        text-align: center;
    }
    
    .shbs-custom-fields {
        padding: 20px 15px;
    }
    
    .shbs-field-label {
        font-size: 15px;
    }
    
    .shbs-pricing-table {
        font-size: 14px;
    }
    
    .shbs-pricing-table th,
    .shbs-pricing-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .shbs-postcode-input {
        font-size: 20px;
    }
    
    .shbs-postcode-button {
        font-size: 18px;
    }
    
    .shbs-pricing-table-wrapper {
        padding: 15px;
        margin: 20px -15px;
    }
    
    .shbs-pricing-table {
        font-size: 12px;
    }
    
    .shbs-pricing-table th,
    .shbs-pricing-table td {
        padding: 8px;
    }
}

/* jQuery UI Datepicker Customization */
.ui-datepicker {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

.ui-datepicker-header {
    background: #1907c0;
    color: white;
    border-radius: 6px 6px 0 0;
    padding: 10px;
}

.ui-datepicker-title {
    color: white;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
}

.ui-state-default {
    border: 1px solid #ddd;
    background: white;
    text-align: center;
}

.ui-state-hover,
.ui-state-active {
    background: #1193eb;
    color: white;
    border-color: #1193eb;
}

.ui-state-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
/* ===================================
   Error Modal Lightbox
   =================================== */

.shbs-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shbs-error-modal.active {
    opacity: 1;
    visibility: visible;
}

.shbs-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.shbs-error-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: shbsModalSlideIn 0.3s ease;
    position: relative;
}

.shbs-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

@keyframes shbsModalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.shbs-error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #fee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shbs-error-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.shbs-error-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 35px 0;
}

.shbs-error-message a {
    color: #1907c0;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #1907c0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.shbs-error-message a:hover {
    color: #1193eb;
    border-bottom-color: #1193eb;
}

.shbs-error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.shbs-error-retry {
    background: #1907c0;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.shbs-error-retry:hover {
    background: #1193eb;
}

.shbs-error-retry:active {
    transform: none;
}

/* Mobile Responsive for Modal */
@media (max-width: 600px) {
    .shbs-error-content {
        padding: 40px 25px;
        width: 95%;
    }
    
    .shbs-modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 32px;
        height: 32px;
    }
    
    .shbs-error-icon {
        width: 70px;
        height: 70px;
    }
    
    .shbs-error-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .shbs-error-title {
        font-size: 24px;
    }
    
    .shbs-error-message {
        font-size: 15px;
    }
    
    .shbs-error-retry {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%;
    }
}

/* Skip Price Shortcode Styles */
.shbs-price-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: inherit;
    text-align: center;
    width: 100%;
}

.shbs-price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.shbs-price-amount {
    font-size: 23px;
    font-weight: 600;
    color: #1907c0;
    line-height: 1;
}

.shbs-price-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.shbs-price-ex-vat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: center;
}

.shbs-price-ex-amount {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    line-height: 1;
}

.shbs-price-ex-label {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

.shbs-price-no-postcode {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #666;
}

.shbs-price-no-postcode p {
    margin: 0;
}

.shbs-price-error {
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile responsive for price display */
@media (max-width: 600px) {
    .shbs-price-amount {
        font-size: 21px;
    }
    
    .shbs-price-ex-amount {
        font-size: 14px;
    }
}
