/* Popup Container */
.tap2tour-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tap2tour-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.tap2tour-popup-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 520px;
    padding: 0;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.tap2tour-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #000000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.tap2tour-close-btn:hover {
    background: #000000;
    color: #ffffff;
}

/* Header Section */
.tap2tour-popup-header {
    background: #ffcc00;
    padding: 40px 30px 30px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.tap2tour-popup-header h2 {
    color: #000000;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tap2tour-popup-header p {
    color: #000000;
    font-size: 14px;
    margin: 0;
}

/* Content Section */
.tap2tour-popup-content {
    padding: 30px;
}

.tap2tour-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

/* Option Buttons */
.tap2tour-option-btn {
    padding: 16px;
    border: 2px solid #e0e0e0;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    justify-content: space-between;
}

.tap2tour-option-btn:hover {
    border-color: #ffcc00;
    background: #fff4c7;
    transform: translateX(4px);
}

.tap2tour-option-btn.active {
    border-color: #ffcc00;
    background: #fff4c7;
    color: #000000;
    border-width: 2px;
}

.tap2tour-option-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.tap2tour-option-text {
    flex: 1;
}

.tap2tour-option-title {
    font-weight: 700;
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
}

.tap2tour-option-desc {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    line-height: 1.3;
}

/* Phone Input Section */
.tap2tour-phone-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f0f8ff;
    border-radius: 8px;
    border: 2px solid #e0f0ff;
    transition: all 0.2s ease;
}

.tap2tour-phone-section.error {
    background: #ffe6e6;
    border-color: #ffcccc;
}

.tap2tour-phone-label {
    display: block;
    font-size: 12px;
    color: #004E89;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tap2tour-phone-input {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.tap2tour-phone-input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.tap2tour-phone-input.error {
    border-color: #ffcc00;
    background: #fff5f0;
}

.tap2tour-phone-hint {
    font-size: 11px;
    color: #666;
    margin-top: 6px;
}

.tap2tour-error-message {
    font-size: 12px;
    color: #c33;
    margin-top: 6px;
    display: none;
}

.tap2tour-error-message.show {
    display: block;
}

/* CTA Button */
.tap2tour-cta-btn {
    width: 100%;
    padding: 14px;
    background: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tap2tour-cta-btn:hover:not(:disabled) {
    background: #ffcc00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.tap2tour-cta-btn:active:not(:disabled) {
    transform: translateY(0);
}

.tap2tour-cta-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading State */
.tap2tour-cta-btn.loading {
    background: #ffcc00;
    position: relative;
}

.tap2tour-cta-btn.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 16px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skip Link */
.tap2tour-skip-link {
    text-align: center;
    font-size: 13px;
}

.tap2tour-skip-link a {
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 12px;
}

.tap2tour-skip-link a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .tap2tour-popup-modal {
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
    }

    .tap2tour-popup-header {
        padding: 15px 20px;
    }

    .tap2tour-popup-header h2 {
        font-size: 20px;
    }
    .tap2tour-popup-header{
        text-align: left;
    }
    .tap2tour-popup-content {
        padding: 20px;
    }

    .tap2tour-option-btn {
        padding: 5px 10px;
        font-size: 13px;
    }

    .tap2tour-option-icon {
        font-size: 16px;
    }

    .tap2tour-cta-btn {
        padding: 12px;
        font-size: 14px;
    }

    .tap2tour-phone-input {
        font-size: 14px;
        padding: 5px 12px;
    }

    .tap2tour-option-title {
        font-weight: normal;
        font-size: 14px;
    }

    .tap2tour-option-desc {
        display: none
    }

    .tap2tour-option-text {
        top: 3px;
        position: relative;
    }
}

/* Test Page Styling */
.test-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.test-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    line-height: 1.8;
}

.test-content h1 {
    color: #004E89;
    margin-bottom: 20px;
}

.test-content h2 {
    color: #004E89;
    margin-top: 30px;
    margin-bottom: 15px;
}

.test-content p {
    margin-bottom: 15px;
    color: #555;
}

.test-content ul,
.test-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.test-content li {
    margin-bottom: 8px;
}

.highlight-box {
    background: #EAF3DE;
    border-left: 4px solid #3B6D11;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.code-block {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: monospace;
    font-size: 12px;
}
/* ------------------------ */


.tap2tour-option-btn input[type="radio"] {
    display: none;
}

.tap2tour-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    min-width: 20px;
}

.tap2tour-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #ffcc00;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: 0.2s ease;
}

.tap2tour-option-btn input[type="radio"]:checked + .tap2tour-radio {
    border-color: #ffcc00;
}

.tap2tour-option-btn input[type="radio"]:checked + .tap2tour-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.tap2tour-option-btn input[type="radio"]:checked ~ .tap2tour-option-text {
    color: #ffcc00;
}

.tap2tour-option-btn input[type="radio"]:checked {
    /* trigger parent highlight */
}

.tap2tour-option-btn:has(input:checked) {
    border-color: #ffcc00;
    background: #fff9e2;
}