/* Trade-In Page Styles */

.trade-in-content {
    min-height: 100vh;
    background: #000000;
    padding-bottom: 4rem;
}

.trade-in-header {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(255, 150, 0, 0.1), rgba(255, 68, 68, 0.1));
    border-radius: 1rem;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
}

/* How It Works */
.how-it-works-section {
    margin-bottom: 5rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #ff9600;
    box-shadow: 0 10px 30px rgba(255, 150, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff9600, #ff4444);
    color: #ffffff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-icon {
    font-size: 4rem;
    margin: 2rem 0 1rem;
}

.step-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.step-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 5rem;
}

.calculator-container {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.indicator-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.indicator-step.active,
.indicator-step.completed {
    opacity: 1;
}

.indicator-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s;
}

.indicator-step.active .indicator-circle {
    background: linear-gradient(135deg, #ff9600, #ff4444);
    border-color: #ff9600;
}

.indicator-step.completed .indicator-circle {
    background: #4caf50;
    border-color: #4caf50;
}

.indicator-step span {
    font-size: 0.75rem;
    color: #cccccc;
    white-space: nowrap;
    text-align: center;
}

.indicator-line {
    width: 2rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

/* Form Steps */
.calculator-form {
    position: relative;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.upload-subtitle {
    text-align: center;
    color: #cccccc;
    margin-bottom: 2rem;
}

/* Form Fields */
.form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9600;
    background: rgba(255, 150, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.form-group input[type="date"] {
    cursor: pointer;
}

/* Checkbox List */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #ff9600;
}

.checkbox-item span {
    color: #cccccc;
    font-size: 1rem;
}

/* Upload Section */
.upload-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.file-preview {
    margin-top: 1rem;
    display: none;
}

.file-preview.active {
    display: block;
}

.preview-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #ff9600;
}

.preview-info {
    flex: 1;
}

.preview-filename {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.preview-size {
    color: #999999;
    font-size: 0.875rem;
}

.preview-remove {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.preview-remove:hover {
    background: #ff0000;
    color: #ffffff;
}

/* Calculation Result */
.calculation-result {
    text-align: center;
}

.calc-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.calculation-result h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

.laptop-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

.comparison-card h4 {
    color: #ff9600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.value-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.laptop-specs {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.comparison-arrow {
    font-size: 3rem;
    color: #ff9600;
}

/* Payment Difference */
.payment-difference {
    background: linear-gradient(135deg, rgba(255, 150, 0, 0.1), rgba(255, 68, 68, 0.1));
    border: 2px solid #ff9600;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.difference-label {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.difference-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff9600;
    margin-bottom: 1rem;
}

.difference-amount.positive {
    color: #4caf50;
}

.difference-amount.negative {
    color: #ff4444;
}

.difference-note {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Agreement Section */
.agreement-section {
    margin-top: 3rem;
}

.agreement-text {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.agreement-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-agree,
.btn-decline {
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-agree {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #ffffff;
}

.btn-agree:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
}

.btn-decline {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #ffffff;
}

.btn-decline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.5);
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #ff9600, #ff4444);
    color: #ffffff;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 2rem;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 150, 0, 0.5);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff9600;
}

.next-btn {
    margin-left: auto;
    background: linear-gradient(135deg, #ff9600, #ff4444);
    border: none;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 150, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .form-fields {
        grid-template-columns: 1fr;
    }

    .calculator-container {
        padding: 2rem 1.5rem;
    }

    .laptop-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }

    .agreement-buttons {
        flex-direction: column;
    }

    .btn-agree,
    .btn-decline {
        width: 100%;
    }

    .indicator-step span {
        font-size: 0.65rem;
    }

    .indicator-line {
        width: 1rem;
    }
}

@media (min-width: 769px) {
    .upload-section {
        grid-template-columns: 1fr 1fr;
    }
}