* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
.left-panel::-webkit-scrollbar,
.right-panel::-webkit-scrollbar {
    width: 6px;
}

.left-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.left-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.left-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.right-panel::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
}

.right-panel::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.2);
    border-radius: 3px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.3);
}

:root {
    --primary-purple: #667eea;
    --secondary-purple: #764ba2;
    --accent-cyan: #00d9ff;
    --dark-bg: #2d3748;
    --darker-bg: #1a202c;
    --light-text: #ffffff;
    --gray-text: #a0aec0;
    --yellow-highlight: #fbbf24;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.main-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 30px);
    height: auto;
}

/* LEFT PANEL */
.left-panel {
    background: var(--darker-bg);
    color: var(--light-text);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 30px);
}

.logo-section {
    text-align: left;
}

.logo {
    margin-bottom: 20px;
}

.logo svg {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.left-panel h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.subtitle {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.5;
}

.info-box {
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid var(--primary-purple);
    padding: 15px;
    border-radius: 8px;
}

.info-box h2 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.highlight {
    background: var(--yellow-highlight);
    color: var(--darker-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.steps-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 10px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-text);
}

.legal-notice {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light-text);
}

.legal-text {
    font-size: 10px;
    line-height: 1.5;
    color: var(--gray-text);
}

/* RIGHT PANEL - FORM */
.right-panel {
    background: linear-gradient(135deg, #f7fafc 0%, #ffffff 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    gap: 25px;
    overflow-y: auto;
    max-height: calc(100vh - 30px);
}

.right-panel::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.right-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Info Banner */
.info-banner {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
    animation: slideDown 0.6s ease-out;
}

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

.info-banner-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.info-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: scale(1.05);
}

.info-item svg {
    flex-shrink: 0;
    stroke: var(--primary-purple);
    animation: pulse 2s ease-in-out infinite;
}

.info-item:nth-child(1) svg {
    animation-delay: 0s;
}

.info-item:nth-child(2) svg {
    animation-delay: 0.3s;
}

.info-item:nth-child(3) svg {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.info-item span {
    white-space: nowrap;
}

#devisForm {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.radio-card {
    animation: slideInRight 0.4s ease-out backwards;
}

.radio-card:nth-child(1) { animation-delay: 0.1s; }
.radio-card:nth-child(2) { animation-delay: 0.15s; }
.radio-card:nth-child(3) { animation-delay: 0.2s; }
.radio-card:nth-child(4) { animation-delay: 0.25s; }

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--darker-bg);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 12px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--accent-cyan) 100%);
    border-radius: 2px;
}

.form-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 500;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.radio-card {
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.radio-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    border-radius: 10px;
    color: var(--primary-purple);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.radio-card:hover .radio-icon {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    transform: scale(1.05);
}

.radio-card input[type="radio"]:checked + .radio-content .radio-icon {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.radio-card:hover .radio-content {
    border-color: var(--primary-purple);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(0, 217, 255, 0.04) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-card input[type="radio"]:checked + .radio-content .radio-circle {
    border-color: var(--primary-purple);
}

.radio-card input[type="radio"]:checked + .radio-content .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--primary-purple);
    border-radius: 50%;
}

.radio-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--darker-bg);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-card {
    display: block;
    cursor: pointer;
    animation: slideInRight 0.4s ease-out backwards;
}

.checkbox-card:nth-child(1) { animation-delay: 0.1s; }
.checkbox-card:nth-child(2) { animation-delay: 0.15s; }
.checkbox-card:nth-child(3) { animation-delay: 0.2s; }
.checkbox-card:nth-child(4) { animation-delay: 0.25s; }
.checkbox-card:nth-child(5) { animation-delay: 0.3s; }
.checkbox-card:nth-child(6) { animation-delay: 0.35s; }

.checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    min-height: 120px;
    position: relative;
}

.checkbox-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    border-radius: 10px;
    color: var(--primary-purple);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.checkbox-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-card-check svg {
    stroke: white;
}

.checkbox-card:hover .checkbox-card-content {
    border-color: var(--primary-purple);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.checkbox-card:hover .checkbox-card-icon {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    transform: scale(1.1);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-content {
    border-color: var(--primary-purple);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(0, 217, 255, 0.04) 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-content .checkbox-card-icon {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-content .checkbox-card-check {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    border-color: var(--primary-purple);
}

.checkbox-card-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--darker-bg);
    text-align: center;
    line-height: 1.3;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--darker-bg);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.checkbox-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
    transform: translateY(-1px);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.checkbox-item span {
    font-size: 14px;
    color: var(--darker-bg);
}

.checkbox-item.consent {
    grid-column: 1 / -1;
    background: rgba(102, 126, 234, 0.05);
    border-color: var(--primary-purple);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-next,
.btn-prev,
.btn-submit {
    padding: 18px 36px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-next,
.btn-submit {
    background: var(--primary-purple);
    color: white;
    flex: 1;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--secondary-purple);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.35);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.25);
}

.btn-prev {
    background: white;
    color: var(--darker-bg);
    border: 2px solid #e2e8f0;
}

.btn-prev:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--accent-cyan) 100%);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 20%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.progress-text {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.progress-text span {
    color: var(--primary-purple);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .left-panel {
        padding: 30px;
    }

    .right-panel {
        padding: 40px 30px;
    }

    .steps-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .step-item {
        flex: 1;
        min-width: 200px;
    }

    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .main-wrapper {
        border-radius: 15px;
    }

    .left-panel {
        padding: 25px;
    }

    .right-panel {
        padding: 30px 20px;
        gap: 20px;
    }

    .info-banner-content {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .info-item {
        width: 100%;
        justify-content: center;
    }

    .form-title {
        font-size: 24px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-prev {
        order: 2;
    }

    .btn-next,
    .btn-submit {
        order: 1;
    }

    .radio-icon {
        width: 36px;
        height: 36px;
    }

    .radio-icon svg {
        width: 20px;
        height: 20px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkbox-card-content {
        min-height: 120px;
        padding: 20px 16px;
    }

    .checkbox-card-icon {
        width: 44px;
        height: 44px;
    }

    .checkbox-card-label {
        font-size: 14px;
    }
}
