.consignment-application {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #1a1a1a;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 0 auto 60px;
    max-width: 800px;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.step-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 0 10px;
}

.step-number {
    width: 48px;
    height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #757575;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    transform: scale(1.1);
}

.step-text {
    font-size: 14px;
    font-weight: 500;
    color: #757575;
}

.step.active .step-text {
    color: #1a1a1a;
}

/* Form Styling */
.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.step-description {
    font-size: 16px;
    color: #757575;
}

/* Category Selection */
.category-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-option {
    cursor: pointer;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-option:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

.category-option.selected {
    border-color: #1a1a1a;
    background-color: rgba(26, 26, 26, 0.05);
    transform: translateY(-2px);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    stroke: #1a1a1a;
}

.category-option span {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Brand Input */
.brand-input {
    position: relative;
    max-width: 400px;
    margin: 30px auto;
}

.brand-input label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.brand-input input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.brand-input input:focus {
    border-color: #1a1a1a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.1);
}

.brand-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 4px;
    padding: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

.brand-suggestions li {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.brand-suggestions li:hover {
    background-color: #f8f9fa;
}

.other-brand-container {
    margin-top: 16px;
    text-align: left;
}

.other-brand-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.other-brand-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.custom-brand-input {
    margin-top: 12px;
    display: none;
}

/* Error state */
.brand-input input.error {
    border-color: #dc3545;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px 0;
}

.btn-prev,
.btn-next {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next {
    background: #1a1a1a;
    color: #fff;
    border: none;
}

.btn-next:hover:not(:disabled) {
    background: #333;
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

.btn-prev {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.btn-prev:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Form Groups and Select Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a1a1a;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.1);
}

/* Fix dropdown cutoff */
.form-group select {
    max-height: none;
    height: auto;
}

/* Form Section Container */
.form-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Style Selection */
#style {
    position: relative;
    z-index: 10;
}

/* Ensure dropdowns are visible */
.form-group {
    position: relative;
    z-index: 5;
}

/* Decrease z-index for each subsequent dropdown to prevent overlap */
.form-group:nth-child(2) { z-index: 4; }
.form-group:nth-child(3) { z-index: 3; }
.form-group:nth-child(4) { z-index: 2; }

/* Responsive Design */
@media (max-width: 768px) {
    .category-selection {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-steps {
        display: none;
    }
    
    .step-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .category-selection {
        grid-template-columns: 1fr;
    }
    
    .category-option {
        padding: 16px;
    }
}

/* Photo Upload Styling */
.photo-upload-container {
    text-align: center;
    padding: 2rem;
}

.upload-instructions {
    margin-bottom: 2rem;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.photo-slot {
    aspect-ratio: 1;
    border: 2px dashed #ddd;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-slot:hover {
    border-color: #000;
    background-color: rgba(0, 0, 0, 0.02);
}

.photo-slot.has-image {
    border: none;
}

.photo-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 1rem;
}

.photo-placeholder span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.photo-placeholder small {
    color: #666;
}

.photo-tips {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin-top: 2rem;
}

.photo-tips h4 {
    margin-bottom: 1rem;
}

.photo-tips ul {
    list-style: none;
    padding: 0;
}

.photo-tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.photo-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
}

/* Make sure steps are properly hidden/shown */
.form-step {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-step[style*="display: none"] {
    opacity: 0;
}

/* Photo Upload Section Styles */
.photo-upload-section {
    margin: 2rem 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.photo-slot {
    aspect-ratio: 1;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.photo-slot:hover {
    border-color: #666;
}

.photo-slot.drag-over {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.photo-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 1rem;
}

.photo-placeholder svg {
    display: block;
    margin: 0 auto 0.5rem;
    color: #666;
}

.photo-placeholder span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.photo-placeholder small {
    color: #666;
    font-size: 0.875rem;
}

.photo-tips {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.photo-tips h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.photo-tips ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.photo-tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.photo-tips li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Authentication Section Styles */
.authentication-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.authentication-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.auth-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.auth-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.auth-slot {
    border-style: dashed;
    border-color: #ddd;
}

.auth-note {
    color: #666;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .auth-upload-grid {
        grid-template-columns: 1fr;
    }
}

/* Price Calculator Styles */
.price-calculator {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-input-section {
    margin-bottom: 2rem;
}

.price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    font-size: 1.5rem;
    color: #333;
}

#price {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

#price:focus {
    outline: none;
    border-color: #007bff;
}

.price-breakdown {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
}

.breakdown-header {
    margin-bottom: 1.5rem;
}

.breakdown-details {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1.1rem;
}

.breakdown-row.total {
    border-top: 2px solid #ddd;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.commission {
    color: #dc3545;
}

.earnings {
    color: #28a745;
}

.commission-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

.commission-info ul {
    margin: 0.5rem 0 0 1.2rem;
}

.commission-info li {
    margin-bottom: 0.3rem;
}

/* Review Step Styles */
.review-summary {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.review-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-section h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.review-item {
    display: flex;
    flex-direction: column;
}

.review-item .label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.review-item .value {
    font-size: 1.1rem;
    font-weight: 500;
}

.photo-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.photo-summary-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.price-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
}

.review-price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1.1rem;
}

.review-price-row.total {
    border-top: 2px solid #ddd;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.terms-section {
    background: #f8f9fa;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
}

.btn-submit {
    background-color: #28a745;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
    background-color: #218838;
}

/* Remove dropdown arrows from contact form inputs */
.contact-form input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff;
}

/* Terms and conditions styling */
.terms-section .terms-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.terms-section input {
    width: 100%;
    max-width: 200px;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.terms-section input:focus {
    outline: none;
    border-color: #007bff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2rem auto;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.terms-content section {
    margin-bottom: 2rem;
}

.terms-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.terms-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
}

.scroll-progress {
    height: 4px;
    background: #eee;
    margin-bottom: 1rem;
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #007bff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Success Modal Styles */
.success-content {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 1rem;
}

.next-steps {
    text-align: left;
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 1rem;
}

.reference-number {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.reference-number strong {
    font-size: 1.2rem;
    color: #007bff;
}

.loading-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Modal Styles */
.success-modal .btn-primary,
#success-modal .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.success-modal .btn-primary:hover,
#success-modal .btn-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.success-modal .modal-footer,
#success-modal .modal-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
}
