/* ============================================================
   contribution-redesigned.css  –  Modern Multi-Step Form
   ============================================================ */

* {
    box-sizing: border-box;
}

.contribution-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* ?? NAVBAR ?????????????????????????????????????????? */
.contribution-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.navbar-logo:hover {
    color: #764ba2;
    gap: 12px;
}

.navbar-title {
    margin-bottom: 12px;
}

.navbar-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.navbar-title p {
    color: #666;
    margin: 4px 0 0 0;
}

.navbar-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    max-width: 400px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* ?? MAIN CONTENT ???????????????????????????????????? */
.contribution-content {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 0 20px;
}

.contribution-body {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contribution-form {
    padding: 40px;
}

/* ?? FORM STEPS ?????????????????????????????????????? */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step[style*="display: block"] {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.step-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.step-info p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.step-content {
    padding-top: 20px;
}

/* ?? TYPE SELECTION ?????????????????????????????????? */
.type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.type-option {
    position: relative;
    cursor: pointer;
}

.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-option-inner {
    padding: 24px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.type-option input:checked ~ .type-option-inner {
    border-color: #667eea;
    background: linear-gradient(135deg, #f0f4ff, #f5f3ff);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.type-icon-large {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.type-option-inner h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.type-option-inner p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.type-checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.type-option input:checked ~ .type-option-inner ~ .type-checkmark {
    opacity: 1;
}

/* ?? FORM GROUPS ????????????????????????????????????– */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-wrapper {
    display: flex;
    flex-direction: column;
}

.form-group-wrapper.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

.optional {
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
}

.form-control,
.form-select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-area {
    resize: vertical;
    font-family: inherit;
}

.field-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 6px;
}

.char-count {
    font-size: 0.85rem;
    color: #999;
    margin-top: 8px;
    text-align: right;
}

/* ?? FILE UPLOAD ????????????????????????????????????– */
.file-upload-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-upload-box {
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.file-upload-box:hover,
.file-upload-box.dragover {
    background: #f0f4ff;
    border-color: #764ba2;
    transform: translateY(-2px);
}

.upload-icon-large {
    font-size: 3rem;
    margin-bottom: 16px;
}

.file-upload-box h3 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.file-upload-box p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.file-limit {
    color: #999 !important;
    font-size: 0.85rem !important;
    margin-top: 8px !important;
}

.file-input {
    display: none;
}

.uploaded-files {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #667eea;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 1.5rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    word-break: break-word;
}

.file-size {
    font-size: 0.85rem;
    color: #999;
    margin-top: 2px;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    padding: 6px;
}

.btn-remove:hover {
    color: #c82333;
    transform: scale(1.1);
}

/* ?? REVIEW SECTION ?????????????????????????????????? */
.review-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-weight: 600;
    color: #667eea;
    min-width: 100px;
}

.review-value {
    color: #333;
    font-weight: 500;
}

/* ?? QUALITY CHECKLIST ??????????????????????????????? */
.quality-checklist {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 8px;
}

.quality-checklist h4 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 1rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checklist-item input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-item span {
    color: #333;
    font-size: 0.95rem;
}

/* ?? NAVIGATION ?????????????????????????????????????? */
.form-navigation {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-nav {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* ?? SIDEBAR ????????????????????????????????????????– */
.contribution-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.tips-list,
.standards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li,
.standards-list li {
    padding: 8px 0;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.tips-list li:before {
    content: "?? ";
    margin-right: 6px;
}

.standards-list li:before {
    content: none;
}

.tips-list li:last-child,
.standards-list li:last-child {
    border-bottom: none;
}

.impact-card {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-left: 4px solid #667eea;
}

.impact-card p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ?? RESPONSIVE ????????????????????????????????????– */
@media (max-width: 991px) {
    .contribution-content {
        grid-template-columns: 1fr;
    }

    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .contribution-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 0 16px;
    }

    .navbar-title h1 {
        font-size: 1.4rem;
    }

    .contribution-form {
        padding: 24px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-info h2 {
        font-size: 1.4rem;
    }

    .type-options {
        grid-template-columns: 1fr;
    }

    .file-upload-box {
        padding: 30px 16px;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .navbar-progress {
        flex-direction: column;
        gap: 8px;
    }

    .progress-bar {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 0 12px;
    }

    .navbar-title h1 {
        font-size: 1.2rem;
    }

    .contribution-form {
        padding: 16px;
    }

    .step-header {
        gap: 12px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .step-info h2 {
        font-size: 1.1rem;
    }

    .step-info p {
        font-size: 0.85rem;
    }

    .file-upload-box {
        padding: 24px 12px;
    }

    .upload-icon-large {
        font-size: 2.5rem;
    }

    .file-upload-box h3 {
        font-size: 1rem;
    }
}
