﻿/* Contact Form Styles */
#divContactForm {
    text-align: center;
}

    #divContactForm label {
        width: 100%;
        font-size: 16pt;
        color: #fff;
        text-align: left;
    }

.contact-ctrl {
    width: 100%;
    margin-top: 10px;
    color: #333333;
}

.txt-error {
    background-color: #ffd5d5 !important;
}

#divContactFormSent {
    padding: 33px;
    border: dashed;
}

.contact-btn {
    color: #333333;
}

    .contact-btn:hover {
        color: #333333;
    }

/* Modal Styles */
.modalWrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    text-align: center;
    background-color: #333333d9;
    z-index: 9999;
}

.modalMain {
    max-width: 400px;
    max-height: 70vh;
    overflow: auto;
    margin: auto;
    background-color: white;
    padding: 40px;
    position: relative;
    top: 15%;
}

.modal-instruction {
    font-size: 14pt;
    color: #666;
    margin-bottom: 20px;
}
.modalClose {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 27pt;
    color: #333333;
}

#confirmFormModalText {
    font-size: 15pt;
    color: #333333;
    text-align: center; 
}

/* Dial Challenge Styles */
#dialContainer {
    text-align: center;
    width: 250px;
    height: 250px;
    position: relative;
    margin: auto;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transition: box-shadow 0.3s ease;
    border-radius: 50%;
}

    #dialContainer.correct {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }

    #dialContainer.interaction-started::after {
        display: none;
    }

    #dialContainer::after {
        content: '👆 Drag me';
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 14px;
        color: #666;
        animation: fadeOut 3s ease-in-out forwards;
        animation-delay: 2s;
        pointer-events: none;
    }

    /* Shake animation on CONTAINER instead of dial */
    #dialContainer.shake {
        animation: shake 0.5s;
    }

#dial {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 50px;
    left: 50px;
    background-image: url('../../images/form/dial.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
    cursor: grab;
    transition: filter 0.3s ease;
}

    #dial.grabbing {
        cursor: grabbing;
        transition: none;
    }

    #dial.correct-glow {
        filter: drop-shadow(0 0 15px #4CAF50);
    }

    #dial.no-transition {
        transition: none;
    }

/* Legacy slider - can be hidden or removed */
#horizontalSlider {
    width: 160px;
    cursor: grabbing;
    display: none; /* Hidden since we're using drag interaction */
}

/* Challenge Label States */
#lblChallenge.error {
    color: #ff6b6b;
}


#lblChallenge {
    margin-top: 15px;
    min-height: 20px;
}

#lblChallenge.critical-error {
    color: red;
}

/* Contact Form Animations */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Button Styles */
.button-outline {
    background-color: transparent;
    border: solid 2px #d8d8d8;
    color: #fff !important;
}

    .button-outline:hover {
        color: #333333 !important;
    }

.button-small {
    line-height: 4rem;
    height: 4rem;
}

    .button-small:visited {
        color: #000;
    }

        .button-small:visited:hover {
            color: #fff;
        }
