:root {
    --primary-purple: #0280c6;
    --primary-pink: #ec4899;
    --primary-blue: #3b82f6;
    --light-gradient: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 50%, #e0f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

/* Enhanced Floating Shapes */
.circle {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    animation: float 8s infinite ease-in-out alternate, pulse 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
}

.circle:nth-child(2) {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: -80px;
    animation-delay: 1s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-30px, -40px) rotate(180deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Main Layout */
.wrapper {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.main-card {
    width: 100%;
    max-width: 1200px;
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(2, 132, 199, 0.15);
    animation: cardSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.left-side {
    width: 40%;
    min-height: auto;
    overflow: hidden;
    position: relative;
}

.consult-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.feature-list {
    margin-top: 35px;
    list-style: none;
}

.feature-list li {
    padding: 12px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.feature-list li:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-list li:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-list li:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-list li i {
    color: #fff;
    font-size: 1.2rem;
}

/* Right Form Section */
.right-side {
    width: 60%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    padding: 25px 60px;
    color: var(--text-primary);
    position: relative;
}

/* Vertical Progress Indicator */
.progress-vertical {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 35px;
    z-index: 5;
}

.progress-vertical::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(124, 58, 237, 0.15);
    transform: translateX(-50%);
}

.progress-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
}

/* .form-check-input {
    position: absolute;
    opacity: 0;
} */
.progress-dot input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.progress-dot.active {
    background: linear-gradient(135deg, #0268b2, #0480c5);
    box-shadow: 0 0 20px rgb(72 172 244 / 68%), 0 0 40px rgba(236, 72, 153, 0.2);
    transform: scale(1.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.progress-dot.completed {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.progress-dot.completed::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: #fff;
}

/* Form Content */
.form-content {
    padding-left: 35px;
}

/* Steps */
.step {
    display: none;
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step h5 {
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}

.step h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #0b80c3, #0268b2);
    border-radius: 2px;
}

/* Grid Layout */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Card Style */
.problem-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Icon */
.problem-card i {
    font-size: 28px;
    color: #0280c6;
    margin-bottom: 12px;
    transition: 0.3s ease;
}

/* Text */
.problem-card span {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
}

/* Hover */
.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 5px 10px rgb(229 244 255);
    border-color: #0280c6;
}

.problem-card:hover i {
    transform: scale(1.15);
}

/* Selected */
.problem-card.selected {
    background: linear-gradient(135deg, #0280c6, #0268b2);
    border-color: transparent;
    box-shadow: 0 20px 40px rgb(167 222 253 / 41%);
}

.problem-card.selected span,
.problem-card.selected i {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 992px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .left-side {
        min-height: 300px !important;
    }
}


/* Form Controls */
.form-control,
.form-select {
    background: #fff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    margin-bottom: 15px !important;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: var(--primary-purple);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgb(201 232 255 / 36%);
    outline: none;
}

.form-select option {
    background: #fff;
    color: var(--text-primary);
}

/* Radio Buttons */
.form-check {
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check:hover {
    background: #ebf6ff;
    border-color: var(--primary-purple);
    transform: translateX(5px);
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    margin-right: 10px;
}

.form-check-input:checked {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.form-check-input:checked~.form-check-label {
    color: var(--primary-purple);
    font-weight: 600;
}

.form-check-label {
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-next {
    background: linear-gradient(135deg, #0280c6, #0268b2);
    color: #fff;
    box-shadow: 0 6px 15px rgba(2, 128, 198, 0.35);
    transition: all 0.3s ease;
}

.btn-next:hover {
    background: linear-gradient(135deg, #0268b2, #014e87);
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 10px 15px rgba(2, 128, 198, 0.45);
}

.btn-prev {
    background: #fff;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple) !important;
}

.btn-prev:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple) !important;
    color: #fff;
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: 60px 20px;
    animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #fff;
    box-shadow: 0 15px 50px rgba(16, 185, 129, 0.3);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.success-message h3 {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .main-card {
        flex-direction: column;
    }

    .left-side,
    .right-side {
        width: 100%;
    }

    .left-side {
        min-height: 350px;
    }

    .left-overlay {
        padding: 35px;
    }

    .left-overlay h2 {
        font-size: 2rem;
    }

    .feature-list {
        margin-top: 20px;
    }

    .right-side {
        padding: 40px 30px;
    }

    .progress-vertical {
        flex-direction: row;
        left: 50%;
        top: 20px;
        transform: translateX(-50%);
        gap: 25px;
    }

    .progress-vertical::before {
        left: 0;
        right: 0;
        top: 50%;
        width: auto;
        height: 2px;
    }

    .form-content {
        padding-left: 0;
        margin-top: 60px;
    }
}

@media (max-width: 576px) {
    .wrapper {
        padding: 20px 10px;
    }

    .main-card {
        border-radius: 20px;
    }

    .left-overlay {
        padding: 25px;
    }

    .left-overlay h2 {
        font-size: 1.7rem;
    }

    .left-overlay p {
        font-size: 1rem;
    }

    .right-side {
        padding: 30px 20px;
    }

    .step h5 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

.consult-option {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: #fff;
}

.consult-option input {
    margin-right: 12px;
    cursor: pointer;
}

.consult-option:hover {
    border-color: #0280c6;
    background: #ebf6ff;
}

.consult-option input:checked+label {
    color: #0280c6;
    font-weight: 600;
}

.consult-option:has(input:checked) {
    border-color: #0280c6;
    background: #eef5ff;
}

/* 🔥 Consultation type – hide radio button */
.form-check-input {
    display: none !important;
}

/* Make full card clickable */
.form-check-label {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* Selected state highlight */
.form-check-input:checked + .form-check-label {
    border-color: #0d6efd;
    background: #eef5ff;
    color: #0d6efd;
    font-weight: 600;
}