:root {
    --primary-color: #4998f1;
    --link-color: #007bff;
    --secondary-color: #E3C058FF;
    --stroke-color: #363636FF;
    --background-color: var(--stroke-color);
    --text-color: #FFFFFF;
    --fade-text-color: #777;
    --outline-color: #988b69;
    --good-color: #348534;
    --bad-color: #d61e1e;
}

body {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    margin: 0;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
}

header a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bolder;
    font-size: xxx-large;
    margin-left: 0.3em;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

main.acting {
    justify-content: flex-start;
}

.call-to-action h1 {
    color: var(--text-color);
    font-weight: bolder;
    font-size: xxx-large;
}

.content-column {
    margin-top: 1em;
    max-width: 40rem;
}

.offer-form {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.offer-form input {
    border: 0.01em solid var(--outline-color);
    background-color: var(--background-color);
    font-size: xx-large;
    outline: none;
    color: var(--text-color);
    width: 100%;
    border-radius: 0;
}

.offer-form button {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    text-decoration: var(--background-color);
}

.offer-form p {
    color: var(--text-color);
    font-size: medium;
}

.offer-form.detailed {
    display: flex;
    gap: 0.2em;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.offer-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: flex-start;
    justify-content: flex-start;
}

.offer-details h1 {
    color: var(--primary-color);
    font-size: xxx-large;
    font-weight: bolder;
}

.offer-details section input {
    background-color: var(--background-color);
    border: 0.01em solid var(--outline-color);
    font-size: xx-large;
    color: var(--text-color);
}

.offer-form-manual-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    align-content: flex-start;
    width: 100%;
}

.offer-form-manual-inputs span {
    color: var(--text-color);
    font-size: xx-large;
    font-weight: bolder;
}

.offer-form-manual-inputs textarea {
    background-color: var(--background-color);
    border: 0.01em solid var(--outline-color);
    font-size: large;
    color: var(--text-color);
    outline: none;
    width: 100%;
    min-height: 4rem;
    max-height: 20rem;
    resize: vertical;
    box-sizing: border-box;
    border-radius: 0;
}

.price {
    text-align: end;
    max-width: 6em;
}

hr {
    min-width: 100%;
}

.offer-details p {
    white-space: pre-line;
}

.result-good h2 {
    color: var(--good-color);
}

.result-ok h2 {
    color: var(--text-color);
}

.result-bad h2 {
    color: var(--bad-color);
}

.result-good h2::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/static/icon-good.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5em;
    vertical-align: middle;
}

.result-bad h2::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/static/icon-bad.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5em;
    vertical-align: middle;
}

.result-ok h2::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/static/icon-ok.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5em;
    vertical-align: middle;
}

.price-analysis-skeleton {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    width: 100%;
}

.circle-skeleton {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

.text-lines {
    flex-grow: 1;
}

.text-line {
    height: 1.2rem;
    background: linear-gradient(90deg, #444 25%, #555 50%, #444 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    margin-bottom: 0.6rem;
    border-radius: 4px;
}

.text-line.short { width: 40%; }
.text-line.medium { width: 60%; }
.text-line.long { width: 90%; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.how-it-works {
    margin: 2rem auto;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-color);
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.step {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--outline-color);
    padding: 1.5rem;
    width: 16rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.step:hover {
    transform: translateY(-4px);
}

.step .icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.step svg {
    width: 100%;
    height: 100%;
    display: block;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }
}

footer {
    text-align: center;
    width: 100%;
}

footer p {
    color: var(--text-color);

}

footer a {
    text-decoration: none;
}

footer a:any-link {
    color: var(--text-color);
}

.terms-warning {
    font-size: 12px;
    color: var(--fade-text-color);
    margin-top: 10px;
    text-align: center;
}

.terms-warning p {
    font-size: 12px;
    color: var(--fade-text-color);
}

.terms-warning a {
    color: var(--link-color);
    text-decoration: none;
}

.terms-warning a:any-link {
    color: var(--link-color);
}

.terms-warning a:hover {
    text-decoration: underline;
}

.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--stroke-color);
    color: var(--text-color);
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.cookies-banner button {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    font-weight: bold;
}

.cookies-banner button.deny {
    background-color: var(--stroke-color);
    color: var(--text-color);
    border: solid var(--outline-color) 1px;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    font-weight: bold;
}

.adswrapper {
    width: 100%;
}
