/* Simple ListingPro Contact Reveal Styles */

/* Hide original ListingPro phone displays */
.show-number-wrap,
.show-number,
.grind-number {
    display: none !important;
}

/* Show our contact reveal buttons */
.tp-contact-reveal-wrap {
    display: block !important;
}

.tp-contact-reveal-container {
    margin: 20px 0;
    text-align: center;
    display: block !important;
}

.tp-contact-reveal-btn,
.tp-contact-revealed-btn {
    background: #1bc5bd;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    letter-spacing: 0.4px;
    box-shadow: 0 3px 12px rgba(27, 197, 189, 0.25);
    margin: 4px;
}

.tp-contact-reveal-btn:hover,
.tp-contact-revealed-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 197, 189, 0.3);
}

.tp-contact-reveal-btn:active,
.tp-contact-revealed-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(27, 197, 189, 0.2);
}

.tp-contact-reveal-btn::before,
.tp-contact-revealed-btn::before {
    display: none;
}

.tp-contact-revealed-btn a {
    color: white !important;
    text-decoration: none;
}

.tp-simple-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 32, 0.55);
    backdrop-filter: blur(8px);
    z-index: 999900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.tp-simple-modal__content {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.tp-simple-header {
    padding: 28px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(0, 196, 140, 0.1));
}

.tp-simple-header h3 {
    margin: 0;
    font-size: 16px !important;
    font-weight: 600;
    color: #0e1b2b;
    letter-spacing: -0.3px;
}

.tp-simple-fields {
    padding: 24px 28px 10px 28px;
    display: flex;
    gap: 18px;
}

.tp-simple-field {
    flex: 1;
}

.tp-simple-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6b7688;
    margin-bottom: 8px;
}

.tp-simple-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #0f1f33;
    background: #f7f9fc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tp-simple-field input:focus {
    border-color: rgba(0, 120, 212, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.15);
    background-color: #ffffff;
    outline: none;
}

.tp-simple-submit {
    width: calc(100% - 56px);
    margin: 14px 28px 28px 28px;
    padding: 14px;
    background: linear-gradient(90deg, #0078d4, #00c48c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 20px 36px rgba(0, 120, 212, 0.25);
}

.tp-simple-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(0, 120, 212, 0.32);
}

.tp-simple-submit:active {
    transform: translateY(0);
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.2);
}

.tp-close {
    font-size: 20px;
    cursor: pointer;
    color: #8a94a6;
    background: rgba(15, 23, 42, 0.05);
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tp-close:hover {
    background-color: rgba(0, 120, 212, 0.12);
    color: #00508a;
}

@media (max-width: 768px) {
    .tp-simple-modal__content {
        max-width: 92vw;
        margin: 10px;
    }

    .tp-simple-fields {
        flex-direction: column;
        gap: 14px;
        padding: 24px 24px 10px 24px;
    }

    .tp-simple-submit {
        width: calc(100% - 48px);
        margin: 12px 24px 24px 24px;
    }

    .tp-contact-reveal-container {
        margin: 12px 0;
    }

    .tp-contact-reveal-btn,
    .tp-contact-revealed-btn {
        width: 100%;
        margin: 6px 0;
    }
}

@media (max-width: 480px) {
    .tp-contact-reveal-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
