/* style.css — minimal, clean, Cloudflare Workers ready */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f2f4f6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.app {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.02);
}

header {
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 1.5rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    color: #1a1e24;
}

.nav {
    display: flex;
    gap: 0.25rem;
}

.nav-btn {
    background: none;
    border: none;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 480;
    color: #5c6a77;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.1s;
    text-transform: lowercase;
}

.nav-btn:hover {
    background: #f1f5f9;
    color: #0f1c2e;
}

.nav-btn.active {
    background: #0f1c2e;
    color: white;
}

main {
    padding: 1.8rem 1.5rem 2rem;
}

.options, .recipient-group, .order-type-container, .dynamic-fields, .message-container {
    margin-bottom: 1.5rem;
}

.option-group, .field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5c6a77;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.field-hint {
    font-size: 0.65rem;
    color: #8896a2;
    margin-top: 0.2rem;
}

select, input, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #d8e0e6;
    border-radius: 12px;
    font-size: 0.9rem;
    background: white;
    font-family: inherit;
    transition: 0.08s;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5c6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.9rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1e2b39;
    box-shadow: 0 0 0 2px rgba(30,43,57,0.04);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
    color: #1e2b39;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 0.25rem;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e2b39;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #ecf1f5;
}

.dynamic-fields, .order-type-container, .message-container {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ecf1f5;
}

.hidden {
    display: none;
}

.status {
    background: #f6f8fa;
    border-radius: 40px;
    padding: 0.7rem 1.2rem;
    margin: 1.5rem 0 1.2rem;
    font-size: 0.8rem;
    color: #25323e;
    border: 1px solid #e9edf2;
}

.send-btn {
    width: 100%;
    background: #0f1c2e;
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 480;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: opacity 0.1s;
    text-transform: lowercase;
}

.send-btn:hover {
    opacity: 0.85;
}

/* no footer */