/* H2O Deposit - Reservation Styles */

/* ========================================
   Button
   ======================================== */

.h2o-deposit-button-wrap {
    display: inline-block;
    margin: 12px 0 8px;
    font-family: "Poppins", sans-serif;
}

.h2o-deposit-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background-color: #294C85 !important;
    color: #fff !important;
    border: 1px solid #294C85 !important;
    border-radius: 5px !important;
    padding: 12px 26px !important;
    font-size: 14px !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.h2o-deposit-btn:hover {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.h2o-deposit-btn-icon {
    display: inline-flex;
    align-items: center;
}

/* ========================================
   Reserved Badge (single page)
   ======================================== */

.h2o-deposit-badge-reserved {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #e74c3c;
    color: #fff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: default;
}

/* ========================================
   Modal (reuses h2o-modal pattern)
   ======================================== */

.h2o-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.h2o-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.h2o-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: h2oDepositFadeIn 0.2s ease;
}

.h2o-modal-container {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    animation: h2oDepositSlideUp 0.3s ease;
}

@keyframes h2oDepositFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes h2oDepositSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal header */
.h2o-modal-header {
    padding: 28px 28px 0;
    position: relative;
    text-align: center;
}

.h2o-modal-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #294C85 0%, #3a6bb5 100%);
    color: #fff;
    margin-bottom: 14px;
}

.h2o-modal-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    font-family: "Poppins", sans-serif;
}

.h2o-modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: #888;
    font-weight: 400;
    line-height: 1.5;
}

.h2o-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    padding: 0;
}

.h2o-modal-close:hover {
    background: #eee;
    color: #333;
}

/* Modal body */
.h2o-modal-body {
    padding: 24px 28px 28px;
}

/* ========================================
   Step Indicators
   ======================================== */

.h2o-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px 0;
    gap: 0;
}

.h2o-step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.h2o-step-dot.active,
.h2o-step-dot.completed {
    opacity: 1;
}

.h2o-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-size: 13px;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.h2o-step-dot.active .h2o-step-number {
    background: #294C85;
    color: #fff;
}

.h2o-step-dot.completed .h2o-step-number {
    background: #27ae60;
    color: #fff;
}

.h2o-step-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
}

.h2o-step-dot.active .h2o-step-label {
    color: #294C85;
    font-weight: 600;
}

.h2o-step-dot.completed .h2o-step-label {
    color: #27ae60;
}

.h2o-step-separator {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 12px;
    flex-shrink: 0;
}

/* ========================================
   Step Content (show/hide)
   ======================================== */

.h2o-deposit-step {
    display: none;
    animation: h2oStepFadeIn 0.3s ease;
}

.h2o-deposit-step.active {
    display: block;
}

@keyframes h2oStepFadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   Form Fields (Step 1)
   ======================================== */

.h2o-deposit-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.h2o-deposit-field {
    margin-bottom: 16px;
}

.h2o-deposit-form-grid .h2o-deposit-field {
    margin-bottom: 0;
}

.h2o-deposit-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-family: "Poppins", sans-serif;
}

.h2o-required {
    color: #e74c3c;
}

.h2o-deposit-field input[type="text"],
.h2o-deposit-field input[type="email"],
.h2o-deposit-field input[type="tel"],
.h2o-deposit-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.h2o-deposit-field input:focus,
.h2o-deposit-field textarea:focus {
    border-color: #294C85;
    box-shadow: 0 0 0 3px rgba(41, 76, 133, 0.1);
}

.h2o-deposit-field textarea {
    resize: vertical;
    min-height: 60px;
}

/* Field error state */
.h2o-field-error input,
.h2o-field-error textarea {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.h2o-deposit-field-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    font-family: "Poppins", sans-serif;
}

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

.h2o-deposit-step-nav {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.h2o-deposit-btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #294C85;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    justify-content: center;
}

.h2o-deposit-btn-continue:hover {
    background: #1d3a66;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 76, 133, 0.25);
}

.h2o-deposit-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.h2o-deposit-btn-back:hover {
    background: #eee;
    color: #333;
}

/* ========================================
   Client Info Recap (Step 2)
   ======================================== */

.h2o-deposit-client-recap {
    background: #f8f9fb;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.h2o-deposit-client-recap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.h2o-deposit-client-recap-header span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    font-family: "Poppins", sans-serif;
}

.h2o-deposit-edit-link {
    background: none;
    border: none;
    color: #294C85;
    font-size: 12px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.h2o-deposit-edit-link:hover {
    color: #1d3a66;
}

.h2o-deposit-client-recap-body {
    padding: 12px 16px;
}

.h2o-client-summary-line {
    font-size: 13px;
    color: #555;
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
}

.h2o-client-summary-line strong {
    color: #333;
}

/* ========================================
   Boat Recap
   ======================================== */

.h2o-deposit-recap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f8f9fb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.h2o-deposit-recap-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.h2o-deposit-recap-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
}

.h2o-deposit-recap-price {
    font-size: 13px;
    color: #294C85;
    font-weight: 500;
    margin-top: 4px;
}

/* ========================================
   Deposit Amount Box
   ======================================== */

.h2o-deposit-amount-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #eef3fa;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #d0dcea;
}

.h2o-deposit-amount-label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    font-family: "Poppins", sans-serif;
}

.h2o-deposit-amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #294C85;
    font-family: "Poppins", sans-serif;
}

/* ========================================
   CGV Section
   ======================================== */

.h2o-deposit-cgv-section {
    margin-bottom: 20px;
}

.h2o-deposit-cgv-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    font-family: "Poppins", sans-serif;
}

.h2o-deposit-cgv-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #294C85;
}

#h2o-deposit-cgv-link {
    color: #294C85;
    text-decoration: underline;
    font-weight: 600;
}

#h2o-deposit-cgv-link:hover {
    color: #1a1a2e;
}

/* CGV Modal */
#h2o-deposit-cgv-modal {
    z-index: 10001;
}

#h2o-deposit-cgv-modal .h2o-modal-container {
    max-width: 640px;
}

#h2o-deposit-cgv-modal .h2o-modal-header {
    text-align: left;
    padding-right: 60px;
}

.h2o-deposit-cgv-content {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

.h2o-deposit-cgv-content p {
    margin: 0 0 10px;
}

.h2o-deposit-cgv-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   PayZen Payment Container
   ======================================== */

.h2o-deposit-payment-container {
    border-radius: 8px;
    padding: 16px;
    background: #f8f9fb;
    border: 1.5px solid #e0e0e0;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    min-height: 60px;
}

.h2o-deposit-payment-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.h2o-deposit-payment-container.h2o-deposit-payment-active {
    opacity: 1;
    pointer-events: auto;
    border-color: #294C85;
}

/* ========================================
   Status Message
   ======================================== */

.h2o-deposit-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
}

.h2o-deposit-message.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.h2o-deposit-message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.h2o-deposit-message.info {
    background-color: #eef3fa;
    color: #294C85;
    border: 1px solid #d0dcea;
}

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

@media (max-width: 600px) {
    .h2o-modal-container {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        max-height: 100vh;
    }

    .h2o-modal.is-open {
        align-items: flex-start;
    }

    .h2o-modal-header {
        padding: 24px 20px 0;
    }

    .h2o-modal-body {
        padding: 20px;
    }

    .h2o-deposit-recap {
        flex-direction: column;
        text-align: center;
    }

    .h2o-deposit-recap-thumb {
        width: 100%;
        height: auto;
        max-height: 140px;
    }

    .h2o-deposit-amount-box {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .h2o-deposit-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .h2o-steps-indicator {
        padding: 16px 20px 0;
    }

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

    .h2o-step-separator {
        width: 24px;
        margin: 0 8px;
    }
}
