@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #080a0b;
    --surface: #0d1012;
    --border: #25292b;
    --text: #f5f5f5;
    --muted: #929597;
    --green: #72f5b8;
    --green-hover: #55e9a5;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}
.container {
    max-width: 990px;
    margin: 48px auto 0;
    padding: 0 0 100px;
}

.page-heading {
    margin-bottom: 30px;
}

.eyebrow {
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 10px;
    margin-top: 100px;
}

h1 {
    font-size: clamp(41px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -2.5px;
}

.description {
    color: #8B969E;
    font-size: 17px;
}

.listing-form {
    display: grid;
    grid-template-columns: 588px 320px;
    gap: 68px;
    align-items: start;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.field > label,
.image-section {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 9px;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    padding: 12px 10px;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.field input {
    height: 40px;
}

.field textarea {
    height: 94px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--green);
}

.field input::placeholder {
    color: #929597;
}

.type-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.type-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-options label {
    background: #a8a8a8;
    color: #080808;
    border-radius: 7px;
    min-height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.type-options input:checked + label {
    background: var(--green);
}

.type-options input:focus-visible + label {
    outline: 2px solid white;
    outline-offset: 3px;
}

.image-section {
    width: 100%;
}

.upload-box {
    height: 306px;
    width: 100%;
    background: var(--surface);
    border: 1px solid #424547;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;

    transition: border-color 0.1s ease;
}

.upload-box:hover {
    border-color: var(--green);
}

.upload-box span {
    color: #414547;
    font-size: 34px;
    font-weight: 600;

    transition: color 0.1s ease;
}

.upload-box:hover span {
    color: var(--green);
}

.submit-button {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 5px;
    background: var(--green);
    color: #06130d;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

#cancel-edit {
    text-align: center;
    height: 40px;
    text-decoration: none;
    padding: 8px 18px;
    background: #202528;
    border: 1px solid #30373c;
    border-radius: 7px;
    color: #edf3f5;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition-duration: 0.2s;
}

#cancel-edit:hover {
    background: #2c3439;
    border-color: #53616a;
}

@media (max-width: 1100px) {
    .container {
        max-width: 90%;
    }

    .listing-form {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
        gap: 35px;
    }
}

@media (max-width: 760px) {

    .container {
        max-width: 90%;
        margin-top: 32px;
    }

    h1 {
        font-size: 30px;
    }

    .listing-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .image-section {
        grid-row: 1;
    }

    .upload-box {
        height: 220px;
    }

    .type-options {
        gap: 6px;
    }

    .type-options label {
        font-size: 11px;
    }
}