/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

/* Form Container */
.form-container {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.step.active {
    background: var(--surface-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.step.completed {
    background: var(--success-color);
    color: white;
    transform: scale(1.05);
}

/* Form Section */
.form-section {
    padding: 40px;
}

.form-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Dispute Recap */
.dispute-recap {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.dispute-recap h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.dispute-recap p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Input Groups */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--surface-color);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.input-help {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: var(--text-secondary);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.1rem;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.info-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Tips Section */
.tips-section {
    margin-top: 30px;
}

.tip-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.tip-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.tip-card ul {
    list-style: none;
    padding-left: 0;
}

.tip-card li {
    padding: 5px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.tip-card li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    gap: 15px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
}

.privacy-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.privacy-text {
    color: #0c4a6e;
    font-size: 0.95rem;
}

/* Fairness Reminder */
.fairness-reminder {
    display: flex;
    gap: 15px;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
}

.reminder-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reminder-text {
    color: #a16207;
    font-size: 0.95rem;
}

/* Loading Section */
.loading-section {
    padding: 60px 40px;
    text-align: center;
}

.loading-animation h3 {
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.loading-animation p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loading-steps {
    display: grid;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.loading-step {
    padding: 12px;
    background: #f9fafb;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    transition: var(--transition);
}

.loading-step.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.02);
}

/* Success Section */
.success-section {
    padding: 60px 40px;
    text-align: center;
}

.success-animation {
    max-width: 400px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-animation h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.success-animation p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Info Section & Box */
.info-section,
.final-info {
    margin-top: 30px;
}

.info-box {
    background: var(--surface-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--success-color);
}

.info-box h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.info-box li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.info-box li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Option Selector */
.option-selector {
    margin: 30px 0;
}

.option-selector h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.option-cards {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.option-header {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.option-header input[type="radio"] {
    margin-top: 2px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.option-header label {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0;
}

.option-header h4 {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.option-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Email Info */
.email-info {
    display: flex;
    gap: 15px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 25px 0;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text {
    color: #0c4a6e;
    font-size: 0.95rem;
}

/* Opponent Completion Page Styles */
.completion-header {
    text-align: center;
    margin-bottom: 40px;
}

.completion-header h2 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.dispute-info {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.dispute-info h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-item {
    margin-bottom: 15px;
    line-height: 1.5;
}

.info-item strong {
    color: var(--text-primary);
    margin-right: 10px;
}

.other-side-summary {
    background: #fafbfc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
}

.other-side-summary h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.other-side-text {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    max-height: 150px;
    overflow-y: auto;
}

.process-info {
    display: flex;
    gap: 15px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 25px 0;
}

.process-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.process-text h4 {
    margin-bottom: 10px;
    color: #0c4a6e;
}

.process-text ol {
    color: #0c4a6e;
    margin-left: 20px;
    line-height: 1.5;
}

.completion-loading, .completion-success {
    text-align: center;
    padding: 40px 20px;
}

.completion-loading h3, .completion-success h3 {
    margin: 20px 0 10px;
    color: var(--text-primary);
}

.completion-loading p, .completion-success p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.success-note {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 25px;
}

.success-note p {
    color: #166534;
    margin: 0;
    font-style: italic;
}

.error-section {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.error-section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.error-section p {
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 30px 0;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .step-indicator {
        padding: 20px;
        gap: 15px;
    }
    
    .step {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .form-section h2 {
        font-size: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .loading-section,
    .success-section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .dispute-recap,
    .privacy-notice,
    .fairness-reminder {
        padding: 15px;
    }
    
    .info-card {
        padding: 20px;
    }
} 