.roi-calculator-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.roi-calculator-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    border: 2px solid #3498db;
}

.roi-calculator-wrapper h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
}

.calculator-form {
    margin: 20px 0;
}

.calculator-section {
    margin-bottom: 35px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.calculator-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calculator-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.calculator-row.full-width {
    grid-template-columns: 1fr;
}

.calculator-input-group {
    display: flex;
    flex-direction: column;
}

.calculator-input-group label {
    margin-bottom: 10px;
    color: #34495e;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #3498db;
    color: #ffffff;
    font-size: 12px;
    cursor: help;
    position: relative;
    flex-shrink: 0;
    font-weight: normal;
    line-height: 1;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 10px 15px;
    background-color: #2c3e50;
    color: #ffffff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: normal;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 400px;
    max-width: 400px;
    white-space: normal;
    text-align: left;
    line-height: 1.4;
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    z-index: 1001;
}

.calculator-input-group input[type="number"],
.calculator-input-group input[type="text"],
.calculator-input-group select {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 17px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.number-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.number-input-wrapper input[type="number"] {
    flex: 1;
    margin: 0;
}

.number-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #3498db;
    background: #ffffff;
    color: #3498db !important;
    border-radius: 6px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.number-btn:hover {
    background: #3498db;
    color: #ffffff !important;
    transform: scale(1.05);
}

.number-btn:active {
    transform: scale(0.95);
}

.calculator-input-group input[type="number"]:focus,
.calculator-input-group input[type="text"]:focus,
.calculator-input-group select:focus {
    outline: none;
    border-color: #3498db;
}

.calculator-select {
    width: 100%;
}

.calculated-value {
    padding: 12px 15px;
    background: #e8f4f8;
    border: 2px solid #b8dce8;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    min-height: 20px;
}

.calculated-value.large {
    font-size: 22px;
    padding: 15px 20px;
}

.calculated-value.highlighted-field {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border: 2px solid #2980b9;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.calculated-value.highlighted-field.large {
    font-size: 26px;
    padding: 18px 25px;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #3498db;
    background: #ffffff;
    color: #3498db !important;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.slider-btn:hover {
    background: #3498db;
    color: #ffffff !important;
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-input {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    appearance: none;
    margin: 0;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

.slider-input.large {
    height: 12px;
}

.slider-input.large::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
}

.slider-input.large::-moz-range-thumb {
    width: 28px;
    height: 28px;
}

.licence-info {
    padding: 20px;
    background: #e8f4f8;
    border: 2px solid #b8dce8;
    border-radius: 8px;
    margin-top: 10px;
}

.licence-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.licence-description {
    font-size: 16px;
    color: #34495e;
    line-height: 1.5;
}

.slider-value {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 5px;
}

.calculator-results {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #ffffff;
}

.calculator-results h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.result-label .tooltip-icon {
    width: 18px;
    height: 18px;
    font-size: 11px;
}

.result-value {
    font-size: 20px;
    font-weight: 700;
}

.result-value.highlight {
    font-size: 28px;
    color: #f1c40f;
}

.contact-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.contact-section {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border: 2px solid #b3d9ff;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
}

.contact-section h3 {
    color: #1e3a5f;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 2px solid #1e3a5f;
    padding-bottom: 10px;
}

.contact-intro {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    font-style: italic;
}

.contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-section .form-group {
    margin-bottom: 0;
}

.contact-section .submit-button {
    margin-top: 10px;
    align-self: flex-start;
}

.contact-form-wrapper h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 500;
    font-size: 16px;
}

.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #3498db;
}

.form-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.submit-button {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.hidden-field {
    display: none;
}

/* Poznámka sekce */
.note-section {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 35px;
}

.note-section h3 {
    color: #856404;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #856404;
    padding-bottom: 10px;
}

.note-content {
    color: #856404;
    line-height: 1.6;
}

.note-content p {
    margin-bottom: 15px;
}

.note-content strong {
    font-weight: 600;
}

.note-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.note-content li {
    margin-bottom: 5px;
}


@media (max-width: 768px) {
    .roi-calculator-container {
        margin: 20px auto;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .roi-calculator-wrapper,
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .roi-calculator-wrapper h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .contact-form-wrapper h3 {
        font-size: 20px;
    }
    
    .calculator-section,
    .contact-section {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .calculator-section h3,
    .contact-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .calculator-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .calculator-input-group label {
        font-size: 14px;
    }
    
    .tooltip-icon {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
    
    .tooltip-icon:hover::after {
        width: 300px;
        max-width: 300px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .result-label .tooltip-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .calculator-input-group input[type="number"],
    .calculator-input-group input[type="text"],
    .calculator-input-group select {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .number-input-wrapper {
        gap: 8px;
    }
    
    .number-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-wrapper {
        gap: 10px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-value {
        font-size: 16px;
    }
    
    .calculated-value {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .calculated-value.large {
        font-size: 18px;
        padding: 12px 15px;
    }
    
    .licence-title {
        font-size: 20px;
    }
    
    .licence-description {
        font-size: 14px;
    }
    
    .calculator-results {
        padding: 20px;
    }
    
    .calculator-results h3 {
        font-size: 20px;
    }

    .result-label {
        font-size: 14px;
    }

    .result-value {
        font-size: 18px;
    }

    .result-value.highlight {
        font-size: 22px;
    }

    .contact-section {
        padding: 20px;
    }

    .contact-section h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .contact-intro {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .contact-form-fields {
        gap: 15px;
    }

    .contact-section .submit-button {
        align-self: stretch;
    }

    .submit-button {
        width: 100%;
        max-width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .roi-calculator-container {
        padding: 0 10px;
    }

    .roi-calculator-wrapper,
    .contact-form-wrapper {
        padding: 15px;
    }

    .roi-calculator-wrapper h2 {
        font-size: 20px;
    }

    .calculator-section {
        padding: 15px;
    }

    .contact-section {
        padding: 15px;
    }

    .contact-section h3 {
        font-size: 16px;
    }

    .contact-intro {
        font-size: 13px;
    }

    .number-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

.calculator-section .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

/* Skrytie pôvodného checkboxu */
.calculator-section .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Vlastný checkbox */
.calculator-section .checkbox-label .checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;           
    height: 24px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Hover efekt */
.calculator-section .checkbox-label:hover .checkmark {
    border-color: #3498db;
}

/* Keď je zaškrtnuté */
.calculator-section .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

/* "Fajka" */
.calculator-section .checkbox-label .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 8px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Zobrazenie fajky keď je checkbox zaškrtnutý */
.calculator-section .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

/* Validation errors box */
.validation-errors {
    margin-top: 15px;
    border: 1px solid #dc3545;
    border-radius: 8px;
    background-color: #f8d7da;
    color: #721c24;
    overflow: hidden;
}

.validation-errors-content {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    gap: 10px;
}

.validation-errors-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.validation-errors-text {
    flex: 1;
}

.validation-errors-text strong {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.validation-errors-list {
    margin: 0;
    padding-left: 20px;
}

.validation-errors-list li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Animation for showing validation errors */
.validation-errors.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}
