/* style.css */

/* Honeypot field (hidden but accessible for screen readers) */
.honeypot-field {
    position: absolute;
    left: -9999px;
}

/* Class to hide elements */
.hidden {
    display: none;
}

/* Main content adjustments */
.main-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Form styling */
form {
    margin-bottom: 1rem;
}

form label {
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form select {
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

form input[type="color"] {
    margin-bottom: 1rem;
    width: 100%;
    height: 40px;
    padding: 0.25rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

form input[type="file"] {
    margin-bottom: 1rem;
    width: 100%;
}

/* Button styling (override Foundation if needed) */
.button.expand {
    background-color: #008CBA;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.button.expand:hover {
    background-color: #006d91;
}

/* Result section */
.result {
    text-align: center;
}

.qr-container {
    margin: 1rem 0;
}

.qr-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    background-color: #fff;
}

.qr-text {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #333;
}

/* Placeholder text */
.placeholder {
    color: #777;
    font-style: italic;
}

/* Error message (alert box) */
.alert-box.alert {
    background-color: #f04124;
    color: #fff;
    border: none;
    border-radius: 4px;
}

/* Hover behavior for Products dropdown on desktop */
@media only screen and (min-width: 64.063em) {
    .top-bar2-section ul.right li.has-dropdown {
        position: relative;
    }

    .top-bar2-section ul.right li.has-dropdown > .dropdown {
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
        z-index: 1000;
    }

    .top-bar2-section ul.right li.has-dropdown:hover > .dropdown {
        display: block;
    }
}

/* Ensure click behavior works on mobile */
@media only screen and (max-width: 64em) {
    /* Let Foundation handle the display */
}

/* Responsive adjustments for form */
@media only screen and (max-width: 40em) {
    .main-section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .panel {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    form input[type="text"],
    form input[type="email"],
    form input[type="tel"],
    form input[type="number"],
    form select {
        font-size: 0.9rem;
    }

    .button.expand {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}