/**
 * VB Long-Term Lease Manager — Frontend Signup Styles
 */

/* ── Container ── */
.vblt-signup {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #fff;
}

.vblt-signup-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
    text-align: center;
}

.vblt-signup-subtitle {
    text-align: center;
    color: #ddd;
    font-size: 16px;
    margin: 0 0 30px;
}

/* ── Form fields ── */
.vblt-field {
    margin-bottom: 20px;
}

.vblt-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #fff;
}

.vblt-req {
    color: #d32f2f;
}

.vblt-field input[type="text"],
.vblt-field input[type="email"],
.vblt-field input[type="tel"],
.vblt-field input[type="date"],
.vblt-field select {
    width: 100%;
    padding: 14px 14px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    min-height: 50px;
}

.vblt-field input:focus,
.vblt-field select:focus {
    border-color: #2c5f2d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.vblt-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #ccc;
}

.vblt-field-error {
    display: none;
    margin-top: 4px;
    font-size: 13px;
    color: #d32f2f;
    font-weight: 500;
}

/* ── Spot selector disabled options ── */
.vblt-field select option:disabled {
    color: #bbb;
}

/* ── Amenity tags ── */
.vblt-amenities-display {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.vblt-amenity-tag {
    display: inline-block;
    background: #e8f0fe;
    color: #1a4d8f;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 13px;
}

.vblt-amenity-tag strong {
    font-weight: 600;
}

/* ── Price display ── */
.vblt-price-box {
    background: rgba(44, 95, 45, 0.15);
    border: 2px solid #2c5f2d;
    border-radius: 10px;
    padding: 20px;
    margin: 24px 0;
}

.vblt-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 16px;
    color: #fff;
}

.vblt-price-row + .vblt-price-row {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 8px;
    padding-top: 12px;
}

.vblt-price-highlight {
    font-size: 20px;
    color: #7ddf7e;
}

.vblt-price-highlight strong {
    font-size: 24px;
}

.vblt-price-note {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    color: #bbb;
    line-height: 1.4;
}

/* ── Submit button ── */
.vblt-btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #2c5f2d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

.vblt-btn-primary:hover:not(:disabled) {
    background: #1e4620;
    transform: translateY(-1px);
}

.vblt-btn-primary:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ── Error banner ── */
.vblt-error-banner {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

/* ── Spinner ── */
.vblt-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #2c5f2d;
    border-radius: 50%;
    animation: vblt-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.vblt-spinner-large {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

@keyframes vblt-spin {
    to { transform: rotate(360deg); }
}

/* ── Confirmation ── */
.vblt-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.vblt-confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #2c5f2d;
    color: #fff;
    font-size: 36px;
    margin-bottom: 20px;
}

.vblt-confirmation h2 {
    font-size: 28px;
    color: #7ddf7e;
    margin: 0 0 10px;
}

.vblt-confirmation p {
    font-size: 16px;
    color: #ddd;
    margin: 8px 0;
}

.vblt-confirm-details {
    text-align: left;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    display: inline-block;
    min-width: 300px;
}

.vblt-confirm-details p {
    margin: 6px 0;
    font-size: 14px;
    color: #fff;
}

/* ═══════════════════════════════════
   AMENITY SELECTOR BUTTONS
   ═══════════════════════════════════ */

.vblt-amenity-question {
    margin-bottom: 24px;
}

.vblt-amenity-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

.vblt-amenity-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vblt-amenity-btn {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.vblt-amenity-btn:hover:not(:disabled) {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
}

.vblt-amenity-btn-selected {
    border-color: #7ddf7e;
    background: rgba(44, 95, 45, 0.4);
    color: #7ddf7e;
    box-shadow: 0 0 0 1px #7ddf7e;
}

.vblt-amenity-btn-selected:hover {
    border-color: #7ddf7e;
    background: rgba(44, 95, 45, 0.5);
}

.vblt-amenity-btn-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-style: dashed;
}

.vblt-amenity-btn-unavailable {
    border: 2px solid #d32f2f;
    background: rgba(211, 47, 47, 0.15);
    color: #ff6b6b;
    cursor: not-allowed;
    font-weight: 700;
}

.vblt-amenity-btn-unavailable:hover {
    border-color: #d32f2f;
    background: rgba(211, 47, 47, 0.15);
}

/* ── No-availability banner ── */
.vblt-no-availability-banner {
    background: rgba(211, 47, 47, 0.15);
    border: 2px solid #d32f2f;
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}

.vblt-no-availability-banner p {
    color: #ff6b6b;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* ── Cross-park link boxes (separate element below the error banner) ── */
.vblt-other-parks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 24px;
}

.vblt-other-park-link {
    display: block;
    padding: 16px 20px;
    background: rgba(44, 95, 45, 0.15);
    border: 2px solid #2c5f2d;
    border-radius: 10px;
    color: #7ddf7e;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.vblt-other-park-link:hover {
    background: rgba(44, 95, 45, 0.35);
    border-color: #7ddf7e;
    color: #fff;
    transform: translateY(-1px);
}

.vblt-other-park-link strong {
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .vblt-signup {
        padding: 0 16px;
    }

    .vblt-signup-title {
        font-size: 22px;
    }

    .vblt-price-highlight strong {
        font-size: 20px;
    }

    .vblt-confirm-details {
        min-width: auto;
        width: 100%;
    }
}
