/* ============================
   THEME VARIABLES
   ============================ */
:root {
    --primary: #0f766e;       /* Teal 700 */
    --primary-light: #14b8a6; /* Teal 500 */
    --surface: #ffffff;
    --surface-warm: #fdfbf7;
    --text-heading: #1e293b;
    --text-body: #475569;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f1f5f9;
    color: var(--text-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif-font {
    font-family: 'Cormorant Garamond', serif;
}

/* Layout Wrapper */
.specialist-wrapper {
    min-height: 100vh;
    display: flex;
    background: #f1f5f9;
}

/* Left Side - Image */
.brand-side {
    width: 45%;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    display: none; /* Mobile default */
}
.brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/docView.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: transform 10s ease;
}
.brand-side:hover::before {
    transform: scale(1.05);
}
.brand-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem;
    background: linear-gradient(to top, #0f172a, transparent);
    color: white;
    z-index: 10;
}

/* Right Side - Form */
.form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    height: 100vh;
}

.form-container {
    width: 100%;
    max-width: 580px;
    background: var(--surface);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px -4px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Typography */
.heading-title {
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.heading-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Modern Inputs */
.floating-group {
    position: relative;
    margin-bottom: 1.5rem;
}
.floating-group input, 
.floating-group select, 
.floating-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-heading);
    transition: var(--transition);
    font-weight: 500;
}
.floating-group input:focus, 
.floating-group select:focus, 
.floating-group textarea:focus {
    background: white;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
    outline: none;
}
.floating-group label {
    position: absolute;
    left: 1.25rem;
    top: 1.1rem;
    font-size: 0.95rem;
    color: #94a3b8;
    pointer-events: none;
    transition: var(--transition);
}
/* Input Filled State */
.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group select ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-2.2rem) translateX(-0.8rem) scale(0.9);
    color: var(--primary);
    font-weight: 600;
}

/* Manual/Auto Toggle */
.address-toggle {
    font-size: 0.85rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.address-toggle:hover { text-decoration: underline; }

/* Button */
.btn-premium {
    background: var(--text-heading);
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
.btn-premium:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(15, 118, 110, 0.3);
}

/* Section Divider */
.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 700;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Map Preview */
#map-preview {
    height: 200px;
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    display: none; /* Hidden by default until address selected */
}

/* Password Features */
.password-wrapper {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 1.1rem;
    color: #94a3b8;
    cursor: pointer;
    z-index: 10;
}
.password-strength {
    height: 4px;
    background: #e2e8f0;
    margin-top: 0.5rem;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
}
.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.strength-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-align: right;
}

@media (min-width: 992px) {
    .brand-side { display: block; }
}
