/* IBEW Local 712 site palette: navy #0b2c4d (primary, buttons, headings), gold #f4b400 (accents, borders,
   active step), gold-dark #b47e00 (gold text on light), light #f4f5f7 (panels), gold-tint #fdf6dc (notices). */
/**
 * IBEW Events and Rentals - Public Styles
 *
 * @package    IBEW_Events_and_Rentals
 * @subpackage IBEW_Events_and_Rentals/public/assets/css
 * @since      1.0.0
 */

/* ========================================
   Rental Flow Container
   ======================================== */

.ier-rental-flow,
.ier-rental-flow-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ========================================
   Progress Steps
   ======================================== */

.ier-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 20px;
}

.ier-progress-steps,
.ier-progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 0;
    list-style: none;
    position: relative;
    flex: 1;
}

.ier-progress-steps::before,
.ier-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.ier-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ier-progress-step-circle,
.ier-progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ier-progress-step.active .ier-progress-step-circle,
.ier-progress-step.active .step-number {
    background: #f4b400;
    border-color: #f4b400;
    color: #0b2c4d;
}

.ier-progress-step.completed .ier-progress-step-circle,
.ier-progress-step.completed .step-number {
    background: #0b2c4d;
    border-color: #0b2c4d;
    color: #fff;
}

.ier-progress-step-label,
.ier-progress-step .step-label {
    font-size: 13px;
    color: #666;
    display: block;
}

.ier-progress-step.active .ier-progress-step-label,
.ier-progress-step.active .step-label {
    color: #0b2c4d;
    font-weight: 600;
}

/* Start Over Button */
.ier-start-over {
    flex-shrink: 0;
    align-self: center;
}

.ier-start-over-link {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ier-start-over-link:hover {
    border-color: #d32f2f;
    color: #d32f2f;
    background: #ffebee;
}

/* ========================================
   Step Content Area
   ======================================== */

.ier-step-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ier-step,
.ier-step-1,
.ier-step-2,
.ier-step-3,
.ier-step-4,
.ier-step-5,
.ier-step-6 {
    width: 100%;
}

.ier-step h2,
.ier-step-title {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.ier-step p,
.ier-step-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.ier-rental-form {
    width: 100%;
}

/* ========================================
   Step 1: Choose Type
   ======================================== */

.ier-rental-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ier-rental-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    display: block;
    position: relative;
}

.ier-rental-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.ier-rental-type-card:hover {
    border-color: #f4b400;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.2);
    transform: translateY(-2px);
}

.ier-rental-type-card input[type="radio"]:checked + .card-content {
    background: #fdf6dc;
}

.ier-rental-type-card input[type="radio"]:checked ~ .card-content,
.ier-rental-type-card:has(input[type="radio"]:checked) {
    border-color: #f4b400;
    background: #fdf6dc;
}

.card-content {
    pointer-events: none;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.ier-rental-type-card h3 {
    font-size: 24px;
    margin: 15px 0 10px 0;
    color: #333;
}

.ier-rental-type-card p {
    color: #666;
    line-height: 1.6;
    margin: 10px 0;
}

.pricing-note {
    font-size: 20px;
    color: #0b2c4d !important;
    font-weight: 600;
    margin-top: 20px !important;
}

.features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.features li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

/* ========================================
   Step 2: Event Details Form
   ======================================== */

/* Form sections - better vertical spacing */
.ier-form-section {
    margin-bottom: 32px;
    padding-bottom: 8px;
}

.ier-form-section:last-child {
    margin-bottom: 0;
}

/* Section headings with improved spacing */
.ier-step h3,
.ier-form-section h3,
.ier-step-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 32px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e0d0;
}

.ier-step h3:first-child,
.ier-form-section h3:first-child {
    margin-top: 0;
}

/* Form rows with proper bottom margin */
.ier-form-row {
    margin-bottom: 16px;
}

.ier-form-row:last-child {
    margin-bottom: 0;
}

.ier-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ier-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.ier-form-row:last-child {
    margin-bottom: 0;
}

.ier-form-row .ier-form-field {
    margin-bottom: 0;
}

.ier-field-half {
    flex: 1 1 calc(50% - 8px);
    min-width: 180px;
}

.ier-field-quarter {
    flex: 1 1 calc(25% - 12px);
    min-width: 100px;
}

@media (max-width: 600px) {
    .ier-field-half,
    .ier-field-quarter {
        flex: 1 1 100%;
    }
}

.ier-form-field {
    margin-bottom: 20px;
}

.ier-form-field.full-width {
    grid-column: 1 / -1;
}

.ier-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.ier-form-field label .required {
    color: #d32f2f;
}

.ier-form-field input[type="text"],
.ier-form-field input[type="email"],
.ier-form-field input[type="tel"],
.ier-form-field input[type="date"],
.ier-form-field input[type="time"],
.ier-form-field input[type="number"],
.ier-form-field select,
.ier-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.ier-form-field input:focus,
.ier-form-field select:focus,
.ier-form-field textarea:focus {
    outline: none;
    border-color: #f4b400;
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.1);
}

.ier-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.ier-form-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* Field descriptions (used under checkboxes and other fields) */
.ier-form-field .field-description,
p.field-description {
    margin: 6px 0 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* Standalone form fields (not in rows) need margin-bottom */
.ier-form-section > .ier-form-field {
    margin-bottom: 20px;
}

.ier-form-section > .ier-form-field:last-child {
    margin-bottom: 0;
}

.ier-checkbox-group,
.ier-service-options {
    margin: 20px 0;
}

.ier-checkbox-field,
.ier-service-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ier-checkbox-field:hover,
.ier-service-option:hover {
    background: #f9f9f9;
    border-color: #f4b400;
}

.ier-checkbox-field input[type="checkbox"],
.ier-service-option input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ier-service-option-label {
    flex: 1;
}

.ier-service-option-price {
    font-weight: 600;
    color: #0b2c4d;
}

/* Price Calculator */
.ier-price-calculator {
    background: #fdf6dc;
    border: 2px solid #f4b400;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
}

.ier-price-calculator h3 {
    margin-top: 0;
    color: #0b2c4d;
}

.ier-price-breakdown {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.ier-price-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ier-price-breakdown li:last-child {
    border-bottom: none;
}

.ier-price-total {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 700;
    color: #0b2c4d;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f4b400;
}

.ier-deposit-note {
    background: #f4f5f7;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    color: #1976d2;
}

/* ========================================
   Step 3: Contract Review
   ======================================== */

.ier-contract-container {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    background: #fff;
    max-height: 500px;
    overflow-y: auto;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.8;
}

.ier-contract-container h1,
.ier-contract-container h2,
.ier-contract-container h3 {
    color: #333;
}

.ier-contract-acceptance {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.ier-contract-acceptance label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.ier-contract-acceptance input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

/* ========================================
   Step 4: Signature
   ======================================== */

.ier-signature-options {
    margin: 30px 0;
}

.ier-signature-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ier-signature-tab {
    flex: 1;
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ier-signature-tab.active {
    background: #0b2c4d;
    border-color: #f4b400;
    color: #fff;
}

.ier-signature-canvas-wrapper {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    text-align: center;
}

.ier-signature-canvas {
    border: 2px dashed #ddd;
    cursor: crosshair;
    border-radius: 4px;
    background: #fafafa;
    max-width: 100%;
}

.ier-signature-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.ier-typed-signature-wrapper {
    padding: 20px;
}

.ier-typed-signature-wrapper input {
    font-family: 'Brush Script MT', cursive;
    font-size: 32px;
    text-align: center;
    padding: 20px;
}

.ier-signature-preview {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    text-align: center;
}

.ier-signature-legal {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 13px;
    color: #856404;
}

/* ========================================
   Step 5: Payment
   ======================================== */

.ier-payment-summary {
    background: #fdf6dc;
    border: 2px solid #f4b400;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.ier-payment-summary h3 {
    margin-top: 0;
    color: #0b2c4d;
}

.ier-stripe-element {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background: #fff;
    margin: 20px 0;
}

.ier-payment-notes {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.ier-payment-notes ul {
    margin: 10px 0;
    padding-left: 20px;
}

/* ========================================
   Step 6: Confirmation
   ======================================== */

.ier-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.ier-confirmation-icon {
    font-size: 72px;
    color: #b47e00;
    margin-bottom: 20px;
}

.ier-confirmation h2 {
    color: #0b2c4d;
    font-size: 32px;
    margin-bottom: 15px;
}

.ier-confirmation-details {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.ier-confirmation-details dt {
    font-weight: 600;
    color: #666;
    margin-top: 15px;
}

.ier-confirmation-details dd {
    margin: 5px 0 0 0;
    font-size: 18px;
    color: #333;
}

.ier-next-steps {
    background: #f4f5f7;
    padding: 24px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: left;
}

.ier-next-steps h3 {
    margin-top: 0;
    color: #1976d2;
}

.ier-next-steps ol {
    margin: 15px 0;
    padding-left: 20px;
}

.ier-next-steps li {
    margin: 10px 0;
    line-height: 1.6;
}

/* ========================================
   Navigation Buttons
   ======================================== */

.ier-step-navigation,
.ier-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.ier-btn,
.ier-button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ier-btn-primary,
.ier-button-primary {
    background: #0b2c4d;
    color: #fff;
    border: none;
}

.ier-btn-primary:hover,
.ier-button-primary:hover {
    background: #09274a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 180, 0, 0.3);
}

.ier-btn-primary:disabled,
.ier-button-primary:disabled {
    background: #ddd;
    cursor: not-allowed;
    transform: none;
}

.ier-btn-secondary,
.ier-button-secondary {
    background: #fff;
    color: #666;
    border: 2px solid #ddd;
}

.ier-btn-secondary:hover,
.ier-button-secondary:hover {
    border-color: #f4b400;
    color: #0b2c4d;
}

/* ========================================
   Alerts and Messages
   ======================================== */

.ier-alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.ier-alert-success {
    background: #fdf6dc;
    border: 1px solid #1e8449;
    color: #0b2c4d;
}

.ier-alert-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

.ier-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.ier-alert-info {
    background: #f4f5f7;
    border: 1px solid #0b2c4d;
    color: #1565c0;
}

/* ========================================
   Loading States
   ======================================== */

.ier-loading {
    text-align: center;
    padding: 40px;
}

.ier-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #f4b400;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: ier-spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes ier-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Responsive Design
   ======================================== */

@media screen and (max-width: 768px) {
    .ier-rental-flow,
    .ier-rental-flow-container {
        padding: 0 15px;
    }

    .ier-step-content {
        padding: 24px 20px;
    }

    .ier-progress-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ier-progress-steps,
    .ier-progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .ier-start-over {
        text-align: center;
        margin-top: 10px;
    }

    .ier-start-over-link {
        width: 100%;
        text-align: center;
    }

    .ier-progress-step {
        flex: 1 1 30%;
        min-width: 100px;
    }

    .ier-progress-step-label {
        font-size: 11px;
    }

    .ier-rental-types {
        grid-template-columns: 1fr;
    }

    .ier-form-grid {
        grid-template-columns: 1fr;
    }

    .ier-step-navigation {
        flex-direction: column-reverse;
    }

    .ier-btn {
        width: 100%;
    }

    .ier-signature-tabs {
        flex-direction: column;
    }

    .ier-price-calculator {
        padding: 16px;
    }
}

@media screen and (max-width: 480px) {
    .ier-step-title {
        font-size: 22px;
    }

    .ier-step-description {
        font-size: 14px;
    }

    .ier-rental-type-card {
        padding: 20px;
    }

    .ier-signature-canvas {
        max-width: 100%;
        height: auto;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .ier-progress-steps,
    .ier-step-navigation,
    .ier-btn {
        display: none;
    }

    .ier-step-content {
        border: none;
        box-shadow: none;
    }
}

/* ========================================
   Availability Calendar Shortcode
   ======================================== */

.ier-availability-calendar {
    max-width: 100%;
    margin: 0 auto 2.5vw;
    font-family: inherit;
}

/* Check a Specific Date widget */
.ier-date-check {
    background: #f4f5f7;
    border: 0.1vw solid #d9dee5;
    border-radius: 0.5vw;
    padding: 1.4vw 1.6vw;
    margin-bottom: 1.8vw;
}
.ier-date-check-title { margin: 0 0 0.3vw; color: #0b2c4d; font-size: 1.5vw; }
.ier-date-check-sub { margin: 0 0 1vw; color: #555; font-size: 1.05vw; }
.ier-date-check-row { display: flex; flex-wrap: wrap; gap: 0.8vw; align-items: center; }
.ier-date-check-input {
    padding: 0.6vw 0.9vw; font-size: 1.1vw; border: 0.1vw solid #d9dee5;
    border-radius: 0.35vw; color: #0b2c4d; background: #fff;
}
.ier-date-check-btn {
    padding: 0.6vw 1.6vw; font-size: 1.1vw; font-weight: 600; cursor: pointer;
    background: #0b2c4d; color: #fff; border: none; border-radius: 0.35vw;
    transition: background 0.2s;
}
.ier-date-check-btn:hover, .ier-date-check-btn:focus { background: #09274a; }
.ier-date-check-result { margin-top: 1vw; font-size: 1.15vw; font-weight: 700; min-height: 1.2vw; }
.ier-date-check-result.ier-dc-loading { color: #0b2c4d; font-weight: 500; }
.ier-date-check-result.ier-dc-note { color: #b47e00; font-weight: 500; }
.ier-date-check-result.ier-dc-available { color: #1e8449; }
.ier-date-check-result.ier-dc-partial { color: #0b2c4d; }
.ier-date-check-result.ier-dc-unavailable { color: #922b21; }

/* "Request This Date" call to action, shown when a checked date is bookable */
.ier-dc-cta {
    display: inline-block;
    margin-top: 0.9vw;
    padding: 0.6vw 1.6vw;
    font-size: 1.1vw;
    font-weight: 600;
    text-decoration: none;
    background: #0b2c4d;
    color: #fff;
    border-radius: 0.35vw;
    transition: background 0.2s;
}
.ier-dc-cta:hover, .ier-dc-cta:focus { background: #09274a; color: #fff; text-decoration: none; }

@media (max-width: 782px) {
    .ier-date-check-title { font-size: 20px; }
    .ier-date-check-sub { font-size: 14px; }
    .ier-date-check-input, .ier-date-check-btn { font-size: 16px; padding: 10px 16px; }
    .ier-date-check-btn, .ier-date-check-input { width: 100%; }
    .ier-date-check-result { font-size: 15px; }
    .ier-dc-cta { font-size: 16px; padding: 12px 20px; margin-top: 14px; width: 100%; text-align: center; }
}

/* ---------------------------------------------------------------------------
   Rental Reservation request form  [ier_reservation_request]
   --------------------------------------------------------------------------- */
.ier-reservation-request { max-width: 100%; margin: 0 auto 2.5vw; font-family: inherit; }
.ier-rr-form {
    background: #f4f5f7;
    border: 0.1vw solid #d9dee5;
    border-radius: 0.5vw;
    padding: 1.6vw 1.8vw;
}
.ier-rr-intro { margin: 0 0 1.2vw; color: #555; font-size: 1.05vw; }
.ier-rr-prefill-note {
    margin: 0 0 1vw; padding: 0.8vw 1vw; font-size: 1.05vw; color: #166034;
    background: #e8f6ed; border-left: 0.25vw solid #1e8449; border-radius: 0.25vw;
}
.ier-rr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1vw 1.4vw; }
.ier-rr-field { margin-bottom: 1.2vw; }
.ier-rr-field label { display: block; margin-bottom: 0.35vw; font-weight: 600; color: #0b2c4d; font-size: 1.05vw; }
.ier-rr-req { color: #922b21; }
.ier-rr-field input[type="text"],
.ier-rr-field input[type="email"],
.ier-rr-field input[type="tel"],
.ier-rr-field input[type="date"],
.ier-rr-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 0.6vw 0.9vw; font-size: 1.1vw; font-family: inherit;
    border: 0.1vw solid #d9dee5; border-radius: 0.35vw;
    color: #0b2c4d; background: #fff;
}
.ier-rr-field textarea { resize: vertical; }
.ier-rr-fieldset { border: none; margin: 0 0 1.2vw; padding: 0; }
.ier-rr-fieldset legend { font-weight: 600; color: #0b2c4d; font-size: 1.05vw; margin-bottom: 0.5vw; padding: 0; }
.ier-rr-spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8vw; }
.ier-rr-space {
    display: flex; align-items: flex-start; gap: 0.5vw;
    padding: 0.9vw 1vw; background: #fff; cursor: pointer;
    border: 0.1vw solid #d9dee5; border-radius: 0.35vw;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ier-rr-space:hover { border-color: #0b2c4d; }
.ier-rr-space:has(input:checked) { border-color: #0b2c4d; box-shadow: 0 0 0 0.1vw #0b2c4d; }
.ier-rr-space input { margin-top: 0.25vw; flex: none; }
.ier-rr-space-body { display: block; }
.ier-rr-space-label { display: block; font-weight: 600; color: #0b2c4d; font-size: 1.05vw; }
.ier-rr-space-meta { display: block; margin-top: 0.2vw; color: #555; font-size: 0.9vw; }
.ier-rr-check label { display: inline-flex; align-items: center; gap: 0.5vw; font-weight: 600; cursor: pointer; }
.ier-rr-check label input { flex: none; }
.ier-rr-hint { display: block; margin-top: 0.3vw; color: #555; font-size: 0.95vw; font-weight: 400; }
/* Honeypot — off-screen rather than display:none, which some bots detect */
.ier-rr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Cloudflare Turnstile widget — the widget itself is styled by Cloudflare; we only
   control the surrounding spacing so it sits cleanly above the submit button. */
.ier-rr-turnstile { margin-top: 1.2vw; }
.ier-rr-turnstile .cf-turnstile { display: inline-block; }
.ier-rr-actions { margin-top: 1.4vw; }
.ier-rr-submit {
    padding: 0.7vw 2vw; font-size: 1.15vw; font-weight: 600; cursor: pointer;
    background: #0b2c4d; color: #fff; border: none; border-radius: 0.35vw;
    transition: background 0.2s;
}
.ier-rr-submit:hover:not(:disabled), .ier-rr-submit:focus:not(:disabled) { background: #09274a; }
.ier-rr-submit:disabled { opacity: 0.6; cursor: default; }
.ier-rr-result { margin-top: 1vw; font-size: 1.1vw; font-weight: 600; }
.ier-rr-result.ier-rr-loading { color: #0b2c4d; font-weight: 500; }
.ier-rr-result.ier-rr-error { color: #922b21; }
.ier-rr-result.ier-rr-success {
    color: #166034; font-weight: 500; line-height: 1.5;
    padding: 1.2vw 1.4vw; background: #e8f6ed;
    border-left: 0.25vw solid #1e8449; border-radius: 0.25vw;
}
@media (max-width: 782px) {
    .ier-rr-form { padding: 18px 16px; border-radius: 6px; }
    .ier-rr-intro, .ier-rr-prefill-note { font-size: 15px; margin-bottom: 16px; }
    .ier-rr-prefill-note { padding: 12px 14px; border-left-width: 4px; }
    .ier-rr-grid { grid-template-columns: 1fr; gap: 0; }
    .ier-rr-field { margin-bottom: 16px; }
    .ier-rr-field label, .ier-rr-fieldset legend { font-size: 15px; margin-bottom: 6px; }
    .ier-rr-field input[type="text"],
    .ier-rr-field input[type="email"],
    .ier-rr-field input[type="tel"],
    .ier-rr-field input[type="date"],
    .ier-rr-field textarea { font-size: 16px; padding: 12px 14px; border-radius: 4px; }
    .ier-rr-spaces { grid-template-columns: 1fr; gap: 10px; }
    .ier-rr-space { padding: 14px; gap: 10px; border-radius: 4px; }
    .ier-rr-space-label { font-size: 15px; }
    .ier-rr-space-meta { font-size: 13px; }
    .ier-rr-hint { font-size: 13px; }
    .ier-rr-turnstile { margin-top: 16px; }
    .ier-rr-submit { font-size: 17px; padding: 14px 24px; width: 100%; }
    .ier-rr-result { font-size: 15px; }
    .ier-rr-result.ier-rr-success { padding: 14px; border-left-width: 4px; }
}

/* Navigation */
.ier-pub-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4vw;
    gap: 1vw;
}

.ier-pub-cal-month-title {
    margin: 0;
    font-size: 1.9vw;
    text-align: center;
    flex: 1;
}

.ier-pub-cal-arrow,
.ier-pub-cal-arrow:link,
.ier-pub-cal-arrow:visited {
    display: inline-block;
    padding: 0.5vw 1.3vw;
    background: #0b2c4d;
    color: #fff !important;
    text-decoration: none;
    border-radius: 0.35vw;
    font-size: 1.1vw;
    white-space: nowrap;
    transition: background 0.2s;
}

.ier-pub-cal-arrow:hover,
.ier-pub-cal-arrow:focus {
    background: #0b2c4d;
    color: #fff !important;
    text-decoration: none;
}

/* Legend */
.ier-pub-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1vw;
    margin-bottom: 1.2vw;
}

.ier-pub-legend-item {
    display: inline-flex;
    align-items: center;
    font-size: 1.1vw;
    padding: 0.35vw 1vw;
    border-radius: 0.35vw;
    font-weight: 600;
}

.ier-pub-legend-available {
    background: #e9f7ef;
    color: #1e8449;
    border: 0.1vw solid #a9dfbf;
}

.ier-pub-legend-reserved {
    background: #fdf6dc;
    color: #b47e00;
    border: 0.1vw solid #f5cba7;
}

.ier-pub-legend-partial {
    background: #e8f1fb;
    color: #0b2c4d;
    border: 0.1vw solid #aacdf0;
}

.ier-pub-legend-blocked {
    background: #f2d7d5;
    color: #922b21;
    border: 0.1vw solid #f1948a;
}

/* Calendar grid — 7 equal columns; aspect-ratio: 1 works on div cells */
.ier-pub-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    border-top: 0.1vw solid #d9dee5;
    border-left: 0.1vw solid #d9dee5;
}

.ier-pub-weekday {
    background: #0b2c4d;
    color: #fff;
    padding: 0.7vw 0.35vw;
    text-align: center;
    font-size: 1vw;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-right: 0.1vw solid #0b2c4d;
    border-bottom: 0.1vw solid #0b2c4d;
    box-sizing: border-box;
}

/* Calendar cells — aspect-ratio: 1 on a grid item is reliable */
.ier-pub-day {
    aspect-ratio: 1 / 1;
    padding: 0.5vw;
    background: #fff;
    border-right: 0.1vw solid #d9dee5;
    border-bottom: 0.1vw solid #d9dee5;
    box-sizing: border-box;
    overflow: hidden;
}

.ier-pub-day.ier-pub-empty {
    background: #f8f8f8;
}

.ier-pub-day.ier-pub-past {
    background: #f5f5f5;
    opacity: 0.6;
}

.ier-pub-day.ier-pub-today .ier-pub-day-number {
    background: #0b2c4d;
    color: #fff;
    border-radius: 50%;
    width: 2.2vw;
    height: 2.2vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ier-pub-day.ier-pub-blocked {
    background: #fdf2f2;
}

.ier-pub-day.ier-pub-reserved {
    background: #fff9f3;
}

.ier-pub-day.ier-pub-partial {
    background: #f3f8fe;
}

.ier-pub-day-number {
    font-weight: 700;
    font-size: 1.3vw;
    margin-bottom: 0.35vw;
    color: #333;
}

/* Day labels */
.ier-pub-day-labels {
    display: flex;
    flex-direction: column;
    gap: 0.25vw;
    margin-top: 0.35vw;
}

.ier-pub-label {
    display: block;
    font-size: 0.9vw;
    border-radius: 0.25vw;
    padding: 0.2vw 0.4vw;
    line-height: 1.3;
    font-weight: 600;
}

.ier-pub-label small {
    display: block;
    font-weight: 400;
    font-size: 0.8vw;
    margin-top: 0.1vw;
}

.ier-pub-label-blocked {
    background: #f2d7d5;
    color: #922b21;
}

.ier-pub-label-reserved {
    background: #fdf6dc;
    color: #b47e00;
}

.ier-pub-label-partial {
    background: #e8f1fb;
    color: #0b2c4d;
}

/* Mobile */
@media (max-width: 600px) {
    .ier-availability-calendar {
        max-width: 100%;
    }

    .ier-pub-cal-month-title {
        font-size: 4.5vw;
    }

    .ier-pub-cal-arrow {
        padding: 1.5vw 3vw;
        font-size: 3vw;
        border-radius: 1vw;
    }

    .ier-pub-cal-legend {
        gap: 2vw;
        margin-bottom: 2vw;
    }

    .ier-pub-legend-item {
        font-size: 2.5vw;
        padding: 0.8vw 2vw;
        border-radius: 0.8vw;
    }

    .ier-pub-weekday {
        font-size: 2.2vw;
        padding: 1.5vw 0.5vw;
    }

    .ier-pub-day {
        padding: 0.8vw;
    }

    .ier-pub-day.ier-pub-today .ier-pub-day-number {
        width: 5vw;
        height: 5vw;
    }

    .ier-pub-day-number {
        font-size: 3vw;
        margin-bottom: 0.5vw;
    }

    .ier-pub-label {
        font-size: 2vw;
        padding: 0.3vw 0.6vw;
    }

    .ier-pub-label small {
        font-size: 1.8vw;
    }
}

/* ===== Public forms: max-width 57.29vw on desktop ===== */
@media (min-width: 769px) {
    .gform_wrapper {
        max-width: 57.29vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ===== Estimated Pricing Breakdown Card ===== */
.ier-pricing-preview {
    border: 2px solid #f4b400;
    border-radius: 8px;
    overflow: hidden;
    margin: 28px 0 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.ier-price-card-header {
    background: linear-gradient(135deg, #4a2e00 0%, #8b6914 100%);
    color: #fff;
    padding: 16px 22px;
}

.ier-price-card-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 4px;
}

.ier-price-card-sub {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.ier-price-weekend-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 22px;
    background: #fdf8ee;
    border-bottom: 1px solid #e8d080;
}

.ier-price-weekend-tags span {
    background: #fff;
    border: 1px solid #f4b400;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b4c00;
}

.ier-price-items {
    padding: 4px 0;
}

.ier-price-section-head {
    background: #fdf6dc;
    border-top: 1px solid #f0e2b6;
    border-bottom: 1px solid #f0e2b6;
    padding: 5px 22px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #8b6914;
    margin-top: 2px;
}

.ier-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 22px;
    font-size: 14px;
    border-bottom: 1px solid #f4edd8;
}

.ier-price-row:last-child {
    border-bottom: none;
}

.ier-price-row .ier-price-label {
    color: #444;
    flex: 1;
    padding-right: 16px;
}

.ier-price-row .ier-price-label em {
    font-size: 12px;
    color: #777;
    font-style: normal;
}

.ier-price-row .ier-price-amount {
    font-weight: 600;
    color: #2a2000;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Total row */
.ier-price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 22px;
    background: #fdf5dc;
    border-top: 2px solid #f4b400;
    font-size: 18px;
    font-weight: 700;
    color: #3a2000;
}

.ier-price-total-row .ier-price-label,
.ier-price-total-row .ier-price-amount {
    color: #3a2000;
}

/* Payment schedule section */
.ier-price-payment {
    background: #f4f5f7;
    border-top: 2px solid #f4b400;
}

.ier-price-deposit .ier-price-label,
.ier-price-deposit .ier-price-amount {
    color: #1a5c00;
    font-weight: 600;
}

.ier-price-balance .ier-price-label {
    color: #555;
}

.ier-price-balance .ier-price-amount {
    color: #333;
}

.ier-price-disclaimer {
    font-size: 11px;
    color: #888;
    padding: 8px 22px 10px;
    margin: 0;
    background: #fff;
    border-top: 1px solid #f0e8d0;
    font-style: italic;
}

@media (max-width: 480px) {
    .ier-price-card-sub  { font-size: 15px; }
    .ier-price-total-row { font-size: 16px; }
    .ier-price-row       { font-size: 13px; padding: 8px 14px; }
    .ier-price-card-header,
    .ier-price-weekend-tags,
    .ier-price-section-head,
    .ier-price-total-row,
    .ier-price-disclaimer { padding-left: 14px; padding-right: 14px; }
}

/* Fail-safe: reveal the alcohol/RAMP acknowledgment whenever "Yes" is chosen, using
   pure CSS so the required checkbox can never be hidden-and-unreachable even if the
   step-2 inline JavaScript fails to run (stale cache, JS error, etc.). */
#ier-event-details-form:has(input[name="alcohol_served"][value="yes"]:checked) #ier-alcohol-block {
    display: block !important;
}

/* ------------------------------------------------------------------
   Help tooltips (ier_tip()) — hover, keyboard focus or tap to show
   ------------------------------------------------------------------ */
.ier-tip { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; cursor: help; outline: none; }
.ier-tip-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #0b2c4d; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.ier-tip:focus .ier-tip-icon { box-shadow: 0 0 0 2px #f4b400; }
.ier-tip-bubble { visibility: hidden; opacity: 0; position: absolute; z-index: 1000; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(300px, 80vw); padding: 9px 11px; border-radius: 4px; background: #0b2c4d; color: #fff; font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: opacity .12s; pointer-events: none; }
.ier-tip-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #0b2c4d; }
.ier-tip:hover .ier-tip-bubble, .ier-tip:focus .ier-tip-bubble, .ier-tip.is-open .ier-tip-bubble { visibility: visible; opacity: 1; }
.ier-flow-help { margin: 10px 0 0; font-size: 14px; color: #44546a; }
.ier-help-box { background: #f4f5f7; border: 1px solid #d9dee5; border-left: 4px solid #f4b400; border-radius: 4px; padding: 12px 16px; margin: 0 0 16px; color: #0b2c4d; font-size: 14px; line-height: 1.55; }
.ier-help-box ul { margin: 6px 0 0 18px; }
.ier-licensee-type label { display: inline-block; margin-right: 18px; font-weight: normal; }
