/* Popup Overlay */
.tm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Disable scrolling when popup is active */
body.tm-popup-active {
    overflow: hidden;
}

/* Popup Container */
/* Popup Container */
.tm-popup-container {
    background: #fff url('../images/infopark.jpg') no-repeat center bottom;
    background-size: 100% 100%;
    /* Full image stretch */
    /* Cover entire popup */
    border: 5px solid #fff;
    width: 75%;
    max-width: 1200px;
    height: auto;
    /* Auto height */
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    animation: tmFadeIn 0.3s ease-out;
}

@keyframes tmFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.tm-popup-close {
    position: absolute;
    top: 8px;
    /* Vertically aligned with header */
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    /* White close icon */
    z-index: 20;
    line-height: 1;
}

/* Main Header */
.tm-main-header {
    width: 100%;
    padding: 10px 15px 5px 15px;
    /* Reduced top padding further */
    text-align: center;
    border-bottom: 1px solid #990000;
    background: #cc0000;
}

.tm-main-header h2 {
    margin: 0;
    font-size: 30px;
    /* Increased to 30px */
    /* Increased from 24px */
    color: #fff;
    font-weight: 800;
    /* text-transform: uppercase; Removed for Camel Case */
    letter-spacing: 0.5px;
}

.tm-highlight-text {
    color: #ffeb3b;
    /* Yellow Highlight */
}

/* Row Wrapper */
.tm-popup-row {
    display: flex;
    width: 100%;
    background: transparent;
    /* Image is now on container */
}

/* Columns */
.tm-popup-col {
    padding: 10px 20px;
    /* Reduced from 20px 25px */
    flex: 1;
}

/* Left Column: Form */
.tm-popup-form-col {
    background: transparent;
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    /* Centering */
    align-items: center;
    justify-content: center;
}

.tm-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px 15px 5px 15px;
    /* Reduced bottom padding */
    width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tm-form-card h2 {
    margin-top: 0;
    color: #cc0000;
    /* Brand Red for Title */
    font-size: 22px;
    /* Slightly reduced size */
    font-weight: 800;
    /* Extra Bold */
    margin-bottom: 0;
    padding-bottom: 0;
    /* Removed bottom padding */
    text-align: center;
}

.tm-header-prefix {
    color: #000;
}

.tm-form-subtitle {
    margin: 0 0 5px 0;
    /* Reduced from 15px */
    color: #64748b;
    font-size: 13px;
    /* Slightly reduced size */
    text-align: center;
    line-height: 1.4;
}

.tm-form-group {
    margin-bottom: 6px;
    /* Reduced from 8px */
}

.tm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    /* Dark again */
    margin-top: 0;
}

.tm-group-title {
    display: block;
    margin: 0;
    /* Removed margins */
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.tm-form-group input[type="text"],
.tm-form-group input[type="tel"],
.tm-form-group input[type="email"],
.tm-form-group input[type="number"],
.tm-form-group select {
    width: 100%;
    padding: 5px;
    /* Reduced to 5px */
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 13px;
    background: #fff;
    transition: all 0.2s ease;
}

.tm-form-group input:focus,
.tm-form-group select:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    outline: none;
}

/* Radio Group */
.tm-radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tm-radio-group label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
}

.tm-radio-group input {
    margin-right: 5px;
}

.tm-submit-btn {
    width: 100%;
    padding: 8px 24px;
    background: linear-gradient(to bottom, #cc0000, #990000);
    /* Gradient Effect */
    color: #fff;
    border: 1px solid #7a0000;
    /* Subtle darker border */
    border-top: 1px solid #ff4d4d;
    /* Lighting on top edge */
    border-bottom: 1px solid #660000;
    /* Shadow on bottom edge */
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 6px rgba(153, 0, 0, 0.3);
    /* Depth + Lighting */
}

.tm-trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 13px;
    /* Increased for visibility */
    color: #64748b;
}

.tm-badge-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tm-submit-btn:hover {
    background: linear-gradient(to bottom, #e60000, #b30000);
    /* Brighter on hover */
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(153, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: #fff;
}

.tm-submit-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Right Column: Banner */
.tm-popup-banner-col {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 70%, transparent 100%);
    /* Darker & Extended fade */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically centered */
    flex: 0 0 40%;
    max-width: 40%;
}

.tm-banner-content h2 {
    color: #fff;
    font-size: 26px;
    margin-top: 0;
}

.tm-subheading {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.35;
    margin-bottom: 20px;
}

.tm-highlights {
    list-style: none;
    padding: 0;
    margin: 5px 0;
    /* Reduced from 15px */
}

.tm-highlights li {
    margin-bottom: 5px;
    /* Reduced from 8px */
    padding: 10px 12px 10px 38px;
    position: relative;
    font-size: 14px;
    line-height: 1.25;
    background: transparent;
    /* Removed bg */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    /* Added bottom border */
    border-radius: 0;
    /* Removed radius for clean line */
    backdrop-filter: none;
    /* Removed blur */
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tm-highlights li:hover {
    background: transparent;
    transform: translateX(5px);
}

.tm-highlights li:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    /* Slightly larger for image */
    height: 20px;
    background: url('../images/check.png') no-repeat center center;
    background-size: contain;
    /* Removed text styling */
}

.tm-callout-box {
    background: rgba(0, 0, 0, 0.85);
    /* Black overlay */
    color: #ffeb3b;
    /* Yellow text */
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #ffeb3b;
    /* Yellow accent border */
    font-size: 14.5px;
    line-height: 1.3;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none;
}

/* Message */
#tm-form-message {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.tm-success {
    color: green;
}

.tm-error {
    color: red;
}

/* Typing Loader */
.tm-typing-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 15px 0;
}

.tm-typing-loader span {
    width: 10px;
    height: 10px;
    background: #cc0000;
    border-radius: 50%;
    display: inline-block;
    animation: tm-typing 1.4s infinite ease-in-out both;
}

.tm-typing-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.tm-typing-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes tm-typing {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1.0);
        opacity: 1;
    }
}

/* Math Captcha Styles (Mimics ds-cf7-math-captcha) */
.tm-captcha-container {
    background: #f9f9f9;
    /* Grey bg again */
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
    width: 100%;
}

.tm-captcha-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #333;
    /* Dark again */
}

.tm-captcha-container input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #eee;
    border-radius: 5px;
    box-sizing: border-box;
}

.tm-refresh-icon {
    cursor: pointer;
    color: #555;
    font-size: 20px;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .tm-popup-container {
        width: 95%;
        height: 90vh;
        overflow-y: auto;
    }

    .tm-popup-row {
        flex-direction: column;
    }

    .tm-popup-col,
    .tm-popup-form-col,
    .tm-popup-banner-col {
        padding: 20px;
        flex: auto;
        max-width: 100%;
    }

    .tm-popup-banner-col {
        padding: 20px;
    }

    .tm-form-card {
        width: 100%;
        /* Full width on mobile */
    }

    .tm-popup-close {
        color: #000;
        top: 10px;
        right: 15px;
    }
}

/* Main Footer */
.tm-main-footer {
    width: 100%;
    padding: 8px 0;
    /* Top/bottom padding */
    text-align: center;
    border-top: none;
    /* Removed for seamless blend */
    background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.95) 80%, transparent 100%);
    /* Center overlay only */
    backdrop-filter: none;
    /* Removed to avoid boxy look */
}

.tm-main-footer h3 {
    margin: 0;
    padding: 0;
    padding-bottom: 0;
    /* No bottom padding */
    margin-bottom: 0px;
    line-height: 1;
    /* Extra tight */
    font-size: 30px;
    /* Reduced to 30px */
    color: #ffeb3b;
    /* Yellow */
    font-weight: 800;
    /* text-transform: uppercase; Removed for Camel/Title case */
    letter-spacing: 0.5px;
}

.tm-main-footer p {
    margin: 0;
    font-size: 11px;
    /* Smaller subtitle */
    color: #ffd1d1;
    /* Lighter red for subtitle */
    font-weight: 500;
}

/* Boom Animation */
@keyframes tmBoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.tm-boom-text {
    color: #ff0000;
    /* Red */
    display: inline-block;
    font-weight: 800;
    margin-right: 5px;
    margin-left: 30px;
    font-size: 42px;
    /* Added space to avoid overlap */
    animation: tmBoom 1.5s infinite ease-in-out;
}