/* Field and button. Wrap the form in .sgl-form. */
.sgl-form {
    --sgl-ink: #1c2b24;
    --sgl-muted: #5c6b64;
    --sgl-line: #d7e0da;
    --sgl-green: #1f7a45;
    --sgl-green-deep: #145832;
    color: var(--sgl-ink);
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}

.sgl-sheet {
    width: min(720px, 100%);
}

.sgl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 16px;
    align-items: start;
    margin: 0;
}

.sgl-span-2 {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .sgl-grid {
        grid-template-columns: 1fr;
    }
    .sgl-span-2 {
        grid-column: auto;
    }
}

.sgl-form .sgl-field {
    margin-bottom: 14px;
}

.sgl-grid > .sgl-field,
.sgl-grid > .sgl-note,
.sgl-grid > .sgl-actions {
    margin: 0;
    min-width: 0;
}

.sgl-form .sgl-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 650;
}

.sgl-form .sgl-control {
    position: relative;
}

.sgl-form .sgl-input,
.sgl-form .sgl-select {
    display: block;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.sgl-form .sgl-input {
    height: 46px;
    border: 1px solid var(--sgl-line);
    border-radius: 10px;
    padding: 0 12px;
    font-size: 15px;
    color: var(--sgl-ink);
    background: #fbfcfb;
}

.sgl-form .sgl-control .sgl-input {
    padding-right: 84px;
}

.sgl-form .sgl-input:focus,
.sgl-form .sgl-select:focus {
    outline: 2px solid #b7e0c8;
    border-color: var(--sgl-green);
    background-color: #fff;
}

.sgl-form .sgl-select {
    height: 46px;
    border: 1px solid var(--sgl-line);
    border-radius: 10px;
    padding: 0 36px 0 12px;
    font-size: 15px;
    color: var(--sgl-ink);
    background-color: #fbfcfb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b64' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
}

.sgl-form .sgl-input[readonly],
.sgl-form .sgl-select:disabled {
    background-color: #eef2f0;
    color: var(--sgl-muted);
    cursor: not-allowed;
}

.sgl-form .sgl-note {
    margin: 0;
    background: #e7f3f3;
    color: #1c2b24;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
}

.sgl-form .sgl-actions .sgl-button {
    width: 100%;
    max-width: 240px;
}

@media (max-width: 640px) {
    .sgl-form .sgl-actions .sgl-button {
        max-width: none;
    }
}

.sgl-form .sgl-input-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--sgl-green);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    padding: 8px;
}

.sgl-form .sgl-button {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: var(--sgl-green);
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}

.sgl-form .sgl-button:hover:not(:disabled) {
    background: var(--sgl-green-deep);
}

.sgl-form .sgl-button:disabled {
    background: #b7c7be;
    cursor: not-allowed;
}

.sgl-form .turnstile-slot {
    margin-bottom: 14px;
}

.sgl-form .sgl-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--sgl-green);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
