/* WordPress Reset and Isolation */
.consultation-generator-wrapper * {
    box-sizing: border-box;
}

.consultation-generator-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    padding: 0 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;
}

.container {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Header */
.header {
    background: transparent;
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    margin: 0 0 15px 0 !important;
    font-size: 2.5em !important;
    font-weight: 700 !important;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2 !important;
}

.subtitle {
    margin: 0 !important;
    opacity: 0.9;
    font-size: 1.2em !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    margin: 0 30px;
}

.progress-fill {
    background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
    height: 100%;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 0%;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Steps */
.steps-container {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 40px 30px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    position: relative;
}

/* Step connector lines */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
}

.step-circle {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 12px;
    font-size: 16px !important;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.step.active .step-circle {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%) !important;
    border-color: transparent !important;
    color: #1e3c72 !important;
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%) !important;
    border-color: transparent !important;
    color: #1e3c72 !important;
    font-weight: 700 !important;
}

.step-label {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
    max-width: 100px;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.step.active .step-label {
    color: #00ff88 !important;
    font-weight: 600 !important;
}

/* Step info */
.step-info {
    text-align: center;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 20px !important;
    font-weight: 600 !important;
    color: white !important;
    margin: 0 !important;
}

/* Cards */
.card {
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
}

.card h3 {
    margin: 0 0 20px 0 !important;
    color: white !important;
    font-size: 1.8em !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.card p {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.6 !important;
    margin: 0 0 30px 0 !important;
    font-size: 16px !important;
}

.card p a {
    color: #00d4ff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.card p a:hover {
    border-bottom-color: #00d4ff;
}

/* Form elements */
.form-group {
    margin-bottom: 30px !important;
}

.form-group label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    color: white !important;
    font-size: 15px !important;
}

.form-group input,
.form-group textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none !important;
    border-color: #00d4ff !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.form-group textarea {
    resize: vertical !important;
    min-height: 120px !important;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ai,
.btn-small,
.btn-remove {
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-family: inherit !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%) !important;
    color: #1e3c72 !important;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3) !important;
    font-weight: 700 !important;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

.btn-ai {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%) !important;
    color: white !important;
    font-size: 18px !important;
    padding: 20px 40px !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-ai:hover:not(:disabled) {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6) !important;
}

.btn-small {
    padding: 8px 16px !important;
    font-size: 13px !important;
}

.btn-remove {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%) !important;
    color: white !important;
    padding: 8px 12px !important;
}

.btn-remove:hover {
    background: linear-gradient(135deg, #ff3838 0%, #ff2f2f 100%) !important;
    transform: translateY(-2px) !important;
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-ai:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Consultations */
.consultations-list,
.consultations-select {
    margin-top: 30px !important;
}

.consultation-item,
.consultation-option {
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    margin-bottom: 20px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px);
}

.consultation-item:hover,
.consultation-option:hover {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

.consultation-option {
    cursor: pointer !important;
}

.consultation-option.selected {
    border-color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1) !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2) !important;
}

.consultation-header,
.consultation-option-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 15px !important;
}

.consultation-header h5,
.consultation-option h4 {
    margin: 0 !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.consultation-option h4 {
    font-size: 20px !important;
}

.consultation-item p,
.consultation-option p {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 8px 0 !important;
    font-size: 14px !important;
}

.department {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%) !important;
    color: #1e3c72 !important;
    padding: 6px 16px !important;
    border-radius: 25px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.questions-count {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
    margin-top: 10px !important;
    font-weight: 500 !important;
}

/* AI Section */
.ai-section {
    text-align: center !important;
    margin: 40px 0 !important;
    padding: 40px !important;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(254, 202, 87, 0.1) 100%) !important;
    border-radius: 20px !important;
    border: 2px dashed rgba(255, 107, 107, 0.3) !important;
    backdrop-filter: blur(10px);
}

/* Bullet Points */
.bullet-points-container {
    margin: 30px 0 !important;
}

.bullet-points-list h4 {
    color: white !important;
    margin-bottom: 25px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.bullet-point-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    backdrop-filter: blur(10px);
}

.bullet-content {
    flex: 1 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6 !important;
    font-size: 15px !important;
}

.bullet-actions {
    display: flex !important;
    gap: 8px !important;
    margin-left: 20px !important;
}

/* Manual Add Section */
.manual-add-section {
    margin-top: 40px !important;
    padding: 30px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.manual-add-section h4 {
    margin: 0 0 20px 0 !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.manual-add-section .form-group {
    display: flex !important;
    gap: 15px !important;
    align-items: flex-end !important;
    margin-bottom: 0 !important;
}

.manual-add-section input {
    flex: 1 !important;
    margin-bottom: 0 !important;
}

/* Response sections */
.response-preview,
.final-response-container {
    margin-top: 30px !important;
}

.response-preview-content,
.response-content {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    font-family: Georgia, serif !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}

.response-content {
    max-height: none !important;
}

.response-actions {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
    flex-wrap: wrap !important;
}

/* Navigation */
.navigation-buttons {
    display: flex !important;
    justify-content: space-between !important;
    padding: 40px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Step content */
.step-content {
    display: none !important;
}

.step-content.active {
    display: block !important;
}

/* Utilities */
.no-consultations {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic !important;
    padding: 60px 20px !important;
    font-size: 16px !important;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 2px solid white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    animation: spin 1s linear infinite !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .consultation-generator-wrapper {
        margin: 10px !important;
        padding: 0 15px !important;
        border-radius: 15px !important;
    }
    
    .header {
        padding: 30px 20px !important;
    }
    
    .header h1 {
        font-size: 2em !important;
    }
    
    .steps-container {
        padding: 30px 20px !important;
        flex-wrap: wrap !important;
        gap: 20px !important;
    }
    
    .step {
        flex: 1 1 auto !important;
        min-width: 80px !important;
    }
    
    .step-circle {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .card {
        padding: 30px 25px !important;
    }
    
    .navigation-buttons {
        padding: 25px 20px !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .consultation-option-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    .manual-add-section .form-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .response-actions {
        flex-direction: column !important;
    }
    
    .bullet-point-item {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .bullet-actions {
        margin-left: 0 !important;
        justify-content: flex-end !important;
    }
}