@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@300;400;500;600;700&display=swap');
:root {
    --primary: #da7125;
    --primary-dark: #a74b08;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}
.remont-calculator-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    font-family: 'Noto Sans Georgian', sans-serif;
    overflow: hidden;
    position: relative;
}
.calculator-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.calculator-header.animate {
    animation: fadeInDown 0.8s ease-out;
}
.calculator-header:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.header-content h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-subtitle {
    margin: 20px 0 0;
    font-size: 20px;
    opacity: 0.9;
    font-weight: 500;
}
.calculator-steps {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: var(--light);
    border-bottom: 2px solid var(--gray-200);
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    flex: 1;
    margin: 0 10px;
    text-align: center;
}
.step.animate {
    animation: fadeInUp 0.6s ease-out;
}
.step.active {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--gray-300);
    color: var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.step.active .step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}
.step-title {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 16px;
    transition: color 0.3s ease;
}
.step.active .step-title {
    color: var(--primary-dark);
}
.calculator-content {
    padding: 40px;
    background: white;
}
.form-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}
.form-section.active {
    display: block;
}
.form-section h2 {
    color: var(--dark);
    margin-bottom: 30px;
    font-size: 19px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 15px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.required {
    color: var(--danger);
    font-size: 20px;
}
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Noto Sans Georgian', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.choice-grid {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}
.choice-card {
    display: block;
    padding: 25px;
    border: 2px solid var(--gray-300);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}
.choice-card input[type="radio"] {
    display: none;
}
.choice-card input[type="radio"]:checked + .choice-content {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}
.choice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.choice-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    transition: color 0.3s ease;
}
.choice-card input[type="radio"]:checked + .choice-content .choice-title {
    color: #1f293b;
    background: #fff;
}
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}
.btn {
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Georgian', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #a74b08);
}
.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #475569, #334155);
}
.btn-success {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 20px 40px;
    font-size: 20px;
    min-width: 250px;
}
.btn-success:hover {
    background: linear-gradient(135deg, var(--secondary-dark), #047857);
}
.btn-callback {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 22px 44px;
    font-size: 22px;
    min-width: 300px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}
.btn-callback:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.btn-icon {
    font-size: 24px;
}
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}
.loader-content {
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    max-width: 500px;
    animation: pulse 2s infinite;
}
.loader h3 {
    color: var(--dark);
    font-size: 28px;
    margin: 20px 0 10px;
    font-weight: 700;
}
.loader p {
    color: var(--gray-600);
    font-size: 18px;
    margin: 0;
}
.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid var(--gray-200);
    border-top: 8px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.result-section {
    background: white;
    padding: 0;
    border-radius: 0 0 20px 20px;
    margin-top: 0;
    animation: fadeInUp 0.8s ease-out;
}
.result-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
}
.result-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.result-header p {
    margin: 20px 0 0;
    font-size: 22px;
    opacity: 0.9;
    font-weight: 500;
}
.result-body {
    padding: 60px 40px;
}
.cost-summary {
    background: var(--light);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 60px;
    border: 2px solid var(--gray-200);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    border-bottom: 2px dashed var(--gray-300);
    font-size: 20px;
    align-items: center;
}
.cost-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cost-item.highlight {
    padding-bottom: 30px;
    border-bottom: 3px solid var(--secondary);
    margin-bottom: 30px;
}
.cost-label {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 18px;
}
.cost-value {
    color: #d96e15;
    font-weight: 600;
    font-size: 20px;
}
.materials-section {
    margin-bottom: 60px;
}
.materials-section h3 {
    color: var(--primary-dark);
    margin-bottom: 40px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    justify-content: center;
}
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.table-header {
    display: flex;
    background: #d96e15;
    color: white;
    font-weight: 600;
    font-size: 16px;
}
.table-cell {
    flex: 1;
    padding: 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.table-cell:last-child {
    border-right: none;
}
.table-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}
.table-row:hover {
    background: #f8fafc;
}
.table-row:nth-child(even) {
    background: #f8fafc;
}
.table-row:last-child {
    border-bottom: none;
}
.action-buttons {
    text-align: center;
    margin-top: 50px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    padding: 50px 0;
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    position: relative;
    font-family: 'Noto Sans Georgian', sans-serif;
    animation: modalOpen 0.5s ease-out;
}
@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.close {
    color: var(--gray-500);
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--gray-100);
    border: none;
}
.close:hover {
    color: var(--danger);
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}
.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}
.modal-header h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}
.modal-header p {
    margin: 15px 0 0;
    font-size: 18px;
    opacity: 0.9;
}
.modal-body {
    padding: 40px;
}
.modal-body .form-group {
    margin-bottom: 30px;
}
.modal-body .form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 18px;
}
.modal-body .form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font-size: 18px;
    font-family: 'Noto Sans Georgian', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}
.modal-body .form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.modal-body .btn {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    margin-top: 20px;
    border-radius: 12px;
}
#callback-message, #email-message {
    margin-top: 30px;
    text-align: center;
    font-weight: 600;
    min-height: 28px;
    font-size: 20px;
    padding: 15px;
    border-radius: 10px;
}
input.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: shake 0.5s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.btn-pdf {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}
.btn-pdf:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}
.btn-email {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
}
.btn-email:hover {
    background: linear-gradient(135deg, #db2777, #be185d);
}
@media (max-width: 768px) {
    .remont-calculator-container {
        margin: 20px;
        border-radius: 16px;
    }
    .calculator-header,
    .result-header {
        padding: 40px 20px;
    }
    .calculator-header h1,
    .result-header h2 {
        font-size: 32px;
    }
    .header-subtitle {
        font-size: 18px;
    }
    .calculator-steps {
        padding: 20px;
        flex-wrap: wrap;
    }
    .step {
        margin: 5px;
        padding: 15px;
    }
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .step-title {
        font-size: 14px;
    }
    .calculator-content {
        padding: 30px 20px;
    }
    .form-section h2 {
        font-size: 19px;
    }
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .choice-grid {
        grid-template-columns: 1fr;
    }
    .choice-card {
        padding: 20px;
    }
    .choice-title {
        font-size: 15px;
    }
    .btn {
        min-width: auto;
        padding: 16px 28px;
        font-size: 16px;
        border-radius: 12px;
    }
    .btn-success {
        padding: 18px 32px;
        font-size: 18px;
        min-width: 200px;
    }
    .btn-callback {
        padding: 20px 36px;
        font-size: 20px;
        min-width: 250px;
    }
    .result-body {
        padding: 40px 20px;
    }
    .cost-summary {
        padding: 30px;
    }
    .cost-item {
        padding: 20px 0;
    }
    .cost-label {
        font-size: 18px;
    }
    .cost-value {
        font-size: 22px;
    }
    .materials-section h3 {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .results-table {
        font-size: 14px;
    }
    .table-cell {
        padding: 12px 8px;
    }
}
@media (max-width: 480px) {
    .step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 100%;
    }
}

label.choice-card.active {
	border-color: #d96e15;
}