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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #f5f5f4;
    color: #1c1917;
    line-height: 1.5;
    min-height: 100vh;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e7e5e4;
}

.header-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badge {
    width: 48px;
    height: 48px;
    background: #065f46;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.brand-title {
    font-weight: 600;
    font-size: 16px;
    color: #1c1917;
}

.brand-subtitle {
    font-size: 13px;
    color: #78716c;
    margin-top: 1px;
}

/* Container */
.container {
    flex: 1;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
}

.hidden {
    display: none !important;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 28px;
}

.hero-title {
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 10px;
}

.hero-text {
    font-size: 14px;
    color: #57534e;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 20px;
}

.hero-stats {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px 24px;
    display: inline-block;
}

.hero-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #065f46;
    letter-spacing: 0.5px;
}

.hero-stat-label {
    font-size: 13px;
    color: #166534;
    margin-top: 2px;
}

/* Card */
.card {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 32px 28px;
}

.card--success {
    text-align: center;
    border-color: #86efac;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: #78716c;
    line-height: 1.6;
    margin-bottom: 24px;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #065f46;
    background: #f0fdf4;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #57534e;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    font-family: inherit;
}

.btn-back:hover {
    color: #1c1917;
}

/* Form */
.form-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e7e5e4;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #44403c;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d6d3d1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1c1917;
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: #065f46;
    box-shadow: 0 0 0 3px rgba(6,95,70,0.1);
}

.form-input--readonly {
    background: #f5f5f4;
    color: #78716c;
}

.form-input::placeholder {
    color: #a8a29e;
}

.form-error {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

.form-input--error {
    border-color: #dc2626 !important;
}

.form-input--error:focus {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}

.form-select--error {
    border-color: #dc2626 !important;
}

.form-select--error + .select2 .select2-selection--single {
    border-color: #dc2626 !important;
}

.form-select--error + .select2.select2-container--focus .select2-selection--single,
.form-select--error + .select2.select2-container--open .select2-selection--single {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}

/* Select2 overrides */
.select2-container--default .select2-selection--single {
    height: 44px;
    border: 1px solid #d6d3d1;
    border-radius: 8px;
    padding: 0;
    font-size: 15px;
    font-family: inherit;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    color: #1c1917;
    padding-left: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #065f46;
    box-shadow: 0 0 0 3px rgba(6,95,70,0.1);
}

.select2-container--default .select2-selection--single:has(.select2-selection__placeholder) .select2-selection__rendered {
    color: #a8a29e;
}

.select2-dropdown {
    border: 1px solid #d6d3d1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    overflow: hidden;
    margin-top: 4px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #065f46;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #d6d3d1;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #065f46;
}

.select2-container--default .select2-selection--single[aria-disabled=true] {
    background: #f5f5f4;
    cursor: not-allowed;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
}

.btn--primary {
    background: #065f46;
    color: #fff;
}

.btn--primary:hover {
    background: #064e3b;
}

.btn--primary:disabled {
    background: #a8a29e;
    cursor: not-allowed;
}

.btn--outline {
    background: #fff;
    color: #065f46;
    border: 1px solid #065f46;
}

.btn--outline:hover {
    background: #f0fdf4;
}

/* Messages */
.msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.msg--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.msg--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Success */
.success-icon {
    width: 72px;
    height: 72px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #065f46;
    margin: 0 auto 20px;
}

.tracking-code {
    display: inline-block;
    background: #f0fdf4;
    border: 2px dashed #065f46;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #065f46;
    font-family: 'Courier New', monospace;
}

/* Photo Upload */
.form-hint {
    font-size: 13px;
    color: #78716c;
    margin-bottom: 16px;
    line-height: 1.5;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e7e5e4;
    background: #f5f5f4;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item .photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.photo-item .photo-remove:hover {
    background: rgba(0,0,0,0.8);
}

.photo-item .photo-uploading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #d6d3d1;
    border-top-color: #065f46;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.photo-upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 2px dashed #d6d3d1;
    border-radius: 8px;
    cursor: pointer;
    color: #78716c;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
    background: #fff;
}

.photo-upload-area:hover {
    border-color: #065f46;
    color: #065f46;
}

.photo-upload-area.hidden {
    display: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: #a8a29e;
}
