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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding: 20px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
}

.quarter-display {
    font-size: 18px;
    color: #64748b;
    font-weight: 500;
}

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

.form-group-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

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

.input-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.required {
    color: #dc2626;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

select.form-input {
    cursor: pointer;
}

select.form-input:disabled {
    cursor: not-allowed;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-input {
    width: 18px;
    height: 18px;
}

.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: #2563eb;
    background-color: #f8fafc;
}

.file-upload-area.dragover {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.upload-text {
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
    z-index: 0;
}

.loading-indicator {
    display: none;
    text-align: center;
    padding: 20px;
    color: #2563eb;
    font-weight: 500;
}

.loading-indicator.show {
    display: block;
}

.progress-step {
    margin: 8px 0;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.progress-step.completed {
    background-color: #dcfce7;
    color: #166534;
}

.progress-step.error {
    background-color: #fee2e2;
    color: #dc2626;
}

.progress-icon {
    display: inline-block;
    margin-right: 8px;
    width: 16px;
}

.submit-btn {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 32px;
}

.submit-btn:hover {
    background: #1d4ed8;
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.error-message {
    display: none;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
}

.error-message.show {
    display: block;
}

.webhook-config {
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.webhook-url {
    font-family: monospace;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
}

@media (max-width: 768px) {
    .form-container {
        padding: 24px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}