/* =============================================
   Hide Price Pro – Frontend CSS
   ============================================= */

/* ── Price Replacement ── */
.hpsc-price-replacement {
    display: inline-block;
    font-size: 1em;
    font-weight: 600;
    color: #555;
}

.hpsc-price-replacement a {
    color: #6C63FF;
    text-decoration: none;
    font-weight: 600;
}
.hpsc-price-replacement a:hover { text-decoration: underline; }

/* ── Cart Price Dash ── */
.hpsc-cart-price { color: #888; font-style: italic; }

/* ── Inquiry Button ── */
.hpsc-inquiry-wrap { display: inline-block; margin-top: 8px; }
.hpsc-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #6C63FF;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none !important;
}
.hpsc-inquiry-btn:hover {
    background: #5A52D5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108,99,255,0.4);
    color: #fff !important;
}
.hpsc-inquiry-btn:active { transform: translateY(0); }

/* ── Modal Backdrop ── */
.hpsc-inquiry-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: hpscFadeIn 0.2s ease;
}
@keyframes hpscFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hpscSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Modal Card ── */
.hpsc-inquiry-modal-inner {
    background: #fff;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: hpscSlideUp 0.25s ease;
}

/* ── Modal Close ── */
.hpsc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    color: #6B7280;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    line-height: 1;
}
.hpsc-modal-close:hover { background: #E5E7EB; color: #111; }

/* ── Modal Loading ── */
.hpsc-modal-loading { text-align: center; padding: 40px 20px; }
.hpsc-modal-loading .hpsc-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(108,99,255,0.2);
    border-top-color: #6C63FF;
    border-radius: 50%;
    animation: hpscSpin 0.7s linear infinite;
}
@keyframes hpscSpin { to { transform: rotate(360deg); } }

/* ── Inquiry Form ── */
.hpsc-inquiry-form-wrap {}
.hpsc-inquiry-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1F36;
    margin: 0 0 20px;
    padding-right: 32px;
}

.hpsc-inquiry-form .hpsc-form-row { margin-bottom: 14px; }
.hpsc-inquiry-form .hpsc-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
}
.hpsc-inquiry-form .hpsc-form-row .required { color: #FF4757; }

.hpsc-input, .hpsc-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: #1A1F36;
    background: #fff;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.hpsc-input:focus, .hpsc-textarea:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
.hpsc-input--short { width: 120px; }
.hpsc-textarea { resize: vertical; }

/* ── Submit Button ── */
.hpsc-form-actions { margin-top: 18px; }
.hpsc-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #6C63FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.hpsc-submit-btn:hover { background: #5A52D5; }
.hpsc-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.hpsc-submit-btn .hpsc-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hpscSpin 0.6s linear infinite;
}
.hpsc-submit-btn.hpsc-loading .hpsc-spinner { display: inline-block; }

/* ── Form Response ── */
.hpsc-form-response {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}
.hpsc-form-response.hpsc-success {
    background: rgba(0,200,150,0.1);
    border: 1px solid rgba(0,200,150,0.3);
    color: #007A5E;
    display: block;
}
.hpsc-form-response.hpsc-error {
    background: rgba(255,71,87,0.1);
    border: 1px solid rgba(255,71,87,0.3);
    color: #FF4757;
    display: block;
}

/* ── Body scroll lock ── */
body.hpsc-modal-open { overflow: hidden; }
