/* Contact Form Styles */
:root {
    --header-h: 200px;
}

/* CAPTCHA Container Styles */
.captcha-container {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.captcha-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

/* Puzzle Container Styles */
.puzzle-container {
    display: none;
    margin: 15px 0;
}

.puzzle-container.active {
    display: block;
}

/* Drag and Drop Puzzle Styles */
.drag-puzzle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.puzzle-pieces {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.puzzle-piece {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #007bff, #28a745);
    border: 2px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: grab;
    transition: transform 0.2s;
    user-select: none;
}

.puzzle-piece:hover {
    transform: scale(1.05);
}

.puzzle-piece.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.drop-zone {
    width: 100%;
    max-width: 300px;
    height: 80px;
    border: 3px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    background: #fafafa;
    transition: all 0.3s;
}

.drop-zone.drag-over {
    border-color: #007bff;
    background: #e3f2fd;
}

.drop-zone.filled {
    background: #28a745;
    color: white;
    border-color: #1e7e34;
}

/* Slider Puzzle Styles */
.slider-puzzle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 30px;
    overflow: hidden;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 60px;
    height: 4px;
    background: #ccc;
    transform: translateY(-50%);
    border-radius: 2px;
}

.slider-progress {
    height: 100%;
    background: #007bff;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s;
}

.slider-handle {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 25px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: background 0.3s;
    user-select: none;
}

.slider-handle:hover {
    background: #0056b3;
}

.slider-handle.dragging {
    cursor: grabbing;
}

/* Math Puzzle Styles */
.math-puzzle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.math-equation {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background: #f0f0f0;
    padding: 15px 25px;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.math-input {
    width: 100px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.math-input:focus {
    border-color: #007bff;
    outline: none;
}

/* Pattern Puzzle Styles */
.pattern-puzzle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(4, 50px);
    gap: 5px;
    justify-content: center;
}

.pattern-cell {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pattern-cell:hover {
    border-color: #007bff;
}

.pattern-cell.selected {
    background: #007bff;
    color: white;
}

.pattern-cell.correct {
    background: #28a745;
    color: white;
}

.pattern-cell.incorrect {
    background: #dc3545;
    color: white;
}

/* CAPTCHA Status and Controls */
.captcha-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.captcha-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.captcha-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.captcha-refresh {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.captcha-refresh:hover {
    background: #0056b3;
}

/* Puzzle Selector */
.puzzle-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.puzzle-btn {
    background: #f0f0f0;
    border: 2px solid #ddd;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.puzzle-btn:hover, .puzzle-btn.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

/* Honeypot Fields */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Debug Info Panel */
.debug-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 12px;
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .puzzle-piece {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .pattern-cell {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pattern-grid {
        grid-template-columns: repeat(4, 40px);
    }

    .math-equation {
        font-size: 20px;
        padding: 10px 15px;
    }

    .captcha-title {
        font-size: 16px;
    }

    .debug-info {
        font-size: 10px;
        padding: 8px;
    }
}