/* Modular Kitchen Estimator Styles - Compact Design */

.mke-calculator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.mke-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E03F6A, #ff6b9d, #E03F6A);
    z-index: 10;
}

.mke-header {
    text-align: center;
    margin-bottom: 0;
    padding: 20px 30px 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    flex-shrink: 0;
}

.mke-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mke-header p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mke-step {
    display: none;
    animation: slideInUp 0.6s ease-out;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 20px 30px;
    flex: 1;
    overflow-y: auto;
}

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

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

.mke-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
    align-items: start;
}

.mke-left-content {
    padding-right: 20px;
}

.mke-right-content {
    padding-left: 20px;
    position: relative;
}

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

.mke-form-group label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    position: relative;
}

.mke-form-group label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #E03F6A, #ff6b9d);
    border-radius: 2px;
}

.mke-button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.mke-btn {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mke-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(224, 63, 106, 0.1), transparent);
    transition: left 0.5s;
}

.mke-btn:hover::before {
    left: 100%;
}

.mke-btn:hover {
    border-color: #E03F6A;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 63, 106, 0.2);
    background-color:#E03F6A;
}

.mke-btn.active {
    background: linear-gradient(135deg, #E03F6A, #ff6b9d);
    border-color: #E03F6A;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 63, 106, 0.4);
}

.mke-btn-primary {
    background: linear-gradient(135deg, #E03F6A, #ff6b9d);
    border: none;
    color: #fff;
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(224, 63, 106, 0.3);
    position: relative;
    overflow: hidden;
}

.mke-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.mke-btn-primary:hover::before {
    left: 100%;
}

.mke-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(224, 63, 106, 0.4);
}

.mke-btn-secondary {
    background: #ffffff;
    border: 2px solid #E03F6A;
    color: #E03F6A;
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.mke-btn-secondary:hover {
    background: linear-gradient(135deg, #E03F6A, #ff6b9d);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(224, 63, 106, 0.3);
}

.mke-info-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.mke-info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(224, 63, 106, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.mke-info-section .mke-icon,
.mke-info-section .mke-kitchen-icon {
    margin: 0 auto 25px;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    z-index: 1;
    position: relative;
}

.mke-info-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    z-index: 1;
    position: relative;
}

.mke-info-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
    z-index: 1;
    position: relative;
}

.mke-requirements-list h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    position: relative;
}

.mke-requirements-list h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E03F6A, #ff6b9d);
    border-radius: 2px;
}

.mke-requirement-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border-bottom: none;
    flex-wrap: wrap;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mke-requirement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #E03F6A;
}

.mke-requirement-item:last-child {
    margin-bottom: 0;
}

.mke-requirement-info {
    flex: 1;
    margin-right: 20px;
}

.mke-requirement-item label {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
    display: block;
}

.mke-unit-price {
    font-size: 14px;
    color: #E03F6A;
    font-weight: 700;
    display: block;
    background: linear-gradient(135deg, rgba(224, 63, 106, 0.1), rgba(255, 107, 157, 0.1));
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

.mke-counter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f7fafc;
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.mke-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: all 0.3s ease;
}

.mke-checkbox.checked {
    background: linear-gradient(135deg, #E03F6A, #ff6b9d);
    border-color: #E03F6A;
    color: #fff;
    transform: scale(1.1);
}

.mke-checkbox.checked::after {
    content: '✓';
    font-size: 14px;
    font-weight: bold;
}

.mke-counter-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #E03F6A;
    background: #ffffff;
    color: #E03F6A;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(224, 63, 106, 0.2);
}

.mke-counter-btn:hover {
    background: linear-gradient(135deg, #E03F6A, #ff6b9d);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(224, 63, 106, 0.3);
}

.mke-counter-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f7fafc !important;
    color: #a0aec0 !important;
    border-color: #e2e8f0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.mke-counter-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    min-width: 30px;
    text-align: center;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.mke-restriction {
    font-size: 12px;
    color: #718096;
    font-style: italic;
    display: block;
    margin-top: 8px;
    background: rgba(113, 128, 150, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    width: fit-content;
}

.mke-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
}

.mke-navigation button:only-child {
    margin-left: auto;
}

/* Step 3 specific styles */
.mke-form-group input[type="text"],
.mke-form-group input[type="email"],
.mke-form-group input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-weight: 500;
}

.mke-form-group input:focus {
    outline: none;
    border-color: #E03F6A;
    box-shadow: 0 0 0 3px rgba(224, 63, 106, 0.1);
    transform: translateY(-1px);
}

.mke-summary {
    background: linear-gradient(135deg, #ffffff, #f7fafc);
    padding: 20px;
    border-radius: 16px;
    height: fit-content;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.mke-summary h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 25px 0;
    position: relative;
}

.mke-summary h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #E03F6A, #ff6b9d);
    border-radius: 2px;
}

.mke-summary-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.mke-summary-detail {
    flex: 1;
}

.mke-summary-label {
    font-weight: 600;
    color: #2d3748;
    display: block;
}

.mke-summary-unit-price {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
    display: block;
    margin-top: 3px;
}

.mke-summary-value {
    color: #4a5568;
    font-weight: 700;
    text-align: right;
}

.mke-summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

.mke-summary-total {
    padding: 20px;
    border: 2px solid #E03F6A;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(224, 63, 106, 0.05), rgba(255, 107, 157, 0.05));
    position: relative;
    overflow: hidden;
}

.mke-summary-total::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E03F6A, #ff6b9d);
}

.mke-summary-total .mke-summary-label {
    font-size: 20px;
    font-weight: 800;
    color: #2d3748;
}

.mke-summary-total .mke-summary-value {
    font-size: 24px;
    font-weight: 800;
    color: #E03F6A;
}

/* Loading and Success states */
.mke-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 1000;
}

.mke-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #E03F6A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.mke-loading p {
    margin-top: 25px;
    font-size: 18px;
    color: #4a5568;
    font-weight: 600;
}

.mke-success {
    text-align: center;
    padding: 40px 20px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.mke-success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto 25px;
    box-shadow: 0 8px 30px rgba(72, 187, 120, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mke-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.mke-success p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.mke-success-summary {
    background: linear-gradient(135deg, #ffffff, #f7fafc);
    border: 2px solid #E03F6A;
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto 0;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(224, 63, 106, 0.2);
}

.mke-concise-summary h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 15px 0;
    text-align: center;
    position: relative;
}

.mke-concise-summary h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #E03F6A, #ff6b9d);
    border-radius: 2px;
}

.mke-summary-row {
    padding: 6px 0;
    font-size: 14px;
    color: #4a5568;
    display: flex;
    justify-content: center;
    text-align: center;
}

.mke-summary-total-row {
    margin-top: 15px;
    padding: 12px 0;
    border-top: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mke-estimate-label {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.mke-estimate-value {
    font-size: 20px;
    font-weight: 800;
    color: #E03F6A;
}

/* Field Error Messages */
.mke-field-error {
    margin-top: 12px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border: 1px solid #ef5350;
    border-radius: 8px;
    color: #c62828;
    font-size: 14px;
    font-weight: 600;
    animation: errorSlideIn 0.3s ease-out;
    position: relative;
}

.mke-field-error::before {
    content: '⚠';
    margin-right: 8px;
    font-size: 16px;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 50px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mke-calculator {
        padding: 0;
        margin: 5px;
        border-radius: 12px;
        height: 100vh;
        max-height: 100vh;
    }
    
    .mke-step {
        padding: 15px;
    }
    
    .mke-header {
        padding: 15px 15px 10px;
    }
    
    .mke-content-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mke-left-content,
    .mke-right-content {
        padding: 0;
    }
    
    .mke-header h2 {
        font-size: 20px;
    }
    
    .mke-button-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .mke-requirement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .mke-counter-group {
        align-self: flex-end;
    }
    
    .mke-navigation {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .mke-navigation button {
        width: 100%;
    }
    
    .mke-info-section {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .mke-calculator {
        margin: 5px;
        border-radius: 12px;
    }
    
    .mke-header {
        padding: 20px 15px 10px;
    }
    
    .mke-header h2 {
        font-size: 20px;
    }
    
    .mke-step {
        padding: 15px;
        min-height: 350px;
    }
    
    .mke-content-row {
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .mke-form-group {
        margin-bottom: 25px;
    }
    
    .mke-requirement-item {
        padding: 15px;
    }
}