:root {
    --brand-primary: #007bff;
    --brand-text: #fff;
    --action-success: #34c759;
    --action-danger: #ff3b30;
    --surface-bg: #fff;
    --surface-shadow: rgba(0, 0, 0, 0.2);
    --text-muted: #666;
    --input-border: #ccc;
}

body,
html {
    font-family: arial;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    background: transparent;
}

#outercontainer {
    background: transparent;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 9999998;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes hintSwipe {

    0%,
    100% {
        transform: translateX(0px) rotate(0deg);
    }

    25% {
        transform: translateX(15px) rotate(2deg);
    }

    75% {
        transform: translateX(-15px) rotate(-2deg);
    }
}

.hint-animation {
    animation: hintSwipe 2s infinite ease-in-out;
}

.swipe-hint {
    position: absolute;
    bottom: 110px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 20;
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.swipe-hint-left {
    left: 15px;
}

.swipe-hint-right {
    right: 15px;
}

.thy-logo {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    z-index: 20;
    pointer-events: none;
}

.arrow-icon {
    width: 14px;
    height: 14px;
}

.swipe-card {
    width: 300px;
    height: 400px;
    background: var(--surface-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--surface-shadow);
    position: absolute;
    display: none;
    flex-direction: column;
    overflow: hidden;
    will-change: transform, opacity;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    touch-action: none;
}

.swipe-card.active {
    display: flex;
    opacity: 1;
    z-index: 2;
    cursor: grab;
    user-select: none;
    transform: translateX(0px) rotate(0deg);
    pointer-events: auto;
}

.swipe-card.dragging {
    cursor: grabbing;
    transition: none;
}

.ad-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.swipe-card.active .ad-image {
    pointer-events: auto;
    cursor: pointer;
}

.ad-content {
    padding: 15px;
    text-align: center;
    height: 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ad-title {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.ad-description {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.indicator {
    position: absolute;
    top: 70px;
    padding: 10px;
    font-weight: bold;
    font-size: 24px;
    border: 4px solid;
    border-radius: 10px;
    opacity: 0;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
}

.indicator.left {
    right: 20px;
    color: var(--action-success);
    border-color: var(--action-success);
    transform: rotate(15deg);
}

.indicator.right {
    left: 20px;
    color: var(--action-danger);
    border-color: var(--action-danger);
    transform: rotate(-15deg);
}

#lead-form-card {
    padding: 20px;
    box-sizing: border-box;
}

.form-title {
    text-align: center;
    margin-top: 20px;
}

.close-form-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--action-danger);
    color: var(--brand-text);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    z-index: 11;
}

.form-click-overlay {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    z-index: 10;
    cursor: pointer;
    background: transparent;
}

#lead-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#lead-form input[type="text"],
#lead-form input[type="tel"] {
    padding: 10px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-align: left;
}

.checkbox-group input {
    margin: 0;
}

#lead-form button[type="submit"] {
    padding: 10px;
    background: var(--brand-primary);
    color: var(--brand-text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}