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

html {
    min-height: 100%;
}

body {
    background-color: #f6f3ef;
    color: #3d3833;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 60px;
}

header {
    margin-top: 30px;
}

h1 {
    color: #2f2a26;
    font-size: 26px;
    margin-bottom: 18px;
}

a {
    color: #f07057;
}

#install-app, #view-enter-code, #view-done, #view-error, #view-select-channel {
    margin-top: 100px;
}

#view-enter-code .col,
#view-done .col,
#view-error .col,
#view-select-channel .col {
    max-width: 720px;
    background-color: #ffffff;
    border: 1px solid rgba(47, 42, 38, 0.08);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(47, 42, 38, 0.08);
}

.page-eyebrow {
    color: #8b837a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

p {
    color: #6e655d;
}

label {
    display: block;
    font-weight: bold;
}

input[type=text] {
    width: 100%;
    min-width: 200px;
    border-radius: 10px;
    border: 1px solid rgba(47, 42, 38, 0.12);
    background-color: #fffdfb;
    color: #2f2a26;
    font-size: 14px;
    padding: 10px 12px;
}
    input[type=text]:focus-visible {
        outline: 2px solid rgba(240, 112, 87, 0.35);
        outline-offset: 2px;
    }

    input[type=text].input-validation-error {
        border: 1px solid #f07057;
    }

select.form-control {
    border-radius: 10px;
    border: 1px solid rgba(47, 42, 38, 0.12);
    background-color: #fffdfb;
    color: #2f2a26;
    font-size: 14px;
    padding: 10px 12px;
}

    select.form-control:focus-visible {
        outline: 2px solid rgba(240, 112, 87, 0.35);
        outline-offset: 2px;
    }

#view-select-channel .col {
    max-width: 560px;
}

#view-done .col {
    max-width: 860px;
}

.col {
    margin-left: auto;
    margin-right: auto;
}

.done-title {
    font-size: clamp(22px, 2.4vw, 26px);
}

.channel-select-form {
    max-width: none;
}

.channel-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    padding-right: 40px;
    background-image:
        linear-gradient(45deg, transparent 50%, #6e655d 50%),
        linear-gradient(135deg, #6e655d 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.btn-primary {
    background-color: #f07057;
    color: white;
    border-radius: 10px;
    border: none;
}

    .btn-primary:hover {
        background-color: #ed5434;
    }

.btn-secondary {
    background-color: transparent;
    color: #3d3833;
    border-radius: 10px;
    border: 1px solid rgba(47, 42, 38, 0.14);
}

.validation {
    color: #c44b31;
}

label.form-check-label {
    font-weight: normal;
    cursor: pointer;
}

.settings {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.toggle-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 0;
}

.toggle-field .form-check-input {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin: 0;
    padding: 0;
    appearance: none;
    box-sizing: border-box;
    overflow: hidden;
    vertical-align: middle;
    background-color: #ddd6cf;
    border: 1px solid rgba(47, 42, 38, 0.12);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.toggle-field .form-check-input::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    display: block;
    z-index: 1;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.toggle-field .form-check-input:checked {
    background-color: #f07057;
    border-color: #f07057;
}

.toggle-field .form-check-input:checked::after {
    transform: translateX(24px);
}

.toggle-field .form-check-input:focus-visible {
    outline: 2px solid rgba(240, 112, 87, 0.35);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .done-title {
        white-space: nowrap;
    }
}
