﻿/* AuroArt Custom Portrait Order Form Styles */
.auroart-order-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Progress Bar */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-progress::before {
    content: '''';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
}

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

.progress-step::before {
    content: attr(data-step);
    display: block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.progress-step.active::before {
    background: #007cba;
    color: white;
}

.progress-step.completed::before {
    background: #4caf50;
    color: white;
    content: ''✓'';
}

.progress-step-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active .progress-step-label {
    color: #007cba;
    font-weight: 600;
}

/* Order Steps */
.order-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.order-step.active {
    display: block;
}

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

.order-step h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.step-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Option Grid */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    border-color: #007cba;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,124,186,0.15);
}

.option-card.selected {
    border-color: #007cba;
    background: linear-gradient(135deg, #f0f9ff 0%, #e1f5fe 100%);
    box-shadow: 0 4px 15px rgba(0,124,186,0.2);
}

.option-card input {
    position: absolute;
    opacity: 0;
}

.option-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.card-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.card-desc {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 10px;
}

.card-price {
    display: block;
    font-size: 18px;
    color: #007cba;
    font-weight: 700;
}

/* Form Fields */
.form-field {
    margin: 25px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #007cba;
}

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

/* Upload Area */
.upload-area {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 50px 30px;
    text-align: center;
    margin: 30px 0;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #007cba;
    background: #f0f9ff;
}

.upload-area input {
    display: none;
}

.upload-icon {
    font-size: 64px;
    color: #999;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #666;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 24px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #f5f5f5;
    color: #666;
}

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

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,124,186,0.3);
}

.btn-submit {
    font-size: 18px;
    padding: 16px 50px;
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    color: #666;
}

.summary-row .value {
    font-weight: 600;
    color: #333;
}

.summary-row.total {
    font-size: 20px;
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid #333;
}

.summary-row.total .value {
    color: #007cba;
}

.summary-row.deposit {
    background: #e7f3ff;
    margin: 15px -30px -30px;
    padding: 20px 30px;
    border-radius: 0 0 12px 12px;
}

.summary-row.deposit .label,
.summary-row.deposit .value {
    color: #007cba;
    font-weight: 700;
}

.deposit-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .form-progress {
        font-size: 11px;
    }
    
    .progress-step::before {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
    }
}
