import @tailwindcss base;
import @tailwindcss components;
import @tailwindcss utilities;

* {
    margin: 0px;
    padding: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    /* background: linear-gradient(to right,lightcyan, #5d7c7a, #d8c3e0); */
    background:#e5e7eb;

}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 3px solid white;
    background: white;
    margin-top: 2%;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

header {
    animation: slideInHeader 1s ease-out;
}

@keyframes slideInHeader {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

form .input_control {
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    row-gap: 15px;
}

.question-container {
 /* positioning of the child element */
    position: relative; 
    background-color: #e5e7eb;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px 25px 25px 25px; /* More padding at the top to make space */
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 20px; /* Provides space above the container for the number block */
}

.question-number {
    /* This makes the element 'float' over its parent */
    position: absolute; 
            
    /* Pulls the block up to overlap the container's top border */
    top: -15px; 
    left: 25px; 
    background-color: #090d02;       
    /* background-color: green;        */
    color: white;
    padding: 8px 16px;
    border-radius: 20px; /* for the pill shape */          
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.question-text {
    color: #333;
    line-height: 1.6;
}

input[type="radio"] {
  margin-right: 10px;
  transform: scale(1.1);
  accent-color: black   ;
}

.radio_options {
    font-size: 12px;
    display: flex;
    align-items: center;
} 

::placeholder{
    color: #333;    
}

/* Hide disabled options in select dropdowns to prevent placeholder from appearing in the list */
select option:disabled {
    display: none;
}

.input-valid {
    border-color: #10B981; /* Tailwind's green-500 */
}
.input-invalid {
    border-color: #EF4444; /* Tailwind's red-600 */
}

footer {
    text-align: center;
    padding: 1.2rem;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #e2e4e8;
    background: #ffffff;
}