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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
    line-height: 1.5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.03);
}

.header {
    padding: 40px 24px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.1;
}

.header p {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
}

.header-logo {
    width: 140px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.form-section {
    padding: 32px 24px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    color: #374151;
    letter-spacing: -0.01em;
}

.required {
    color: #ff575f;
}

input, select, textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff575f;
    box-shadow: 0 0 0 4px rgba(255, 87, 95, 0.1);
    background: #ffffff;
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    background: #ffffff;
    color: #374151;
}

.radio-option:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.radio-option.selected {
    border-color: #ff575f;
    background-color: #ff575f;
    color: white;
}

.radio-option input {
    display: none;
}

.lookup-btn {
    background: #ff575f;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 100px;
}

.lookup-btn:hover {
    background: #e74c56;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 87, 95, 0.3);
}

.lookup-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lookup-btn .loading {
    display: none;
}

.lookup-btn.loading .lookup-text {
    display: none;
}

.lookup-btn.loading .loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lookup-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.bike-summary-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.bike-summary-text {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 0;
}

.bike-condition {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 4px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 15px;
}

.detail-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
    text-align: right;
}

/* NEW INSPECTION SECTION STYLES - Integrated with existing design */
.inspection-section {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.inspection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.inspection-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.inspection-note {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #92400e;
    border-radius: 8px;
    font-weight: 500;
}

.inspection-note strong {
    font-weight: 700;
}

.inspection-guide {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.guide-section {
    padding: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.guide-section:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.pass-text {
    color: #059669;
    font-weight: 700;
    background: rgba(5, 150, 105, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.fail-text {
    color: #dc2626;
    font-weight: 700;
    background: rgba(220, 38, 38, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.image-upload-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.image-upload-section label {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.serial-options {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    margin-top: 12px;
}

.serial-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    font-weight: 500;
    font-size: 15px;
    background: #ffffff;
    color: #374151;
}

.serial-option:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.serial-option.selected {
    border-color: #ff575f;
    background-color: rgba(255, 87, 95, 0.05);
    color: #ff575f;
}

.serial-option input {
    display: none;
}

.image-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    background: #ffffff;
}

.image-upload-area:hover {
    border-color: #ff575f;
    background-color: rgba(255, 87, 95, 0.02);
}

.image-upload-area.dragover {
    border-color: #ff575f;
    background-color: rgba(255, 87, 95, 0.05);
}

.image-upload-area p:first-child {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.image-upload-area p:last-child {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
}

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

.preview-item .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff575f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 87, 95, 0.3);
    transition: all 0.2s ease;
}

.preview-item .remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 87, 95, 0.4);
}

.hidden {
    display: none !important;
}

.submit-section {
    background: #f9fafb;
    padding: 32px 24px;
    border-top: 1px solid #e5e7eb;
}

.submit-btn {
    width: 100%;
    background: #1f2937;
    color: #ffffff;
    border: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.submit-btn:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.15);
}

.submit-btn:disabled {
    background: #9ca3af;
    color: #ffffff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: rgba(220, 38, 38, 0.05);
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    font-weight: 500;
}

.success-message {
    background: rgba(5, 150, 105, 0.05);
    color: #059669;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(5, 150, 105, 0.2);
    font-weight: 500;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 480px) {
    .header {
        padding: 32px 20px;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .form-section, .submit-section {
        padding: 24px 20px;
    }
    
    .radio-group, .serial-options {
        flex-direction: column;
    }
    
    .form-group {
        margin-bottom: 28px;
    }
    
    .image-upload-area {
        padding: 32px 16px;
    }

    #mainFormSection {
        scroll-margin-top: 32px;
    }

    .inspection-section {
        padding: 20px;
        margin-bottom: 24px;
    }

    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .header h1 {
        font-size: 32px;
    }
    
    input, select, textarea {
        padding: 14px;
        font-size: 16px;
    }
    
    .radio-option, .serial-option {
        padding: 16px;
    }

    .inspection-header h3 {
        font-size: 18px;
    }
}