/* ========================================
   BUILDING WIZARD STYLES
   ======================================== */

/* ========================================
   CHOICE MODAL - Quick vs Manual Setup
   ======================================== */
.choice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.choice-modal.show {
    display: flex;
}

.choice-container {
    background: white;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.choice-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.choice-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.choice-header p {
    margin: 0;
    opacity: 0.9;
}

.choice-body {
    padding: 40px;
}

.choice-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.choice-option {
    background: #f8f9fa;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.choice-option:hover {
    border-color: #667eea;
    background: #f0f2ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.choice-option .icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.choice-option h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.choice-option p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.choice-option .badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 10px;
}

.choice-cancel {
    text-align: center;
}

.choice-cancel-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 20px;
    transition: color 0.3s;
}

.choice-cancel-btn:hover {
    color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .choice-options {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BUILDING WIZARD MODAL
   ======================================== */
.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.wizard-modal.show {
    display: flex;
}

.wizard-container {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.wizard-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.wizard-header p {
    margin: 0;
    opacity: 0.9;
}

.wizard-body {
    padding: 40px;
}

.wizard-section {
    margin-bottom: 40px;
}

.wizard-section h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.wizard-field {
    margin-bottom: 20px;
}

.wizard-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.wizard-field input[type="number"],
.wizard-field input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.wizard-field input:focus {
    outline: none;
    border-color: #667eea;
}

.wizard-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 10px;
}

.wizard-checkbox:hover {
    background: #e9ecef;
}

.wizard-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wizard-checkbox label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.sub-field {
    margin-right: 30px;
    margin-top: 10px;
}

.wizard-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.wizard-summary h4 {
    margin: 0 0 15px 0;
    color: #667eea;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #667eea;
}

.wizard-footer {
    padding: 20px 40px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    position: sticky;
    bottom: 0;
    background: white;
    border-radius: 0 0 16px 16px;
}

.wizard-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.wizard-btn-cancel {
    background: #e0e0e0;
    color: #666;
}

.wizard-btn-cancel:hover {
    background: #d0d0d0;
}

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

.wizard-btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wizard-btn-create:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.info-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.wizard-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 10001;
}

.wizard-loading.show {
    display: block;
}

.wizard-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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