/* CloudMonkey Wizards Frontend Styles */

.cloudmonkey-wizard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Wizard Header */
.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wizard-subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 4px;
    background-color: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

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

.progress-steps .step {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    color: #7f8c8d;
    background-color: #ecf0f1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-steps .step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.progress-steps .step.completed {
    background-color: #27ae60;
    color: white;
}

/* Wizard Form */
.wizard-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 20px;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.wizard-step h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-description {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Form Elements */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.half {
    flex: 1;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

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

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-description {
    display: block;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
}

.field-error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Package Selection */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.package-option {
    position: relative;
}

.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.package-card {
    display: block;
    padding: 30px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.package-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.package-header {
    margin-bottom: 15px;
}

.package-header h4 {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.package-price {
    font-size: 1.6em;
    font-weight: 700;
    color: #27ae60;
}

.package-card.selected .package-price {
    color: #fff;
}

.package-description {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.package-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.package-card.selected .package-check {
    opacity: 1;
    transform: scale(1);
}

.package-check .checkmark {
    color: white;
    font-weight: bold;
    font-size: 1.2em;
}

/* Confirmation Details */
.confirmation-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e6ed;
}

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

.detail-row .label {
    font-weight: 500;
    color: #2c3e50;
}

.detail-row .value {
    color: #7f8c8d;
    text-align: right;
}

.selected-package-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.selected-package-info .package-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.selected-package-info .package-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 10px;
}

.selected-package-info .package-description {
    color: #7f8c8d;
    line-height: 1.5;
}

/* Terms Acceptance */
.terms-acceptance {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.terms-acceptance label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1em;
}

.terms-acceptance input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e0e6ed;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

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

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

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

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Messages */
.wizard-messages {
    margin-bottom: 30px;
}

.wizard-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.wizard-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wizard-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Success Modal */
.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5em;
    color: white;
    font-weight: bold;
}

.modal-content h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 15px;
}

.modal-content p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cloudmonkey-wizard-container {
        padding: 15px;
    }
    
    .wizard-form {
        padding: 25px;
    }
    
    .wizard-title {
        font-size: 2em;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .progress-steps .step {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .wizard-navigation .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wizard-title {
        font-size: 1.6em;
    }
    
    .wizard-subtitle {
        font-size: 1em;
    }
    
    .wizard-form {
        padding: 20px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
} 