@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --green200: hsl(148, 38%, 91%);
    --green600: hsl(169, 82%, 27%);
    --red: hsl(0, 66%, 54%);
    --white: hsl(0, 0%, 100%);
    --grey500: hsl(186, 15%, 59%);
    --grey900: hsl(187, 24%, 22%);
  }

  body {
    background-color: var(--green200);
    font-family: 'Karls', sans-serif;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  .card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    align-items: flex-start;
    width: 550px;
    height: auto;
    padding: 30px;
    border-radius: 15px;
  }

.card h1 {
    font-size: 20px;
    margin-bottom: 25px;
}

.name {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
    gap: 10px;
}

.name label, .name input, .query-field label {
    margin-bottom: 5px;
}

.first, .last {
    display: flex;
    flex-direction: column;
    width: 50%;
}

#first-name, #last-name {
    height: 30px;
    border-radius: 5px;
    border: 1px solid lightgray;
    font-size: 12px;
    cursor: pointer;
}

.email-field {
    width: 100%;
    margin-bottom: 15px;
}

#email {
    width: 100%;
    height: 30px;
    border-radius: 5px;
    border: 1px solid lightgrey;
    margin-bottom: 5px;
    font-size: 12px;
    cursor: pointer;
}

.email-field label, .query-field label {
    margin-bottom: 5px !important;
    display: block;
}

.query-field {
    width: 100%;
    margin-bottom: 15px;
}

.query-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.query-buttons label {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    border: 1px solid lightgray;
    border-radius: 5px;
    width: 100%;
    background-color: var(--white);
    font-size: 12px;
    cursor: pointer;
    padding-left: 20px;
}

input[type="radio"] {
    display: none;
}

.radio-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--grey500);
    display: inline-block;
    background-size: cover;
    background-position: center;
}

input[type="radio"]:checked + .radio-icon {
    background-image: url('images/icon-radio-selected.svg');
    border: none;
}

.message-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.message-text {
    margin-bottom: 5px;
}

#message {
    height: 70px;
    border-radius: 5px;
    border: 1px solid lightgray;
    width: 100%;
    background-color: var(--white);
    margin-bottom: 5px;
    font-size: 12px;
    font-family: 'Karls', sans-serif;
    padding: 10px;
    resize: none;
    line-height: 1.5em;
}

.message-field span {
    margin-bottom: 15px;
}

.checkbox-container {
    margin-bottom: 15px;
}

.checkbox-container div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

input[type="checkbox"] {
    display: none;
}

.checkbox label {
    width: 12px;
    height: 12px;
    border: 1px solid var(--green600);
    border-radius: 2px;
    cursor: pointer;
    display: inline-block;
    background-size: cover;
}


input[type="checkbox"]:checked + label {
    background-image: url('images/icon-checkbox-check.svg');
    border: none;
}

.checkbox button {
    border: none;
    background-color: var(--white);
    font-size: 10px;
}

#submit {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: var(--green600);
    color: var(--white);
    font-size: 12px;
    letter-spacing: 0.5px;
}

span {
    color: var(--red);
}

input:focus {
    border: 1px solid var(--green600) !important;
    outline: none;
}

textarea:focus {
    border: 1px solid var(--green600);
    outline: none;
}

#success-message {
    background-color: var(--grey900);
    width: auto;
    height: auto;
    border-radius: 5px;
    border: 1px solid var(--grey900);
    display: flex;
    flex-direction: column;
    padding: 15px;
    z-index: 5;
}

#success-message div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.success-icon {
    width: 12px;
    height: auto;
}

.sent {
    font-weight: 700;
    color: var(--white);
}

.complete {
    color: var(--grey500);
}


  

  