.tqp-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.tqp-popup.active {
    display: flex;
}

.tqp-popup-content {
    background: linear-gradient(to bottom, #ffebee, #ffffff); /* Gradient from light red to white */
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow for depth */
}

.tqp-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto 10px;
    display: block;
}

.tqp-close {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    background: #d00000;
    color: white;
    border: 2px solid #a30000;
    border-radius: 50%;
}

.tqp-close:hover {
    background: #a30000;
}

.tqp-header {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tqp-header h2 {
    font-size: 16px;
    color: #d00000;
    margin: 0;
    font-weight: bold;
}

.tqp-header .tqp-subtext {
    font-size: 12px;
    color: #555;
    margin: 5px 0 0;
    line-height: 1.4;
}

.tqp-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tqp-field {
    display: flex;
    flex-direction: column;
}

.tqp-field input,
.tqp-select-field select,
.tqp-field textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    background: #fff; /* Ensure form fields contrast with gradient */
}

.tqp-field textarea {
    height: 30px;
}

.tqp-form input[type="submit"] {
    background: #d00000;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.tqp-form input[type="submit"]:hover {
    background: #a30000;
}

.tqp-error {
    color: red;
    margin-bottom: 15px;
}

.tqp-thankyou-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.tqp-thankyou-popup.active {
    display: flex;
}

.tqp-thankyou-content {
    background: linear-gradient(to bottom, #ffebee, #ffffff); /* Gradient for thank you popup */
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tqp-thankyou-close {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    background: #d00000;
    color: white;
    border: 2px solid #a30000;
    border-radius: 50%;
}

.tqp-thankyou-close:hover {
    background: #a30000;
}

.tqp-show-popup {
    background: #d00000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.tqp-show-popup:hover {
    background: #a30000;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .tqp-popup-content {
        width: 80%;
        max-width: 80%;
        padding: 15px;
    }

    .tqp-thankyou-content {
        width: 80%;
        max-width: 80%;
        padding: 15px;
    }

    .tqp-logo {
        display: none;
    }

    .tqp-header {
        padding: 8px;
    }

    .tqp-header h2 {
        font-size: 14px;
    }

    .tqp-header .tqp-subtext {
        font-size: 10px;
    }

    .tqp-form {
        gap: 6px;
    }

    .tqp-field,
    .tqp-select-field {
        gap: 0;
    }

    .tqp-field input,
    .tqp-select-field select,
    .tqp-field textarea {
        font-size: 12px;
        padding: 6px;
        height: 30px;
    }

    .tqp-field textarea {
        height: 30px;
    }

    .tqp-form input[type="submit"] {
        font-size: 12px;
        padding: 6px;
        margin-top: 5px;
    }

    .tqp-error {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .tqp-thankyou-content p {
        font-size: 12px;
        margin: 5px 0;
    }

    .tqp-close,
    .tqp-thankyou-close {
        font-size: 20px;
        width: 30px;
        height: 30px;
        line-height: 28px;
        top: -15px;
        right: -15px;
    }
}