/**
 * Stable Phuckhang — Experience Form Styles
 * Cho shortcode [sp_experience_form]
 */

/* ── Form Container ─────────────────────────────────── */
.sp-experience-form {
    max-width: 620px;
    margin: 0 auto;
}

/* ── Fields ──────────────────────────────────────────── */
.sp-field {
    margin-bottom: 20px;
}

.sp-field label {
    display: block;
    font-weight: 700;
    color: #1e391f;
    font-size: 14px;
    margin-bottom: 8px;
}

.sp-required {
    color: #dc2626;
}

.sp-field input[type="text"],
.sp-field input[type="tel"],
.sp-field textarea {
    width: 100%;
    border: 1.5px solid #a4c99c;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14.5px;
    color: #1e391f;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-field input[type="text"],
.sp-field input[type="tel"] {
    height: 44px;
    line-height: 44px;
}

.sp-field textarea {
    padding: 12px 16px;
    line-height: 1.5;
}

.sp-field input:focus,
.sp-field textarea:focus {
    border-color: #2c5e2e;
    box-shadow: 0 0 0 3px rgba(44, 94, 46, 0.1);
}

/* ── Phone Status ────────────────────────────────────── */
.sp-field-status {
    margin-top: 6px;
    font-size: 13px;
    min-height: 20px;
}

.sp-status-ok {
    color: #16a34a;
    font-weight: 600;
}

.sp-status-error {
    color: #dc2626;
    font-weight: 600;
}

/* ── Cost Summary ────────────────────────────────────── */
.sp-cost-summary {
    background: #f7faf5;
    border: 1px solid #e0ecda;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 25px;
}

.sp-cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.sp-cost-row .sp-free {
    color: #2c5e2e;
}

.sp-cost-total {
    border-top: 1px dashed #cce2c9;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-cost-total span {
    font-weight: 700;
    color: #1e391f;
    font-size: 15px;
}

.sp-cost-total .sp-price {
    color: #c94a29;
    font-size: 22px;
    font-weight: 800;
}

/* ── Submit Button ───────────────────────────────────── */
.sp-submit-btn {
    width: 100%;
    background: #2c5e2e;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 20px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
    box-shadow: 0 4px 15px rgba(44, 94, 46, 0.25);
}

.sp-submit-btn:hover:not(:disabled) {
    background: #1e4a20;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 94, 46, 0.35);
}

.sp-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.sp-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Spinner ─────────────────────────────────────────── */
.sp-spinner {
    animation: sp-spin 1s linear infinite;
}

@keyframes sp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Privacy Note ────────────────────────────────────── */
.sp-privacy-note {
    text-align: center;
    margin-top: 16px;
    font-size: 12.5px;
    color: #777;
}

.sp-privacy-note i {
    color: #2c5e2e;
    margin-right: 5px;
}

/* ── States ──────────────────────────────────────────── */
.sp-success-box,
.sp-claimed-box {
    text-align: center;
    padding: 40px 20px;
}

.sp-success-icon,
.sp-claimed-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.sp-success-box h3,
.sp-claimed-box h3 {
    color: #1e391f;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.sp-success-box p,
.sp-claimed-box p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.sp-success-note {
    color: #777 !important;
    font-size: 13px !important;
    margin-top: 20px;
}

.sp-order-info {
    color: #2c5e2e;
    font-weight: 700;
    font-size: 15px;
    margin-top: 16px;
}

.sp-shop-link {
    display: inline-block;
    margin-top: 20px;
    background: #2c5e2e;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.25s;
}

.sp-shop-link:hover {
    background: #1e4a20;
}

/* ── Error Alert ─────────────────────────────────────── */
.sp-form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #991b1b;
    font-size: 14px;
}
