/* ROI Calculator Styles */

:root {
    --primary-color: hsl(313, 26%, 45%);
    --primary-light: hsl(313, 26%, 65%);
    --primary-dark: hsl(313, 26%, 35%);
    --secondary-color: hsl(313, 25%, 29%);
    --secondary-light: hsl(313, 25%, 29%);
    --secondary-dark: hsl(313, 25%, 29%);
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.roi-calculator-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

/* Hero Section */
.hero-section {
    background: var(--bg-gradient);
    color: var(--text-light);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,800 1000,0 0,200"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Calculator Section */
.calculator-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.calculator-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 2px solid #f0f0f0;
}

.calculator-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.calculator-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Form Sections */
.form-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .form-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-section .section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-section .section-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-sections {
        gap: 1.5rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .form-section .section-header {
        margin-bottom: 1.5rem;
    }

    .form-section .section-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .form-section h3 {
        font-size: 1.1rem;
    }

    .input-grid {
        gap: 1.2rem;
    }
}

.current-situation {
    border-left: 5px solid #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.magenta-solution {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: inline-block;
    background: rgba(165, 93, 145, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    text-align: center;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Input Styles */


.input-group {
    position: relative;
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.input-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.input-group:hover label {
    color: var(--primary-color);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.2rem;
    transition: all 0.3s ease;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: transparent;
    transition: all 0.3s ease;
    outline: none;
}

/* Select Element Styling */
.input-wrapper select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    font-weight: 500;
}

.input-wrapper select:hover {
    border-color: var(--primary-color);
    background-color: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.input-wrapper select:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(165, 93, 145, 0.1);
    transform: translateY(-1px);
}

/* Style for the options within select */
.input-wrapper select option {
    padding: 12px;
    font-size: 1rem;
    background-color: white;
    color: #333;
    border: none;
}

/* First option (placeholder) styling */
.input-wrapper select option:first-child {
    color: #666;
    font-style: italic;
}

/* Selected option styling */
.input-wrapper select option:checked {
    background-color: var(--primary-color);
    color: white;
}

/* Specific styling for industry sector and main dropdowns */
#industry-sector,
#product-type,
#process-type,
#product,
#currency {
    background-color: #f8f9fa;
    border-width: 2px;
    font-weight: 500;
}

#industry-sector:hover,
#product-type:hover,
#process-type:hover,
#product:hover,
#currency:hover {
    background-color: white;
    border-color: var(--primary-color);
}

/* Style for disabled state */
.input-wrapper select:disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Style for when options are loading */
.input-wrapper select[data-loading="true"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='2' x2='12' y2='6'%3E%3C/line%3E%3Cline x1='12' y1='18' x2='12' y2='22'%3E%3C/line%3E%3Cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'%3E%3C/line%3E%3Cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'%3E%3C/line%3E%3Cline x1='2' y1='12' x2='6' y2='12'%3E%3C/line%3E%3Cline x1='18' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'%3E%3C/line%3E%3Cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'%3E%3C/line%3E%3C/svg%3E");
    animation: rotate 1s linear infinite;
}

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

/* Style for dropdown arrow on hover */
.input-wrapper select:hover:not(:disabled) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A55D91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Enhanced focus state */
.input-wrapper select:focus:not(:disabled) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A55D91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Dropdown open state */
.input-wrapper select:active:not(:disabled) {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(165, 93, 145, 0.1);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .input-wrapper select {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    .input-wrapper select option {
        padding: 10px;
    }
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(165, 93, 145, 0.1);
}

.input-wrapper input[readonly] {
    background: #f0f0f0;
    cursor: not-allowed;
    color: #666;
}

.input-wrapper .unit {
    padding: 0.4rem 0.8rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    background: #f0f0f0;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.input-wrapper .currency-symbol {
    font-weight: 600;
}

/* Solution Preview */
.solution-preview {
    padding: 2rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px dashed #2196f3;
    text-align: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.solution-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.preview-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.preview-icon {
    font-size: 3rem;
    opacity: 0.7;
    color: #2196f3;
}

.preview-message p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    font-style: italic;
    line-height: 1.6;
}

.solution-loading {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.solution-loading .preview-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: sparkle 1.5s infinite;
}

.solution-loading p {
    font-size: 1.2rem;
    color: #0056b3;
    margin: 10px 0;
}

.solution-loading .down-arrow {
    font-size: 2rem;
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes sparkle {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.solution-ready {
    background: linear-gradient(135deg, #e8f5e8 0%, #ffffff 100%);
    border: 2px solid #4caf50;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.solution-ready .preview-icon {
    color: #4caf50;
}

.solution-ready p {
    color: #2e7d32;
    font-weight: 500;
}

/* Recommended Machines */
.recommended-machines {
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
}

.machines-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.machines-title {
    color: #2c3e50;
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.recommended-machine {
    display: flex;
    align-items: flex-start;
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.recommended-machine:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.machine-image {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.machine-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.machine-info {
    flex: 1;
}

.machine-info h5 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.machine-info p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.machine-features {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.machine-features li {
    color: #495057;
    font-size: 0.9rem;
    padding: 4px 0 4px 24px;
    position: relative;
}

.machine-features li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
}

.machine-capacity {
    background: #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.capacity-label {
    color: #495057;
    font-size: 0.9rem;
    margin-right: 8px;
}

.capacity-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.machines-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.machines-note p {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

/* Calculator Controls */
.calculator-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.btn-calculate,
.btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-calculate {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    min-width: 200px;
}

.btn-calculate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-calculate:hover::before {
    opacity: 1;
}

.btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(165, 93, 145, 0.3);
}

.btn-reset {
    background: #f0f0f0;
    color: #666;
    min-width: 160px;
}

.btn-reset:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-calculate:active,
.btn-reset:active {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-calculate:disabled,
.btn-calculate.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.btn-calculate .btn-icon,
.btn-reset .btn-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-calculate:hover .btn-icon,
.btn-reset:hover .btn-icon {
    transform: scale(1.1);
}

/* Results Section */
.calculator-results {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 3.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

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

.results-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 2rem;
}

.results-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.results-header h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-header p {
    color: #555;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.results-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.result-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(165, 93, 145, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.result-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.result-highlight:nth-child(2) {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, #2c5282, #4299e1);
}

.result-highlight:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(165, 93, 145, 0.35);
}

.highlight-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.highlight-content {
    position: relative;
    z-index: 2;
}

.highlight-label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    opacity: 0.95;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-value {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    animation: fadeInUp 0.5s ease-out;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(165, 93, 145, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover .card-icon {
    transform: scale(1.1);
    background: var(--primary-color);
    color: white;
}

.card-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.result-card:hover .card-title {
    color: var(--primary-color);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.metric:hover {
    background: #f0f0f0;
    transform: translateX(8px);
}

.metric-label {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-value.positive {
    color: #047857;
    position: relative;
    padding-left: 20px;
}

.metric-value.positive::before {
    content: '↑';
    position: absolute;
    left: 0;
    color: #047857;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn-action {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-action.primary {
    background: var(--primary-color);
    color: white;
}

.btn-action.secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-action.tertiary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-action.primary:hover {
    background: var(--primary-light);
}

.btn-action.secondary:hover {
    background: #e0e0e0;
}

.btn-action.tertiary:hover {
    background: rgba(165, 93, 145, 0.1);
}

@media (max-width: 1200px) {
    .calculator-results {
        padding: 2.5rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-results {
        padding: 2rem;
    }
    
    .results-showcase {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-header h3 {
        font-size: 1.8rem;
    }
    
    .highlight-value {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .calculator-results {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .results-header {
        margin-bottom: 2.5rem;
    }
    
    .results-header h3 {
        font-size: 1.5rem;
    }
    
    .highlight-value {
        font-size: 2.2rem;
    }
    
    .btn-action {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .calculator-controls,
    .results-actions {
        display: none;
    }
    
    .calculator-results {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .result-highlight,
    .detail-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .highlight-value,
    .metric-value {
        color: #000 !important;
    }
}

/* ROI Calculator Namespace */
.roi-calculator-namespace {
    /* Namespace değişkenleri */
    --roi-primary-color: var(--primary-color);
    --roi-primary-light: var(--primary-light);
    --roi-primary-dark: var(--primary-dark);
    --roi-secondary-color: var(--secondary-color);
    --roi-secondary-dark: var(--secondary-dark);
    --roi-text-dark: #2c3e50;
    --roi-text-light: #6c757d;
    --roi-bg-light: #f8f9fa;
    --roi-border-color: #dee2e6;
    --roi-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --roi-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --roi-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --roi-transition: all 0.3s ease;
    --roi-radius-sm: 4px;
    --roi-radius-md: 8px;
    --roi-radius-lg: 16px;
    
    /* Namespace container */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: inherit;
    color: var(--roi-text-dark);
    box-sizing: border-box;
}

/* Tüm ROI Calculator stilleri bu namespace altında */
.roi-calculator-namespace * {
    box-sizing: border-box;
}

.roi-calculator-container {
    background: var(--roi-bg-light);
    border-radius: var(--roi-radius-lg);
    padding: 2rem;
    box-shadow: var(--roi-shadow-sm);
}

/* Form Sections */
.roi-calculator-namespace .form-section {
    background: white;
    border-radius: var(--roi-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--roi-shadow-sm);
    border: 1px solid var(--roi-border-color);
}

.roi-calculator-namespace .current-situation {
    border-left: 5px solid #dc3545;
}

.roi-calculator-namespace .magenta-solution {
    border-left: 5px solid #28a745;
}

/* Section Header */
.roi-calculator-namespace .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.roi-calculator-namespace .section-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--roi-primary-color);
    display: inline-block;
    background: rgba(165, 93, 145, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    text-align: center;
}

.roi-calculator-namespace .section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--roi-text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.roi-calculator-namespace .section-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--roi-primary-color);
    border-radius: 2px;
}

/* Input Grid */
.roi-calculator-namespace .input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.roi-calculator-namespace .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.roi-calculator-namespace .input-group label {
    font-weight: 600;
    color: var(--roi-text-dark);
    font-size: 0.9rem;
}

.roi-calculator-namespace .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.roi-calculator-namespace .input-wrapper input,
.roi-calculator-namespace .input-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--roi-border-color);
    border-radius: var(--roi-radius-md);
    font-size: 1rem;
    transition: var(--roi-transition);
    background: white;
}

.roi-calculator-namespace .input-wrapper input:focus,
.roi-calculator-namespace .input-wrapper select:focus {
    outline: none;
    border-color: var(--roi-primary-color);
    box-shadow: 0 0 0 3px rgba(165, 93, 145, 0.1);
}

.roi-calculator-namespace .input-wrapper .unit {
    position: absolute;
    right: 1rem;
    color: var(--roi-text-light);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Solution Preview */
.roi-calculator-namespace .solution-preview {
    background: var(--roi-bg-light);
    border-radius: var(--roi-radius-md);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    border: 2px dashed var(--roi-primary-color);
}

.roi-calculator-namespace .preview-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.roi-calculator-namespace .preview-icon {
    font-size: 3rem;
    color: var(--roi-primary-color);
    background: rgba(165, 93, 145, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

/* Butonlar */
.roi-calculator-namespace .btn-calculate,
.roi-calculator-namespace .btn-reset,
.roi-calculator-namespace .btn-action {
    padding: 1rem 2rem;
    border-radius: var(--roi-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--roi-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    font-size: 1rem;
    min-width: 200px;
    box-shadow: var(--roi-shadow-sm);
}

.roi-calculator-namespace .btn-calculate {
    background-color: var(--roi-primary-color);
    color: white;
}

.roi-calculator-namespace .btn-reset {
    background-color: var(--roi-bg-light);
    color: var(--roi-text-dark);
    border: 1px solid var(--roi-border-color);
}

.roi-calculator-namespace .btn-action.primary {
    background-color: var(--roi-primary-color);
    color: white;
}

.roi-calculator-namespace .btn-action.secondary {
    background-color: var(--roi-secondary-color);
    color: white;
}

.roi-calculator-namespace .btn-action.tertiary {
    background-color: #28a745;
    color: white;
}

/* Hover Efektleri */
.roi-calculator-namespace .btn-calculate:hover,
.roi-calculator-namespace .btn-action.primary:hover {
    background-color: var(--roi-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--roi-shadow-md);
}

.roi-calculator-namespace .btn-reset:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: var(--roi-shadow-sm);
}

.roi-calculator-namespace .btn-action.secondary:hover {
    background-color: var(--roi-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--roi-shadow-md);
}

.roi-calculator-namespace .btn-action.tertiary:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: var(--roi-shadow-md);
}

/* Sonuçlar Bölümü */
.roi-calculator-namespace .calculator-results {
    background: white;
    border-radius: var(--roi-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--roi-shadow-sm);
    border: 1px solid var(--roi-border-color);
}

.roi-calculator-namespace .results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.roi-calculator-namespace .results-header h3 {
    font-size: 1.8rem;
    color: var(--roi-primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.roi-calculator-namespace .result-highlight {
    background: var(--roi-primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--roi-radius-lg);
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: var(--roi-shadow-md);
}

.roi-calculator-namespace .highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

.roi-calculator-namespace .detail-card {
    background: white;
    border-radius: var(--roi-radius-md);
    padding: 1.5rem;
    box-shadow: var(--roi-shadow-sm);
    border: 1px solid var(--roi-border-color);
    margin-bottom: 1rem;
}

.roi-calculator-namespace .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--roi-border-color);
}

.roi-calculator-namespace .card-icon {
    font-size: 1.8rem;
    color: var(--roi-primary-color);
    background: rgba(165, 93, 145, 0.1);
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    text-align: center;
}

.roi-calculator-namespace .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--roi-bg-light);
    border-radius: var(--roi-radius-sm);
    margin-bottom: 0.5rem;
}

.roi-calculator-namespace .metric-value.positive {
    color: #28a745;
    font-weight: 800;
}

.roi-calculator-namespace .metric-value.positive::before {
    content: '+';
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .roi-calculator-namespace {
        padding: 1rem;
    }
    
    .roi-calculator-namespace .input-grid {
        grid-template-columns: 1fr;
    }
    
    .roi-calculator-namespace .btn-calculate,
    .roi-calculator-namespace .btn-reset,
    .roi-calculator-namespace .btn-action {
        width: 100%;
        min-width: unset;
    }
    
    .roi-calculator-namespace .calculator-controls,
    .roi-calculator-namespace .results-actions {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .roi-calculator-namespace .calculator-controls,
    .roi-calculator-namespace .results-actions {
        display: none;
    }
    
    .roi-calculator-namespace .calculator-results {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .roi-calculator-namespace .result-highlight,
    .roi-calculator-namespace .detail-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .roi-calculator-namespace .highlight-value,
    .roi-calculator-namespace .metric-value {
        color: #000 !important;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.result-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    font-size: 1.5rem;
}

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

.card-content {
    padding: 1.25rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.metric:last-child {
    border-bottom: none;
}

.metric-label {
    color: #495057;
    font-size: 0.95rem;
}

.metric-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.metric-value.positive {
    color: #28a745;
}

.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action.primary {
    background-color: #007bff;
    color: white;
}

.btn-action.secondary {
    background-color: #6c757d;
    color: white;
}

.btn-action.tertiary {
    background-color: #28a745;
    color: white;
}

.btn-action:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
}

.preview-message.warning {
    background: #fff3cd;
    border: 2px solid #ffeeba;
    padding: 1.5rem;
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
}

.preview-message.warning .preview-icon {
    color: #856404;
    background: rgba(133, 100, 4, 0.1);
}

.preview-message.warning p {
    color: #856404;
    font-weight: 500;
}

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

/* Consent Group Styles */
.consent-group {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.consent-item:hover {
    background: #f0f0f0;
}

.consent-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-top: 0.2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.consent-item input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.consent-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.8rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.consent-item input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(165, 93, 145, 0.1);
}

.consent-item label {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
    cursor: pointer;
}

.consent-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.consent-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .consent-group {
        padding: 1rem;
    }
    
    .consent-item label {
        font-size: 0.85rem;
    }
}

.solution-error {
    background: linear-gradient(135deg, #fee8e8 0%, #ffffff 100%);
    border: 2px solid #dc3545;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
}

.solution-error .preview-icon {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.solution-error p {
    color: #842029;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.solution-error strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.form-section select,
#industry-sector,
#product-type,
#process-type,
#product,
#currency {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    color: #333;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    font-weight: 500;
}

.form-section select:hover,
#industry-sector:hover,
#product-type:hover,
#process-type:hover,
#product:hover,
#currency:hover {
    border-color: var(--primary-color);
    background-color: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-section select:focus,
#industry-sector:focus,
#product-type:focus,
#process-type:focus,
#product:focus,
#currency:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(165, 93, 145, 0.1);
    transform: translateY(-1px);
}

/* Style for the options */
.form-section select option,
#industry-sector option,
#product-type option,
#process-type option,
#product option,
#currency option {
    padding: 12px;
    font-size: 1rem;
    background-color: white;
    color: #333;
    border: none;
}

/* First option (placeholder) */
.form-section select option:first-child,
#industry-sector option:first-child,
#product-type option:first-child,
#process-type option:first-child,
#product option:first-child,
#currency option:first-child {
    color: #666;
    font-style: italic;
}

/* Selected option */
.form-section select option:checked,
#industry-sector option:checked,
#product-type option:checked,
#process-type option:checked,
#product option:checked,
#currency option:checked {
    background-color: var(--primary-color);
    color: white;
}

/* Disabled state */
.form-section select:disabled,
#industry-sector:disabled,
#product-type:disabled,
#process-type:disabled,
#product:disabled,
#currency:disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading state */
.form-section select[data-loading="true"],
#industry-sector[data-loading="true"],
#product-type[data-loading="true"],
#process-type[data-loading="true"],
#product[data-loading="true"],
#currency[data-loading="true"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='2' x2='12' y2='6'%3E%3C/line%3E%3Cline x1='12' y1='18' x2='12' y2='22'%3E%3C/line%3E%3Cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'%3E%3C/line%3E%3Cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'%3E%3C/line%3E%3Cline x1='2' y1='12' x2='6' y2='12'%3E%3C/line%3E%3Cline x1='18' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'%3E%3C/line%3E%3Cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'%3E%3C/line%3E%3C/svg%3E");
    animation: rotate 1s linear infinite;
}

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

/* Hover arrow color */
.form-section select:hover:not(:disabled),
#industry-sector:hover:not(:disabled),
#product-type:hover:not(:disabled),
#process-type:hover:not(:disabled),
#product:hover:not(:disabled),
#currency:hover:not(:disabled) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A55D91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Mobile optimization */
@media (max-width: 768px) {
    .form-section select,
    #industry-sector,
    #product-type,
    #process-type,
    #product,
    #currency {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
} 