/* Custom tweaks complementing Tailwind */
.bg-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.label {
    letter-spacing: .02em
}

:root {
    --tal-orange: #FF5A01;
    --tal-brown: #4C1C14;
    --tal-cream: #F6EDE2
}

html,
body {
    height: 100%
}

.page {
    min-height: 100vh;
    background: var(--tal-orange);
    display: flex;
    align-items: center;
    justify-content: center
}

.screen {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 18px;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px
}

.brand {
    width: clamp(180px, 45vw, 240px);
    display: block;
    margin: 8px auto 14px;
    transform: none
}

.shape-behind {
    position: absolute;
    left: -60px;
    right: -60px;
    top: clamp(180px, 30vh, 260px);
    height: 120px;
    background-image: url('../images/shape1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 160% 100%;
    transform: rotate(-10deg);
    pointer-events: none;
    z-index: -1
}

.form-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1
}

.row-line {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px
}

.row-line .pill { width: clamp(120px, 30vw, 180px); text-align: left }
.upload-row .pill { width: auto; white-space: nowrap; text-align: left; align-self: center }

.pill {
    display: inline-block;
    align-self: flex-start;
    padding: 9px 16px;
    background: var(--tal-brown);
    color: #fff;
    border: 2px solid var(--tal-brown);
    box-shadow: 0 0 0 3px #fff;
    border-radius: 16px;
    font-weight: 800;
    font-size: 18px;
    line-height: 1
}

.input-rect {
    width: 100%;
    height: clamp(56px, 14vw, 68px);
    background: var(--tal-cream);
    border: 2px solid var(--tal-brown);
    box-shadow: 0 0 0 3px #fff;
    border-radius: 16px;
    padding: 0 16px;
    font-weight: 700;
    color: var(--tal-brown);
}

.input-rect::placeholder {
    color: #7a564f;
    opacity: 1;
    font-weight: 800
}

.input-rect:focus {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(76, 28, 20, .35)
}

.row-line .input-rect {
    flex: 1
}

.btn-primary {
    width: 100%;
    height: clamp(48px, 12vw, 60px);
    background: #FF6A00;
    color: #fff;
    border: 2px solid var(--tal-brown);
    box-shadow: 0 0 0 3px #fff;
    border-radius: 14px;
    font-weight: 800
}

.upload-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.upload-row > * { flex: 0 0 auto; }
.upload-row .file-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.plus-btn {
    width: clamp(56px, 14vw, 68px);
    height: clamp(56px, 14vw, 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tal-cream);
    color: var(--tal-brown);
    border: 2px solid var(--tal-brown);
    box-shadow: 0 0 0 3px #fff;
    border-radius: 16px;
    font-size: clamp(26px, 6vw, 32px);
    font-weight: 900;
    line-height: 1;
    cursor: pointer
}

.preview-thumb {
    width: clamp(56px, 14vw, 68px);
    height: clamp(56px, 14vw, 68px);
    object-fit: cover;
    background: var(--tal-cream);
    border: 2px solid var(--tal-brown);
    box-shadow: 0 0 0 3px #fff;
    border-radius: 16px
}

.file-name {
    color: var(--tal-brown);
    font-weight: 800
}

.image-box {
    width: clamp(260px, 80vw, 360px);
    height: clamp(260px, 80vw, 360px);
    background: var(--tal-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    border: 5px solid var(--tal-brown);
    position: relative;
    z-index: 1
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--tal-cream);
}

/* helper to center a single pill */
.pill-center { align-self: center; text-align: center; }

.years {
    width: clamp(160px, 50vw, 240px);
    margin-top: 18px
}