/* Simplified Checkout Questionnaire Styles */

/* Base Layout */
.checkout-questionnaire {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #333;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #005a87);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step.active .step-number {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.step.current .step-number {
    background: #007cba;
    color: white;
    border-color: #005a87;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.2);
    transform: scale(1.1);
}

.step-title {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active .step-title {
    color: #007cba;
}

.step.current .step-title {
    color: #007cba;
    font-weight: 600;
}

/* Step Content */
.step-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 3rem;
}

.step {
    animation: fadeIn 0.3s ease;
}

.step h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.step p {
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Font Selection */
.font-form {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.font-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.font-family {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.font-family:hover {
    border-color: #007cba;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.1);
}

.family-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.family-info h3 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.family-info p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.family-option {
    text-align: right;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-wrapper:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: #007cba;
    border-color: #007cba;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.label-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.label-text strong {
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.label-text .price {
    color: #007cba;
    font-weight: 700;
    font-size: 1.2rem;
}

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

.weight-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.weight-option:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.weight-option input[type="checkbox"] {
    display: none;
}

.weight-option input[type="checkbox"]:checked + .checkbox-custom {
    background: #007cba;
    border-color: #007cba;
}

.weight-info {
    display: flex;
    flex-direction: column;
    margin-left: 0.75rem;
}

.weight-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.weight-price {
    color: #007cba;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Selection Summary */
.selection-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    min-height: 400px;
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
}

.selection-summary h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

#selected-items {
    margin-bottom: 1.5rem;
}

.no-selection {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.item-name {
    font-weight: 500;
    color: #333;
}

.item-price {
    font-weight: 600;
    color: #007cba;
}

.total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

/* License Selection */
.license-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.license-option {
    position: relative;
}

.license-option input[type="radio"] {
    display: none;
}

.license-option label {
    display: block;
    padding: 2rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.license-option label:hover {
    border-color: #007cba;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.1);
}

.license-option input[type="radio"]:checked + label {
    border-color: #007cba;
    background: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.15);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.license-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.multiplier {
    background: #007cba;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.license-option p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.info-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group input.error {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Order Review */
.order-review {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.review-section {
    margin-bottom: 2rem;
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.review-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    border-top: 2px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Payment Form */
.payment-section {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 2rem;
}

.payment-section h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-element {
    padding: 1rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    background: white;
    margin-bottom: 1rem;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: #007cba;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-pay {
    width: 100%;
    margin-top: 1rem;
    position: relative;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

.spinner.hidden {
    display: none;
}

/* Global Error */
.global-error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-questionnaire {
        padding: 1rem;
    }
    
    .step-content {
        padding: 2rem 1.5rem;
    }
    
    .font-form {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .selection-summary {
        position: static;
        margin-top: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .license-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    
    .step-number {
        margin-bottom: 0;
    }
    
    .step-content {
        padding: 1.5rem 1rem;
    }
    
    .font-family {
        padding: 1.5rem;
    }
    
    .family-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .weights-grid {
        grid-template-columns: 1fr;
    }
} 