.tc-ideas {
    background: #fff;
    color: #536477;
    padding: 42px 0 54px;
}

.tc-ideas .container {
    max-width: 1180px;
}

.tc-ideas__layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) 220px;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.tc-ideas__main {
    min-width: 0;
}

.tc-ideas__panel {
    display: none;
    width: 100%;
    max-width: 820px;
    min-height: 330px;
    margin: 0 auto;
    padding: 26px 68px 24px;
    border: 1px solid #d9dee3;
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 4px 5px rgba(0, 0, 0, .11);
}

.tc-ideas__panel[data-step="validate"] {
    max-width: 800px;
    min-height: 340px;
    padding-top: 26px;
    padding-bottom: 18px;
}

.tc-ideas__panel[data-step="idea"] {
    max-width: 780px;
    min-height: 455px;
    padding: 24px 18px 46px;
}

.tc-ideas__panel.is-active {
    display: block;
}

.tc-ideas__panel--success {
    min-height: 0;
    text-align: center;
}

.tc-ideas__panel--success .tc-ideas__header {
    margin-bottom: 42px;
}

.tc-ideas__header {
    margin: 0 auto 44px;
    text-align: center;
}

.tc-ideas__header h1 {
    margin: 0 0 8px;
    color: #00598c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.tc-ideas__header p {
    max-width: 720px;
    margin: 0 auto;
    color: #697789;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.28;
}

.tc-ideas__form {
    max-width: 670px;
    margin: 0 auto;
}

.tc-ideas__form--wide {
    max-width: none;
}

.tc-ideas__panel[data-step="idea"] .tc-ideas__header {
    margin-bottom: 28px;
}

.tc-ideas__panel[data-step="idea"] .tc-ideas__field {
    margin-bottom: 14px;
}

.tc-ideas__panel[data-step="idea"] .tc-ideas__field label {
    margin-bottom: 16px;
}

.tc-ideas__panel[data-step="idea"] .tc-ideas__field textarea {
    min-height: 92px;
}

.tc-ideas__panel[data-step="idea"] .tc-ideas__actions {
    margin-top: 36px;
}

.tc-ideas__field {
    position: relative;
    margin-bottom: 16px;
}

.tc-ideas__field label {
    display: block;
    margin-bottom: 14px;
    color: #536477;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.tc-ideas__field input,
.tc-ideas__field textarea,
.tc-ideas__field select {
    width: 100%;
    border: 1px solid #d2dbe2;
    border-radius: 4px;
    background: #fff;
    color: #455a6b;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: 0;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tc-ideas__field input {
    height: 45px;
    padding: 11px 14px;
}

.tc-ideas__field select {
    width: 100%;
    height: 45px;
    padding: 10px 38px 10px 14px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #97a6b2 50%), linear-gradient(135deg, #97a6b2 50%, transparent 50%);
    background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.tc-ideas__field select:disabled,
.tc-ideas__field input:disabled {
    background-color: #f5f6f7;
    color: #a2abb4;
    cursor: not-allowed;
}

.tc-ideas__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tc-ideas__grid .tc-ideas__field label {
    display: flex;
    min-height: 2.5em;
    align-items: flex-end;
}

.tc-ideas__field textarea {
    min-height: 105px;
    padding: 14px;
    resize: vertical;
}

.tc-ideas__field input::placeholder,
.tc-ideas__field textarea::placeholder {
    color: #9ba7b2;
    opacity: 1;
}

.tc-ideas__field input:focus,
.tc-ideas__field textarea:focus,
.tc-ideas__field select:focus {
    border-color: #00598c;
    box-shadow: 0 0 0 2px rgba(0, 89, 140, .12);
}

.tc-ideas__field.is-invalid input,
.tc-ideas__field.is-invalid textarea,
.tc-ideas__field.is-invalid select {
    border-color: #c9302c;
    box-shadow: 0 0 0 2px rgba(201, 48, 44, .08);
}

.tc-ideas__error {
    display: none;
    margin-top: 5px;
    color: #c9302c;
    font-size: 12px;
    line-height: 1.35;
}

.tc-ideas__field.is-invalid .tc-ideas__error {
    display: block;
}

.tc-ideas__counter {
    display: block;
    margin-top: 7px;
    color: #a2a9b1;
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
}

.tc-ideas__actions {
    display: flex;
    justify-content: center;
    gap: 42px;
    margin-top: 38px;
}

.tc-ideas__button {
    min-width: 88px;
    min-height: 34px;
    padding: 9px 18px;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    color: #fff;
    cursor: pointer;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    transition: background-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.tc-ideas__button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 89, 140, .24);
}

.tc-ideas__button:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.tc-ideas__button--primary {
    background: #00598c;
}

.tc-ideas__button--primary:hover {
    background: #004b76;
}

.tc-ideas__button--secondary {
    background: #008aa6;
}

.tc-ideas__button--secondary:hover {
    background: #00738a;
}

.tc-ideas__alert {
    display: none;
    margin: -24px auto 18px;
    max-width: 720px;
    padding: 11px 14px;
    border: 1px solid #d2dbe2;
    border-radius: 4px;
    background: #f5f8fb;
    color: #455a6b;
    font-size: 13px;
    line-height: 1.35;
}

.tc-ideas__alert.is-visible {
    display: block;
}

.tc-ideas__alert.is-success {
    border-color: #95d1aa;
    background: #f1fbf5;
    color: #256d3b;
}

.tc-ideas__alert.is-error {
    border-color: #e3a1a0;
    background: #fff6f6;
    color: #9b2926;
}

.tc-ideas__alert.is-warning {
    border-color: #e0c77d;
    background: #fff9e8;
    color: #765f17;
}

.tc-ideas__alert-close {
    display: inline-block;
    margin-left: 12px;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.tc-ideas__aside {
    align-self: center;
}

.tc-ideas__tip {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 220px;
    padding: 18px 18px;
    border-radius: 24px;
    background: #dfe9fb;
    color: #5f6670;
    font-family: Georgia, "Times New Roman", serif;
}

.tc-ideas__tip i {
    flex: 0 0 auto;
    color: #4d9ad3;
    font-size: 22px;
    line-height: 1;
}

.tc-ideas__tip strong {
    display: block;
    margin-bottom: 9px;
    color: #5f6670;
    font-size: 18px;
    line-height: 1.2;
}

.tc-ideas__tip p {
    margin: 0 0 0 -36px;
    color: #5f6670;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.42;
}

.tc-ideas__nowrap {
    white-space: nowrap;
}

.tc-ideas__success-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border: 3px solid #39b54a;
    border-radius: 50%;
    color: #39b54a;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.tc-ideas__protocol {
    max-width: 470px;
    margin: 0 auto 20px;
    padding: 18px 22px;
    border-radius: 22px;
    background: #eef1f7;
    color: #657283;
    font-family: Georgia, "Times New Roman", serif;
}

.tc-ideas__protocol strong {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.2;
}

.tc-ideas__protocol span {
    display: block;
    color: #1680c4;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.1;
}

.tc-ideas__protocol p {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.tc-ideas__email-note {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    color: #697789;
    text-align: left;
}

.tc-ideas__email-note i {
    color: #6c6f73;
    font-size: 38px;
}

.tc-ideas__email-note p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tc-ideas__panel--success .tc-ideas__alert {
    max-width: 640px;
    margin: 18px auto 0;
    text-align: center;
}

.tc-ideas__next {
    display: none;
    max-width: 980px;
    margin: 18px auto 0;
    text-align: center;
}

.tc-ideas__next.is-active {
    display: block;
}

.tc-ideas__next h2 {
    margin: 0 0 12px;
    color: #00598c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.tc-ideas__next ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 16px 22px 18px;
    border: 1px solid #d9dee3;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .08);
    list-style: none;
}

.tc-ideas__next li {
    position: relative;
    padding: 0 12px;
    color: #536477;
    font-family: Georgia, "Times New Roman", serif;
    text-align: left;
}

.tc-ideas__next li + li::before {
    content: "\f105";
    position: absolute;
    top: 28px;
    left: -8px;
    color: #1680c4;
    font-family: FontAwesome;
    font-size: 28px;
}

.tc-ideas__next span {
    display: flex;
    width: 25px;
    height: 25px;
    margin: 0 auto 9px;
    border: 2px solid #1680c4;
    border-radius: 50%;
    color: #1680c4;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.tc-ideas__next strong {
    display: block;
    margin-bottom: 6px;
    color: #1680c4;
    font-size: 13px;
    line-height: 1.25;
}

.tc-ideas__next p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.tc-ideas-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    padding: 20px;
    background: rgba(0, 0, 0, .42);
    align-items: center;
    justify-content: center;
}

.tc-ideas-modal.is-open {
    display: flex;
}

.tc-ideas-modal__dialog {
    width: 100%;
    max-width: 430px;
    padding: 24px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
    text-align: center;
}

.tc-ideas-modal__dialog h2 {
    margin: 0;
    color: #34495d;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: 0;
}

.tc-ideas-modal__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

@media (max-width: 991px) {
    .tc-ideas__layout {
        display: block;
    }

    .tc-ideas__aside {
        max-width: 900px;
        margin: 18px auto 0;
    }

    .tc-ideas__tip {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .tc-ideas {
        padding: 24px 0 36px;
    }

    .tc-ideas__panel {
        min-height: 0;
        padding: 24px 18px;
        border-radius: 18px;
    }

    .tc-ideas__header {
        margin-bottom: 28px;
    }

    .tc-ideas__header h1 {
        font-size: 24px;
    }

    .tc-ideas__header p {
        font-size: 14px;
    }

    .tc-ideas__actions {
        gap: 14px;
        margin-top: 28px;
    }

    .tc-ideas__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tc-ideas__grid .tc-ideas__field label {
        display: block;
        min-height: 0;
    }

    .tc-ideas__button {
        min-width: 82px;
    }

    .tc-ideas__protocol span {
        font-size: 24px;
    }

    .tc-ideas__email-note {
        display: flex;
        justify-content: center;
        text-align: left;
    }

    .tc-ideas__next ol {
        display: block;
        padding: 18px;
        border-radius: 18px;
    }

    .tc-ideas__next li {
        min-height: 0;
        padding: 0 0 18px 42px;
    }

    .tc-ideas__next li:last-child {
        padding-bottom: 0;
    }

    .tc-ideas__next li + li::before {
        top: -3px;
        left: 8px;
        content: "\f107";
    }

    .tc-ideas__next span {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
    }
}
