/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f9ff;
    color: #333;
    margin: 0;
    padding: 20px;
    text-align: left;
    /* Ensures all text is left-aligned */
}

/* Container to force full left alignment */
.container {
    max-width: 800px;
    margin: 0;
    padding: 10px;
}

/* Headings */
h1,
h2 {
    color: #1d4ed8;
    /* Deep blue */
    font-weight: 600;
    margin-left: 0;
    /* Aligns to the left */
}

/* Instructions */
p {
    max-width: 700px;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    /* Left-aligns text */
    margin-left: 0;
}

/* Form Container */
form {
    background: white;
    padding: 15px;
    /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 10px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* Labels */
label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 2px;
    /* Reduced margin below labels */
}

/* Inputs & Textareas */
input,
textarea {
    width: 100%;
    padding: 6px;
    /* Reduced padding inside inputs */
    margin-bottom: 5px;
    /* Reduced vertical spacing between fields */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
}

/* Reduce textarea height */
textarea {
    height: 60px;
    /* Adjust height */
    resize: vertical;
}

/* Dropdown (Microphone Selection) */
/*#microphoneSelect {*/
select {
    display: block;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
    min-width: 200px;
    width: auto;
    max-width: 100%;
    text-align: left;
    margin-bottom: 5px;
    /* Reduced spacing */
}

/* Highlight inputs on focus */
input:focus,
textarea:focus,
select:focus {
    border-color: #1d4ed8;
    outline: none;
    box-shadow: 0 0 5px rgba(29, 78, 216, 0.3);
}

/* Button */
button {
    background: #1d4ed8;
    color: white;
    font-size: 16px;
    border: none;
    padding: 8px 16px;
    /* Reduced padding */
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
    width: fit-content;
}

button:hover {
    background: #1662d6;
}

/* Status Message */
#status {
    font-weight: bold;
    color: #047857;
    margin-top: 8px;
    /* Reduced margin */
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    form {
        width: 100%;
        padding: 12px;
    }

    input,
    textarea {
        font-size: 14px;
    }

    button {
        width: 100%;
        margin-bottom: 8px;
    }

    #microphoneSelect {
        min-width: 150px;
        margin-bottom: 5px;
    }
}