:root {
    --color-primary: #38b2ac; 
    --color-primary-light: #81e6d9;
    --color-bg-dark: #0f172a;
    --color-text: #f8fafc;
    --color-text-muted: #cbd5e1;
    --glass-bg: rgba(20, 27, 41, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
}

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

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

/* Background Setup */
.bg-image {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('bg.png') center/cover no-repeat fixed;
    z-index: -3;
    transform: scale(1.05);
    animation: slowZoom 40s alternate infinite ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.1); }
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(10, 36, 42, 0.4) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -2;
}

/* Animated Orbs */
.orbs {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 300px; height: 300px;
    background: #38b2ac;
    top: -10%; left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px; height: 400px;
    background: #68d391;
    bottom: -20%; right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px; height: 250px;
    background: #818cf8;
    top: 40%; left: 60%;
    animation-delay: -10s;
}

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

/* Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.content-panel {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 10%;
    animation: fadeRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.content-wrapper {
    max-width: 600px;
}

.form-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

/* Typography & Content */
.main-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: 1px;
}

.main-title span {
    font-style: italic;
    color: var(--color-primary-light);
}

.elegant-divider {
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin-bottom: 2rem;
}

.spiritual-message {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.spiritual-submessage {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-primary-light);
}

/* Form Styling */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.form-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.elegant-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-row {
    display: flex;
    gap: 1.5rem;
}

.input-row > div {
    flex: 1;
}

.floating-input {
    position: relative;
    width: 100%;
}

.floating-input input, 
.floating-input select,
.floating-input textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: #fff;
    outline: none;
}

.floating-input textarea {
    resize: none;
    padding-top: 0.8rem;
}

.floating-input select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.floating-input select option {
    background: var(--color-bg-dark);
    color: #fff;
}

.floating-input label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Floating Label Magic */
.floating-input input:focus ~ label,
.floating-input input:not(:placeholder-shown) ~ label,
.floating-input textarea:focus ~ label,
.floating-input textarea:not(:placeholder-shown) ~ label,
.floating-input select:focus ~ .select-label,
.floating-input select:valid ~ .select-label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--color-primary-light);
}

.floating-input select:invalid {
    color: transparent;
}
.floating-input select:focus {
    color: #fff;
}
.floating-input select option[value=""] {
    display: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary-light);
    transition: 0.3s ease all;
}

.floating-input input:focus ~ .input-line::after,
.floating-input select:focus ~ .input-line::after,
.floating-input textarea:focus ~ .input-line::after {
    width: 100%;
}

.submit-btn {
    margin-top: 1rem;
    background: transparent;
    color: #fff;
    border: 1px solid var(--color-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--color-primary);
    z-index: -1;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1) all;
}

.submit-btn:hover::before {
    width: 100%;
}

.submit-btn:hover {
    box-shadow: 0 10px 20px rgba(56, 178, 172, 0.3);
}

.submit-btn svg {
    transition: 0.3s ease transform;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 178, 172, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.success-message h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 968px) {
    .split-layout {
        flex-direction: column;
    }
    
    .content-panel {
        padding: 4rem 2rem 2rem;
        text-align: center;
    }
    
    .elegant-divider {
        margin: 0 auto 2rem;
    }
    
    .form-panel {
        padding: 2rem;
        align-items: flex-start;
    }
    
    .main-title {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .input-row {
        flex-direction: column;
        gap: 2rem;
    }
    
    .glass-panel {
        padding: 2rem 1.5rem;
    }
}
