:root {
    --orange: #ff8201;
    --white: #fff;
    --light-grey: #eaebf0;
    --black: #000;
    --dark-grey: #222;
    --mid-grey: #666;
    --border: #d4d5da;
    --green: #155724;
    --red: #7a2600
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

* {
    box-sizing: border-box
}

body {
    background: var(--light-grey);
    color: var(--black);
    font-family: Arial,Helvetica,sans-serif;
    line-height: 1.5;
    margin: 0;
}

button, input, select, textarea{
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    padding: 13px 14px;
    width: 100%;
}

button {
    transition: transform .08s ease,opacity .2s ease;

    background: var(--orange);
    border: none;
    color: var(--black);
    cursor: pointer;
    font-weight: 800;
    margin-top: 20px;
}

button:hover {
    opacity: .92;
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

h1 {
    color: var(--black);
    font-size: 30px;
    letter-spacing: -.02em;
    margin: 0 0 8px;
}

input:focus,select:focus,textarea:focus {
    border-color: var(--orange);
    outline: 3px solid rgba(255,130,1,.25);
}

label {
    display: block;
    font-weight: 700;
    margin: 18px 0 7px;
}

label.terms {
    margin: 0;
}

textarea {
    min-height: 130px;
    resize: vertical;
}


.accent {
    color: var(--orange);
}

.button-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
}

.button-secondary {
    background: var(--black);
    color: var(--white);
}

.card {
    background: var(--white);
    border-radius: 18px;
    border-top: 8px solid var(--orange);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    padding: 32px;
}

.checkbox-row {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.checkbox-row input {
    margin-top: 4px;
    width: auto;
}

.edit-button {
    background: var(--black);
    border-radius: 7px;
    color: var(--white);
    font-size: 13px;
    margin: 0;
    padding: 7px 10px;
    position: absolute;
    right: 14px;
    top: 14px;
    width: auto;
}

.error-text {
    color: var(--red);
    display: none;
    font-size: 14px;
    margin-top: 6px;
}

.field-grid {
    display: grid;
    gap: 0 16px;
    grid-template-columns: 1fr 1fr;
}

.form-field.field-error input,.form-field.field-error textarea,.form-field.field-error select {
    border-color: #ff6b35;
}

.form-field.field-error .error-text {
    display: block;
}

.hidden-block {
    display: none;
}

.hidden-block.visible {
    animation: fadeIn .25s ease;
    display: block;
}

.intro {
    color: var(--dark-grey);
    font-size: 16px;
    margin: 0 0 26px;
}

.logo {
    display: block;
    height: auto;
    margin: 0 auto 28px;
    max-width: 100%;
    width: 560px;
}

.lookup-row {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 220px;
}

.message {
    border-radius: 10px;
    display: none;
    font-weight: 600;
    margin-top: 18px;
    padding: 13px 14px;
    white-space: pre-wrap;
}

.message.ok {
    background: #eef8ef;
    border: 1px solid #b9dfc0;
    color: var(--green);
    display: block;
}

.message.error {
    color: var(--red);
    background: #fff1ec;
    border: 1px solid #ffc9b5;
    display: block;
}

.manual-toggle {
    background: var(--black);
    color: var(--white);
    display: inline-block;
    font-size: 14px;
    padding: 10px 14px;
    width: auto;
}

.orangeText {
    color: var(--orange);
}

.page {
    margin: 32px auto;
    max-width: 980px;
    padding: 0 16px;
}

.preview-banner {
    background: #f7f7f8;
    border: 1px solid var(--border);
    border-left: 5px solid var(--orange);
    border-radius: 12px;
    color: var(--dark-grey);
    margin: 0 0 26px;
    padding: 18px 20px;
}

.preview-banner strong {
    color: var(--black);
    display: block;
    font-size: 19px;
    margin-bottom: 7px;
}

.preview-banner p {
    font-size: 15px;
    margin: 0 0 10px;
}

.preview-banner p:last-child {
    margin-bottom: 0;
}

.preview-banner .inline-price {
    color: var(--black);
    display: inline;
    font-size: inherit;
    margin: 0;
}

.progress-bar {
    background: var(--light-grey);
    border-radius: 99px;
    height: 12px;
    overflow: hidden;
}

.progress-fill {
    transition: width .25s ease;

    background: var(--orange);
    height: 100%;
    width: 20%;
}

.progress-top {
    align-items: center;
    display: flex;
    font-weight: 700;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-wrap {
    margin: 0 0 26px;
}

.review-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
}

.review-box {
    background: var(--light-grey);
    border-radius: 12px;
    padding: 16px;
    position: relative;
}

.review-box h3 {
    font-size: 18px;
    color: var(--black);
    margin: 0 0 10px;
}

.review-row {
    border-top: 1px solid #d9dbe2;
    display: grid;
    font-size: 14px;
    gap: 8px;
    grid-template-columns: 150px 1fr;
    padding: 7px 0;
}

.review-row:first-of-type {
    border-top: none;
}

.review-label {
    font-weight: 700;
}

.readonly-vdg {
    background: var(--light-grey);
    color: #333;
}

.spinner {
    animation: spin .7s linear infinite;

    border: 2px solid rgba(0,0,0,.25);
    border-top-color: var(--black);
    border-radius: 50%;
    display: inline-block;
    height: 15px;
    margin-right: 8px;
    width: 15px;
    vertical-align: -2px;
}

.step-dot {
    background: var(--light-grey);
    border-radius: 9px;
    color: var(--mid-grey);
    font-size: 13px;
    padding: 8px;
    text-align: center;
}

.step-dot.active {
    background: var(--black);
    border-left: 5px solid var(--orange);
    color: var(--white);
}

.step-dots {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5,1fr);
    margin-top: 12px;
}

.stage {
    display: none
}

.stage.active {
    animation: fadeIn .25s ease;

    display: block;
}

.technical-note,.manual-note {
    background: var(--light-grey);
    border-radius: 10px;
    color: var(--mid-grey);
    font-size: 14px;
    margin-top: 16px;
    padding: 12px;
}

#vanityHeading {
    font-family: 'Anton', sans-serif;
    font-size: 50px;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

/* placed last so equal-specificity mobile overrides win the cascade */
@media(max-width: 760px) {
    .page {
        margin:0;
        padding: 0;
    }

    .card {
        border-radius: 0;
        min-height: 100vh;
        padding: 22px;
    }

    .field-grid,.lookup-row,.button-row,.review-grid {
        grid-template-columns: 1fr;
    }

    .step-dots {
        grid-template-columns: 1fr;
    }

    .step-dot {
        text-align: left;
    }

    .review-row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 25px;
    }
    #vanityHeading {
        font-size: 28px;
    }
}