@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Gelasio:ital,wght@0,400..700;1,400..700&display=swap");

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

        body {
            background: #f8f6f3;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
            font-family: 'Playfair Display', serif;
        }

        body::before {
            content: '';
            position: fixed;
            top: -50%;
            right: -20%;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(92, 153, 209, 0.08) 0%, transparent 70%);
            border-radius: 50%;
            animation: float 20s ease-in-out infinite;
            pointer-events: none;
        }

        body::after {
            content: '';
            position: fixed;
            bottom: -40%;
            left: -10%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255, 140, 66, 0.06) 0%, transparent 70%);
            border-radius: 50%;
            animation: float 15s ease-in-out infinite reverse;
            pointer-events: none;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(30px, 30px) scale(1.1); }
        }

        .container {
            width: 100%;
            max-width: 720px;
            background: white;
            border-radius: 0px;
            box-shadow: none;
            border: 1px solid #e8e5e1;
            overflow: hidden;
            animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            z-index: 1;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .progress-container {
            padding: 48px 48px 32px;
            background: #ffffff;
            position: relative;
            border-bottom: 1px solid #e8e5e1;
        }

        .progress-container::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 48px;
            right: 48px;
            height: 1px;
            background: #e8e5e1;
        }

        .progress-steps {
            display: flex;
            justify-content: space-between;
            margin-bottom: 24px;
            position: relative;
        }

        .progress-steps::before {
            content: '';
            position: absolute;
            top: 24px;
            left: 36px;
            right: 36px;
            height: 2px;
            background: #e8e5e1;
            z-index: 0;
        }

        .progress-line {
            position: absolute;
            top: 24px;
            left: 36px;
            height: 2px;
            background: linear-gradient(90deg, #5c99d1 0%, #ff8c42 100%);
            transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .step-circle {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: white;
            border: 2px solid #e8e5e1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 16px;
            color: #bbb;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: 'Gelasio', serif;
            position: relative;
        }

        .step-circle::before {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            background: #5c99d1;
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: -1;
        }

        .step.active .step-circle {
            background: #ff8c42;
            border-color: transparent;
            color: white;
            transform: scale(1.15);
            box-shadow: 0 4px 12px rgba(255, 140, 66, 0.25);
        }

        .step.active .step-circle::before {
            opacity: 0.2;
            animation: pulse 2s ease-in-out infinite;
        }

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

        .step.completed .step-circle {
            background: #5c99d1;
            border-color: transparent;
            color: white;
            transform: scale(1);
        }

        .step.completed .step-circle::after {
            content: '✓';
            position: absolute;
            font-size: 18px;
        }

        .step-label {
            margin-top: 14px;
            font-size: 13px;
            font-weight: 600;
            color: #bbb;
            transition: all 0.3s ease;
            letter-spacing: 0.3px;
            font-family: 'Playfair Display', serif;
        }

        .step.active .step-label {
            color: #ff8c42;
        }

        .step.completed .step-label {
            color: #666;
        }

        .form-content {
            padding: 48px;
            min-height: 500px;
        }

        .form-step {
            display: none;
            animation: fadeInSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

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

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

        h2 {
            font-family: 'Gelasio', serif;
            font-size: 32px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 10px;
            letter-spacing: -0.02em;
        }

        .step-description {
            color: #4a4a4a;
            margin-bottom: 36px;
            font-size: 15px;
            line-height: 1.7;
            font-family: 'Playfair Display', serif;
        }

        .step-description a {
            color: #5c99d1;
            text-decoration: none;
            font-weight: 600;
        }

        .step-description a:hover {
            color: #ff8c42;
        }

        .form-group {
            margin-bottom: 26px;
            position: relative;
        }

        label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #1a1a1a;
            font-size: 14px;
            letter-spacing: 0.2px;
            font-family: 'Playfair Display', serif;
        }

        .input-wrapper {
            position: relative;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="password"],
        input[type="number"],
        textarea,
        select {
            width: 100%;
            padding: 16px 18px;
            border: 1px solid #e8e5e1;
            border-radius: 0px;
            font-size: 15px;
            font-family: 'Playfair Display', serif;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            background: #fafaf9;
            color: #1a1a1a;
        }

        input:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #5c99d1;
            background: white;
            box-shadow: 0 0 0 1px #5c99d1;
        }

        textarea {
            resize: vertical;
            min-height: 130px;
        }

        .button-group {
            display: flex;
            gap: 14px;
            margin-top: 40px;
        }

        button {
            flex: 1;
            padding: 18px 28px;
            border: none;
            border-radius: 0px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            font-family: 'Playfair Display', serif;
            letter-spacing: 0.3px;
        }

        .btn-next {
            background: #5c99d1;
            color: white;
            border: 1px solid #5c99d1;
            position: relative;
            overflow: hidden;
        }

        .btn-next::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .btn-next:hover {
            background: #03367a;
            border-color: #03367a;
            transform: translateY(-2px);
        }

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

        .btn-next:active {
            transform: translateY(-1px);
        }

        .btn-prev {
            background: white;
            color: #666;
            border: 1px solid #e8e5e1;
        }

        .btn-prev:hover {
            border-color: #5c99d1;
            color: #5c99d1;
            background: #fafaf9;
            transform: translateY(-2px);
        }

        .success-message {
            text-align: center;
            padding: 80px 20px;
        }

        .success-icon {
            width: 96px;
            height: 96px;
            margin: 0 auto 28px;
            background: #5c99d1;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 52px;
            animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 8px 24px rgba(92, 153, 209, 0.3);
            position: relative;
        }

        .success-icon::before {
            content: '';
            position: absolute;
            inset: -8px;
            border-radius: 50%;
            background: #5c99d1;
            opacity: 0.2;
            animation: successPulse 2s ease-in-out infinite;
        }

        @keyframes successPop {
            0% {
                transform: scale(0) rotate(-180deg);
                opacity: 0;
            }
            50% {
                transform: scale(1.1) rotate(10deg);
            }
            100% {
                transform: scale(1) rotate(0deg);
                opacity: 1;
            }
        }

        @keyframes successPulse {
            0%, 100% { transform: scale(1); opacity: 0.2; }
            50% { transform: scale(1.5); opacity: 0; }
        }

        .success-title {
            font-size: 36px;
            margin-bottom: 14px;
            font-family: 'Gelasio', serif;
            color: #1a1a1a;
        }

        .success-text {
            color: #4a4a4a;
            font-size: 16px;
            line-height: 1.6;
            font-family: 'Playfair Display', serif;
        }

        .review-card {
            background: #fafaf9;
            border: 1px solid #e8e5e1;
            border-radius: 0px;
            padding: 24px;
            margin-bottom: 16px;
        }

        .review-card label {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #999;
            margin-bottom: 8px;
            font-family: 'Playfair Display', serif;
        }

        .review-card-value {
            font-size: 15px;
            color: #1a1a1a;
            font-weight: 500;
            font-family: 'Playfair Display', serif;
        }

        .form-step[data-step="4"] .button-group {
            margin-top: 40px;
            position: relative;
            z-index: 10;
            display: flex !important;
        }

        #reviewContent {
            max-height: 400px;
            overflow-y: auto;
            margin-bottom: 24px;
        }

        @media (max-width: 640px) {
            .container {
                border-radius: 0px;
            }
            
            .progress-container,
            .form-content {
                padding: 32px 24px;
            }

            h2 {
                font-size: 26px;
            }

            .step-label {
                font-size: 11px;
            }

            .step-circle {
                width: 42px;
                height: 42px;
            }

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

            button {
                width: 100%;
            }
        }