/* NautiBuoy Rentals - Booking Flow Styles */

/* Hide entire wizard until Alpine.js initializes */
[x-cloak] { display: none !important; }

.booking-page {
    padding-top: 100px;
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 4rem;
}

/* Progress Bar */
.progress {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 1rem;
}
.progress__bar {
    position: absolute;
    top: 15px;
    left: 0;
    height: 3px;
    background: var(--coral);
    transition: width 0.5s ease;
    z-index: 1;
}
.progress__steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.progress__step { text-align: center; }
.progress__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}
.progress__step.active .progress__dot {
    background: var(--coral);
    color: var(--white);
}
.progress__step.current .progress__dot {
    box-shadow: 0 0 0 4px rgba(217, 79, 48, 0.2);
}

/* Step Container */
.step {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius, 12px);
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.step__title {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading, 'Playfair Display', serif);
}
.step__subtitle {
    color: var(--text-light, #5A6B78);
    margin-bottom: 2rem;
    font-size: 1rem;
}
.step__note {
    margin-top: 1rem;
    color: var(--teal);
    font-weight: 500;
}
.step__error {
    color: var(--coral);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Calendar */
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.cal-month {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--navy);
}
.cal-nav {
    background: none;
    border: 1px solid var(--gray-200);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--navy);
    transition: all 0.2s;
}
.cal-nav:hover {
    background: var(--gray-100);
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    padding: 0.5rem 0;
    text-transform: uppercase;
}
.cal-day {
    text-align: center;
    padding: 0.6rem 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: var(--navy);
}
.cal-day:hover:not(.cal-day--disabled):not(.cal-day--empty) {
    background: var(--teal);
    color: var(--white);
}
.cal-day--selected {
    background: var(--coral) !important;
    color: var(--white) !important;
    font-weight: 700;
}
.cal-day--disabled {
    color: var(--gray-300);
    cursor: default;
}
.cal-day--closed {
    color: var(--gray-300);
    text-decoration: line-through;
}
.cal-day--empty {
    cursor: default;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.service-card {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.service-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.service-card.selected {
    border-color: var(--coral);
    background: #FFF5F3;
}
.service-card__duration {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.service-card__price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--coral);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading, serif);
}
.service-card__desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Time Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.time-btn {
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--navy);
    transition: all 0.2s;
    font-family: inherit;
}
.time-btn:hover {
    border-color: var(--teal);
    background: #EFF8FC;
}
.time-btn.selected {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--white);
}

/* Vest Selection */
.vest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.vest-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.vest-option:hover {
    border-color: var(--teal);
}
.vest-option.selected {
    border-color: var(--coral);
    background: #FFF5F3;
}
.vest-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
}

/* Form Card */
.form-card {
    max-width: 500px;
}
.form-card .form-group {
    margin-bottom: 1.25rem;
}
.form-card label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--gray-700, #3D4852);
    font-size: 0.9rem;
}
.form-card .form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--gray-300, #C8CED6);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-card .form-input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(91, 164, 201, 0.15);
}

/* Training & Rules */
.training-section, .rules-section {
    margin-bottom: 2rem;
}
.training-section h3, .rules-section h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}
.video-item {
    padding: 1rem;
    background: var(--bg, #F5F7FA);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}
.rule-item {
    padding: 1rem;
    background: var(--bg, #F5F7FA);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}
.rule-item h4 {
    color: var(--navy);
    margin-bottom: 0.35rem;
    font-size: 1rem;
}
.rule-item p {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.6;
}
.rules-agree {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #FFF5F3;
    border-radius: 8px;
    border: 2px solid var(--coral);
}
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--coral);
}

/* Waiver */
.waiver-text {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
}
.signature-section {
    text-align: center;
}
#signature-pad {
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
    background: #fff;
    display: block;
    margin: 0 auto;
}

/* Order Summary */
.order-summary {
    max-width: 500px;
}
.order-summary h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}
.summary-row span:first-child {
    color: var(--gray-500);
}
.summary-row span:last-child {
    font-weight: 600;
    color: var(--navy);
}
.summary-row--total {
    border-top: 2px solid var(--navy);
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}
.summary-row--total span {
    font-size: 1.2rem;
    color: var(--navy) !important;
}

/* Confirmation */
.confirmation {
    text-align: center;
    padding: 2rem 0;
}
.confirmation__icon {
    width: 80px;
    height: 80px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.confirmation h3 {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.confirmation .summary-row {
    max-width: 400px;
    margin: 0 auto;
}

/* Step Navigation */
.step-nav {
    max-width: 800px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.step-nav .btn--outline {
    background: var(--navy, #1B3A4B);
    color: var(--white, #fff);
    border-color: var(--navy, #1B3A4B);
}
.step-nav .btn--outline:hover {
    background: #122832;
    border-color: #122832;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
    font-size: 1rem;
}

/* Error */
.step-error {
    max-width: 800px;
    margin: 1rem auto 0;
    padding: 0.75rem 1rem;
    background: #FEE2E2;
    color: #991B1B;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Promo Code */
.promo-section {
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: var(--bg, #F5F7FA);
    border-radius: 8px;
    border: 1px dashed var(--gray-300, #C8CED6);
}
.promo-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.promo-input .form-input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-300, #C8CED6);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}
.promo-input .form-input:focus {
    outline: none;
    border-color: var(--teal, #5BA4C9);
}
.promo-applied {
    padding: 0.25rem 0;
}
.promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #F0FDF4;
    color: #166534;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.promo-remove {
    background: none;
    border: none;
    color: #991B1B;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}
.promo-error {
    color: var(--coral, #D94F30);
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

/* Square Card Form */
#card-container {
    min-height: 90px;
}
.secure-badge {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #166534;
    line-height: 1.5;
    margin-top: 0.5rem;
}
.secure-badge svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #16A34A;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-page { padding-top: 80px; }
    .step { padding: 1.5rem; }
    .service-cards { grid-template-columns: 1fr; }
    .time-grid { grid-template-columns: repeat(3, 1fr); }
    .vest-grid { grid-template-columns: 1fr 1fr; }
    .progress__dot { width: 26px; height: 26px; font-size: 0.7rem; }
}
