/* ============================================================
   Healing Pro WhatsApp Booking — Frontend Styles
   Hijau tua kombinasi putih, matching tema Healing Pro
   ============================================================ */

.hpwab-booking-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 50px -20px rgba(27, 67, 50, 0.25);
    border: 1px solid #d8f3dc;
}

@media (max-width: 640px) {
    .hpwab-booking-wrap { padding: 20px; border-radius: 12px; }
}

.hpwab-booking-header { text-align: center; margin-bottom: 28px; }

.hpwab-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1b4332;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

@media (max-width: 640px) {
    .hpwab-title { font-size: 1.5rem; }
}

.hpwab-subtitle {
    color: #2d6a4f;
    opacity: 0.7;
    font-size: 0.95rem;
    margin: 0;
}

.hpwab-form { display: flex; flex-direction: column; gap: 16px; }

.hpwab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    .hpwab-grid { grid-template-columns: 1fr; }
}

.hpwab-field { display: flex; flex-direction: column; gap: 6px; }

.hpwab-field-full { grid-column: 1 / -1; }

.hpwab-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1b4332;
}

.hpwab-field input,
.hpwab-field select,
.hpwab-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #b7e4c7;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1b4332;
    background: #fff;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.hpwab-field input:focus,
.hpwab-field select:focus,
.hpwab-field textarea:focus {
    outline: none;
    border-color: #52b788;
    box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}

.hpwab-field input::placeholder,
.hpwab-field textarea::placeholder {
    color: #95a5a5;
}

.hpwab-field textarea { resize: vertical; min-height: 80px; }

/* Button */
.hpwab-actions { margin-top: 8px; }

.hpwab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.hpwab-btn-primary {
    background: #1b4332;
    color: #fff;
    width: 100%;
}

.hpwab-btn-primary:hover {
    background: #2d6a4f;
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -10px rgba(27, 67, 50, 0.5);
}

.hpwab-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hpwab-btn-wa {
    background: #25d366;
    color: #fff;
}

.hpwab-btn-wa:hover {
    background: #1ebe57;
    transform: translateY(-1px);
}

.hpwab-wa-icon { width: 20px; height: 20px; }

/* Disclaimer */
.hpwab-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #2d6a4f;
    opacity: 0.65;
    margin: 12px 0 0 0;
    line-height: 1.5;
}

.hpwab-info-icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* Success state */
.hpwab-success {
    text-align: center;
    padding: 32px 20px;
    animation: hpwab-fade-in 0.4s ease-out;
}

@keyframes hpwab-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hpwab-success-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d8f3dc;
    color: #1b4332;
    margin: 0 auto 16px;
}

.hpwab-success-icon svg { width: 32px; height: 32px; }

.hpwab-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b4332;
    margin: 0 0 8px 0;
}

.hpwab-success p {
    color: #2d6a4f;
    opacity: 0.75;
    margin: 0 0 24px 0;
}

.hpwab-success .hpwab-btn {
    display: inline-flex;
    padding: 14px 32px;
}

/* Loading state */
.hpwab-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hpwab-spin 0.8s linear infinite;
}

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

/* Error message */
.hpwab-error-msg {
    background: #fee;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 16px;
    border: 1px solid #fcc;
    display: none;
}

.hpwab-error-msg.show { display: block; }
