/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

/* Mobile-First Layout */
main {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 20px;
}

#title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

#description {
    font-size: 1.1rem;
    color: #666;
}

/* Form Styles */
#survey-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
}

input[type="number"] {
    max-width: 150px;
}

.inline {
  width: unset;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

fieldset {
    border: none;
    padding: 10px 0;
}

fieldset legend {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

fieldset label {
    display: block;
    margin: 8px 0;
}

.cta-button {
    padding: 12px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #3498db;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries for Desktop */
@media (min-width: 768px) {
    #title {
        font-size: 2.5rem;
    }
    #description {
        font-size: 1.2rem;
    }
    main {
        padding: 40px;
    }
  }
