@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Barlow:wght@300;400;500;600&display=swap');

.nexs-calculator {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 30px;
    font-family: 'Barlow', sans-serif;
    color: #1a1a1a;
    line-height: 1.8;
}

.nexs-calculator h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 50px;
    color: #000000;
    letter-spacing: -0.5px;
}

.nexs-calculator h3 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    margin: 50px 0 30px;
    color: #000000;
    letter-spacing: -0.5px;
}

.nexs-form-section {
    margin-bottom: 40px;
}

.nexs-form-group {
    margin-bottom: 30px;
}

.nexs-form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 400;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.6;
}

.nexs-form-group input[type="number"],
.nexs-form-group input[type="text"],
.nexs-form-group input[type="email"],
.nexs-form-group input[type="tel"],
.nexs-form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Barlow', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #1a1a1a;
}

.nexs-form-group input:focus,
.nexs-form-group textarea:focus {
    outline: none;
    border-color: #08dff0;
    box-shadow: 0 0 0 3px rgba(8, 223, 240, 0.1);
}

.nexs-checkbox-group,
.nexs-radio-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.nexs-checkbox-group label,
.nexs-radio-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
    padding: 0;
    transition: opacity 0.2s;
    font-size: 18px;
    line-height: 1.6;
}

.nexs-checkbox-group label:hover,
.nexs-radio-group label:hover {
    opacity: 0.7;
}

.nexs-checkbox-group input[type="checkbox"],
.nexs-radio-group input[type="radio"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.nexs-error {
    color: #e74c3c;
    font-size: 16px;
    margin-top: 8px;
    display: block;
}

.nexs-result-section {
    margin-top: 60px;
    padding-top: 40px;
}

.nexs-calculation-item {
    margin-bottom: 35px;
    line-height: 1.8;
}

.nexs-calc-title {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.4;
}

.nexs-calc-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 6px;
    gap: 2px;
}

.nexs-calc-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.3;
    align-self: flex-start;
}

.nexs-calc-value {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
    text-align: right;
    line-height: 1.3;
}

.nexs-calc-description {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin-top: 6px;
}

.nexs-calculation-total {
    margin: 50px 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.nexs-total-label {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    text-align: right;
}

.nexs-total-value {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    text-align: right;
}

.nexs-success-note {
    margin: 40px 0;
    padding: 0;
    background: transparent;
    border: none;
}

.nexs-success-note p {
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.6;
}

.nexs-success-note a {
    color: #000000;
    font-weight: 400;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.nexs-success-note a:hover {
    opacity: 0.7;
}

.nexs-btn {
    padding: 16px 40px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Barlow', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
    color: #000000;
    text-transform: none;
    letter-spacing: 0;
}

.nexs-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
}

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

.nexs-btn:disabled:hover {
    background: transparent;
    color: #000000;
}

.nexs-quote-section {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #e0e0e0;
}

.nexs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nexs-message {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
}

.nexs-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.nexs-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

@media (max-width: 768px) {
    .nexs-calculator {
        padding: 40px 20px;
    }

    .nexs-calculator h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .nexs-calculator h3 {
        font-size: 28px;
        margin: 40px 0 25px;
    }

    .nexs-form-row {
        grid-template-columns: 1fr;
    }

    .nexs-form-group label,
    .nexs-success-note p {
        font-size: 16px;
    }

    .nexs-calc-title {
        font-size: 18px;
    }

    .nexs-calc-subtitle {
        font-size: 15px;
    }

    .nexs-calc-value {
        font-size: 18px;
    }

    .nexs-calc-description {
        font-size: 14px;
    }

    .nexs-total-label,
    .nexs-total-value {
        font-size: 18px;
    }

    .nexs-calc-row {
        align-items: flex-end;
        gap: 4px;
    }
}
