/* ==========================================================================
   The Phone Store — Modern Inquiry Modal & CTA Styling
   ========================================================================== */

/* Modal Backdrop */
.tps-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.tps-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Dialog Box */
.tps-modal-dialog {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    padding: 28px 24px 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tps-modal-overlay.active .tps-modal-dialog {
    transform: translateY(0) scale(1);
}

/* Close Button */
.tps-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tps-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Header */
.tps-modal-header {
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.tps-modal-brand-badge {
    display: none !important;
}

.tps-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.tps-modal-subtitle {
    margin: 5px 0 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Product Summary Preview */
.tps-modal-product-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.tps-modal-product-summary img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.tps-modal-prod-info h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.tps-modal-prod-info .tps-modal-price {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 2px;
}

/* Form Controls */
.tps-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.tps-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .tps-form-row {
        grid-template-columns: 1fr;
    }
}

.tps-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tps-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-transform: none !important;
    letter-spacing: 0;
}

.tps-required {
    color: #dc2626;
}

.tps-form-group input,
.tps-form-group select,
.tps-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.tps-form-group input:focus,
.tps-form-group select:focus,
.tps-form-group textarea:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.tps-form-group textarea {
    resize: vertical;
    min-height: 56px;
    line-height: 1.4;
}

/* Feedback messages */
.tps-form-feedback {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.tps-form-feedback.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.tps-form-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Primary Button */
.tps-btn-primary {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    margin-top: 6px;
    letter-spacing: 0.2px;
}

.tps-btn-primary:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tps-modal-footer {
    text-align: center;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
}

.tps-modal-footer p {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
}

/* Completely disable and suppress all WhatsApp links, buttons, and floating icons */
.tps-floating-whatsapp,
#tps-floating-whatsapp,
.tps-form-feedback a[href*="wa.me"],
.tps-form-feedback a[href*="whatsapp"],
.tps-form-feedback a,
a[href*="wa.me"],
a[href*="whatsapp"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
