/**
 * Futturu Website Simulator Styles
 */

.futturu-simulator-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.futturu-simulator-header {
    text-align: center;
    margin-bottom: 40px;
}

.futturu-simulator-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.futturu-simulator-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

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

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

.futturu-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.futturu-step.active .step-number {
    background: #3498db;
    color: #ffffff;
}

.futturu-step.completed .step-number {
    background: #27ae60;
    color: #ffffff;
}

.step-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.futturu-step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

/* Step Content */
.futturu-step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.futturu-step-content.active {
    display: block;
}

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

.futturu-step-content h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.futturu-step-intro {
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Site Type Cards */
.futturu-site-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.futturu-site-type-card {
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.futturu-site-type-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.15);
    transform: translateY(-3px);
}

.futturu-site-type-card input[type="radio"] {
    display: none;
}

.futturu-site-type-card input[type="radio"]:checked + .card-content {
    color: #3498db;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Form Grid */
.futturu-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.futturu-form-group {
    display: flex;
    flex-direction: column;
}

.futturu-form-group.futturu-full-width {
    grid-column: 1 / -1;
}

.futturu-form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.futturu-form-group input,
.futturu-form-group select,
.futturu-form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.futturu-form-group input:focus,
.futturu-form-group select:focus,
.futturu-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.futturu-form-group input.error,
.futturu-form-group select.error,
.futturu-form-group textarea.error {
    border-color: #e74c3c;
}

.futturu-form-group .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.futturu-form-group .error-message.show {
    display: block;
}

/* Generated Description */
.futturu-generated-description {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: #ffffff;
}

.futturu-generated-description h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.futturu-description-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.futturu-description-wrapper textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.futturu-description-wrapper textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: #ffffff;
}

.futturu-edit-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.futturu-edit-hint .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.futturu-feedback-msg {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 20px;
}

.futturu-feedback-msg.success {
    color: #d4edda;
}

.futturu-feedback-msg.error {
    color: #f8d7da;
}

.description-content {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    line-height: 1.7;
    font-size: 1.05rem;
    min-height: 60px;
}

.futturu-btn-generate {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.futturu-btn-generate:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.futturu-btn-generate .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.futturu-btn-generate.futturu-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.futturu-btn-generate.futturu-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.6s linear infinite;
}

/* Website Preview Mockup */
.futturu-preview-section {
    margin-bottom: 30px;
}

.futturu-preview-section h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.website-preview-mockup {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-browser-bar {
    background: #f5f5f5;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.browser-dot.red {
    background: #ff5f56;
}

.browser-dot.yellow {
    background: #ffbd2e;
}

.browser-dot.green {
    background: #27ca40;
}

.browser-url {
    flex: 1;
    background: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-left: 15px;
}

.preview-content {
    background: #ffffff;
    padding: 40px;
}

.preview-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.preview-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.preview-tagline {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
}

.preview-cta {
    background: #ffffff;
    color: #667eea;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preview-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.preview-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.preview-services,
.preview-about,
.preview-contact {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.preview-services h3,
.preview-about h3,
.preview-contact h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.preview-services p,
.preview-about p,
.preview-contact p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Summary Section */
.futturu-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.futturu-summary h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

#summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#summary-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #2c3e50;
}

#summary-list li:last-child {
    border-bottom: none;
}

#summary-list strong {
    color: #7f8c8d;
}

/* Message Box */
.futturu-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.futturu-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.futturu-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Form Actions */
.futturu-form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.futturu-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.futturu-btn-next,
.futturu-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin-left: auto;
}

.futturu-btn-next:hover,
.futturu-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.futturu-btn-back {
    background: #f5f5f5;
    color: #2c3e50;
}

.futturu-btn-back:hover {
    background: #e0e0e0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .futturu-simulator-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .futturu-simulator-header h2 {
        font-size: 1.8rem;
    }
    
    .futturu-progress-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .futturu-progress-steps::before {
        display: none;
    }
    
    .futturu-step {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .step-number {
        margin-bottom: 0;
    }
    
    .futturu-form-grid {
        grid-template-columns: 1fr;
    }
    
    .futturu-site-types-grid {
        grid-template-columns: 1fr;
    }
    
    .preview-sections {
        grid-template-columns: 1fr;
    }
    
    .futturu-form-actions {
        flex-direction: column;
    }
    
    .futturu-btn-next,
    .futturu-btn-submit,
    .futturu-btn-back {
        margin-left: 0;
        width: 100%;
    }
    
    .preview-hero h1 {
        font-size: 1.8rem;
    }
    
    .preview-tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .futturu-simulator-header h2 {
        font-size: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .preview-content {
        padding: 20px;
    }
}

/* Loading State */
.futturu-loading {
    position: relative;
    pointer-events: none;
}

.futturu-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

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