:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #14201d;
    background: #eef3f1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.phone-input {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: .6rem;
}

.phone-input select,
.phone-input input {
  width: 100%;
}

.card {
    width: min(100%, 520px);
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 55px rgba(18, 42, 34, .12);
}

h1 {
    margin: 8px 0 6px;
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1;
}

.lead {
    color: #566660;
    margin-bottom: 24px;
}

form {
    display: grid;
    gap: 16px;
}

.consent-panel {
    padding: 16px;
    border: 1px solid #c9d4d0;
    border-radius: 14px;
    background: #f8faf9;
}

.consent-panel h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.consent-panel p {
    margin: 0 0 12px;
    color: #566660;
    font-size: 14px;
    line-height: 1.45;
}

.consent-check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.consent-check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
}

.panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #d9e2df;
    border-radius: 16px;
    background: #f8faf9;
}

.panel > div {
    display: grid;
    gap: 16px;
}

[hidden] {
    display: none !important;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

small {
    color: #687770;
    font-weight: 400;
}

input,
select {
    width: 100%;
    border: 1px solid #c9d4d0;
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
}

input:focus,
select:focus {
    outline: 3px solid rgba(61, 126, 103, .18);
    border-color: #3d7e67;
}

input[readonly],
select:disabled {
    color: #40504a;
    background: #e9efed;
    cursor: not-allowed;
}

button {
    border: 0;
    border-radius: 14px;
    padding: 15px 18px;
    font: inherit;
    font-weight: 800;
    background: #173f34;
    color: white;
    cursor: pointer;
}

button:disabled {
    opacity: .55;
    cursor: wait;
}

#startBtn:disabled {
    cursor: not-allowed;
}

.status {
    margin-top: 18px;
    border-radius: 12px;
    padding: 12px 14px;
    background: #edf2f0;
}

.status[data-type="error"] {
    background: #fff0ef;
    color: #8b2821;
}

.status[data-type="success"],
.status[data-type="ready"] {
    background: #eaf7ef;
    color: #205f3a;
}
