/* --- Custom styles for number selection buttons --- */
.number-toggle-button {
    border: 2px solid #D1D5DB; /* Slightly thicker border */
    color: #4B5563;
    background-color: white;
    transition: all 0.2s ease-in-out;
    font-size: 1.125rem; /* Larger font */
}
.number-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Active state for liked numbers (Green) */
.number-toggle-button.like-active {
    background-color: #10B981;
    border-color: #059669;
    color: white;
    transform: scale(1.05); /* Pop effect */
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
/* Active state for disliked numbers (Red) */
.number-toggle-button.dislike-active {
    background-color: #EF4444;
    border-color: #DC2626;
    color: white;
    transform: scale(1.05); /* Pop effect */
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* --- Improved input styles for all form elements --- */
.form-input-styled {
    background-color: #FFFFFF; /* Light gray background */
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem; /* Ensures consistent font size on iOS */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    -webkit-appearance: none; /* Removes default Safari styling */
    -moz-appearance: none;
    appearance: none;
}
.form-input-styled:focus {
    border-color: var(--color-primary-orange);
    box-shadow: 0 0 0 3px rgba(221, 107, 32, 0.3);
    outline: none;
    background-color: white;
}

/* Custom styling for select dropdowns */
.form-select-styled {
    background-color: #FFFFFF;
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Specific styles for single digit inputs */
.form-input-digit {
    text-align: center;
    font-size: 1.25rem; /* Larger font for digits */
    padding: 0;
    /* Use aspect ratio to maintain square shape */
    width: 100%;
    aspect-ratio: 1 / 1;
}
@media (min-width: 640px) {
    .form-input-digit {
        width: 3.5rem; /* 56px on larger screens */
        height: 3.5rem;
    }
}

/* --- Modern Submit Button --- */
.btn-modern {
    background-color: var(--color-primary-orange);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(221, 107, 32, 0.39);
    transition: all 0.3s ease-in-out;
}
.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(221, 107, 32, 0.45);
}
.btn-modern:active {
    transform: translateY(0);
}