:root {
    --primary: #d4af37; /* Metallic Gold */
    --primary-dark: #aa8c2c;
    --primary-glow: rgba(212, 175, 55, 0.4);
    --bg-dark: #050608; /* Deeper Obsidian */
    --bg-panel: rgba(20, 23, 31, 0.65); /* Glassmorphism Base */
    --text-main: #fcfcfc;
    --text-muted: #9ba3b5;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.split-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Left Side Hero --- */
.hero-section {
    flex: 1.3;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: -5%;
    background: url('leftimage.png') center/cover no-repeat;
    z-index: 0;
    animation: kenBurns 30s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 6, 8, 0.95) 0%, rgba(5, 6, 8, 0.4) 50%, rgba(5, 6, 8, 0.8) 100%);
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.company-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.hero-text {
    max-width: 650px;
    margin-bottom: 2rem;
}

.hero-text h2 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.project-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.8rem;
    background: linear-gradient(120deg, #ffffff 0%, #e0e0e0 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-text p {
    font-size: 1.3rem;
    color: #e2e8f0;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* --- Right Side Form --- */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(8, 10, 13, 0.98);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    z-index: 5;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

/* Dynamic animated glow behind the form */
.form-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    opacity: 0.8;
    z-index: -1;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse-glow 10s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.form-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    background: rgba(22, 25, 33, 0.35);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 3.5rem;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.6), 
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 1px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.5s ease, box-shadow 0.5s ease;
}

.form-container:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.7), 
        0 0 40px rgba(212, 175, 55, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.progress-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 3.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 25%; /* initial step */
    background: linear-gradient(90deg, #a98342, var(--primary));
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 15px var(--primary-glow);
    border-radius: 4px;
}

.multi-step-form {
    position: relative;
    min-height: 320px;
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.form-step.exiting-left {
    transform: translateX(-40px);
    opacity: 0;
    visibility: hidden;
}

.form-step.entering-right {
    transform: translateX(40px);
    opacity: 0;
    visibility: hidden;
}

.form-step h3 {
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-step p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 2.8rem;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 0;
    font-size: 1.25rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 300;
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1) all;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group input.has-value ~ label {
    top: -24px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 1px;
}

.input-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 10px var(--primary-glow);
}

.input-group input:focus ~ .line {
    width: 100%;
}

.select-group {
    margin-bottom: 2.5rem;
}

.select-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 0;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23d4af37%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px auto;
    transition: var(--transition);
}

.select-group select:focus {
    border-bottom-color: var(--primary);
}

.select-group select option {
    background: #1a1e29;
    color: var(--text-main);
    font-weight: 400;
}

/* Buttons */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-next, .btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    padding: 16px 36px;
    border-radius: 40px;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
    letter-spacing: 0.5px;
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.btn-next .arrow, .btn-submit .arrow {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-next:hover .arrow, .btn-submit:hover .arrow {
    transform: translateX(6px);
}

.btn-prev {
    color: var(--text-muted);
    padding: 14px 20px;
    font-weight: 400;
}

.btn-prev:hover {
    color: var(--text-main);
}

.btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
}

/* Success Step */
.success-step {
    text-align: center;
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon svg {
    width: 45px;
    height: 45px;
}

/* Responsive and Mobile Optimization */
@media (max-width: 1200px) {
    .project-title { font-size: 4rem; }
    .hero-section { padding: 4rem 3rem; }
}

@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
    }
    
    .hero-section {
        flex: none;
        min-height: 55vh;
        padding: 3rem 2rem;
    }
    
    .project-title {
        font-size: 3.2rem;
    }
    
    .form-section {
        flex: none;
        padding: 2rem 1.5rem 4rem;
        border-left: none;
        background-color: transparent;
        margin-top: -80px; /* Overlap effect */
    }

    /* Full-width container on mobile with stronger glassmorphism */
    .form-container {
        max-width: 100%;
        padding: 2.5rem 2rem;
        background: rgba(15, 17, 21, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5), 0 30px 60px rgba(0,0,0,0.4);
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 50vh;
        padding: 2rem 1.5rem;
    }

    .logo-icon { font-size: 2rem; }
    .logo-text h1 { font-size: 1.2rem; letter-spacing: 4px; }
    .project-title { font-size: 2.6rem; margin-bottom: 1rem; }
    .hero-text p { font-size: 1.1rem; }
    
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .form-step h3 { font-size: 2rem; }
    .input-group input { font-size: 1.1rem; }
    
    .btn-next, .btn-submit {
        padding: 14px 28px;
        font-size: 1rem;
    }
}
