/* ====================================
   LTConnects Minimalist Signup Styles
   Dental Professional Theme - Upwork Inspired
   ==================================== */

:root {
    /* Solid Color Palette - No Gradients */
    --primary-teal: #14A38B;        /* Main action color - health, calmness */
    --primary-hover: #108775;       /* Darker teal for hover */
    --navy: #1E3A5F;                /* Professional, trustworthy */
    --light-bg: #F7F9FB;            /* Soft background */
    --white: #FFFFFF;
    --text-primary: #001E00;        /* Almost black for readability */
    --text-secondary: #5E6D55;      /* Muted green-gray */
    --border-light: #D5E0D5;        /* Soft border */
    --success-green: #16A34A;
    --error-red: #DC2626;
    --warning-orange: #EA580C;

    /* Shadows - Minimal */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: 0.15s ease;
}

/* ====================================
   Global Signup Layout
   ==================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
}

.signup-container {
    height: 100vh;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.signup-form-section {
    flex: 1;
    max-width: 550px;
    padding: 40px 30px;
    background: var(--white);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.signup-image-section {
    flex: 1;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
}

.signup-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.signup-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: var(--white);
}

.signup-image-overlay h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.signup-image-overlay p {
    font-size: 16px;
    opacity: 0.9;
    text-align: center;
    max-width: 500px;
    line-height: 1.5;
    font-weight: 400;
}

/* ====================================
   Logo & Branding
   ==================================== */

.signup-logo {
    margin-bottom: 32px;
    text-align: center;
}

.signup-logo img {
    width: 120px;
    height: auto;
}

/* ====================================
   Step Indicator
   ==================================== */

.signup-step-indicator {
    display: block;
    width: fit-content;
    margin: 0 auto 24px auto;
    padding: 8px 20px;
    background: var(--primary-teal);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(20, 163, 139, 0.2);
    text-align: center;
}

/* ====================================
   Headings & Typography
   ==================================== */

.signup-heading {
    margin-bottom: 32px;
}

.signup-heading h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.signup-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 400;
}

/* ====================================
   Alert Messages
   ==================================== */

.liaison-alert {
    background: #FEF3C7;
    border: 1px solid #FDE047;
    border-left: 3px solid var(--warning-orange);
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.5;
    color: #78350F;
}

.alert {
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    line-height: 1.5;
}

.alert strong {
    flex: 1;
    line-height: 1.5;
    display: flex;
    align-items: center;
}

.alert .btn-close {
    width: 18px;
    height: 18px;
    padding: 0;
    margin: 0;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.9em auto no-repeat;
    border: none;
    border-radius: 3px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--transition);
    flex-shrink: 0;
    align-self: center;
}

.alert .btn-close:hover {
    opacity: 1;
}

.alert .btn-close:focus {
    outline: none;
    opacity: 1;
}

.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FCA5A5;
}

.alert-danger .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23991B1B'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-color: #6EE7B7;
}

.alert-success .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23065F46'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

/* ====================================
   Form Styling
   ==================================== */

.modern-form {
    margin-top: 8px;
}

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

.form-group-modern label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group-modern label .required {
    color: var(--error-red);
    margin-left: 2px;
}

.form-group-modern label .optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 13px;
}

.form-control-modern {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background: var(--white);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(20, 163, 139, 0.1);
}

.form-control-modern::placeholder {
    color: #9CA3AF;
}

.form-control-modern.error {
    border-color: var(--error-red);
}

.form-control-modern.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
}

.input-with-icon .form-control-modern {
    padding-left: 40px;
}

.input-with-icon .form-control-modern:focus + .input-icon {
    color: var(--primary-teal);
}

/* Select Dropdown */
.form-select-modern {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235E6D55' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-select-modern:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(20, 163, 139, 0.1);
}

/* Textarea */
.form-textarea-modern {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Character Counter */
.char-counter {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: right;
}

.char-counter.warning {
    color: var(--warning-orange);
}

.char-counter.error {
    color: var(--error-red);
}

/* Error Messages */
.error-message {
    color: var(--error-red);
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* Success Messages */
.success-message {
    color: var(--success-green);
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* ====================================
   Buttons - Upwork Style
   ==================================== */

.btn-modern {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
}

.btn-primary-modern {
    background: var(--primary-teal);
    color: var(--white);
}

.btn-primary-modern:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary-modern {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary-modern:hover:not(:disabled) {
    background: var(--light-bg);
    border-color: var(--text-secondary);
}

.btn-outline-modern {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline-modern:hover:not(:disabled) {
    border-color: var(--text-primary);
    background: var(--light-bg);
}

/* Button Group */
.button-group-modern {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.button-group-modern .btn-modern {
    flex: 1;
}

/* Loading Spinner */
.spinner-border {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================
   File Upload
   ==================================== */

.file-upload-modern {
    border: 1px dashed var(--border-light);
    border-radius: 4px;
    padding: 24px;
    text-align: center;
    background: var(--light-bg);
    transition: all var(--transition);
    cursor: pointer;
}

.file-upload-modern:hover {
    border-color: var(--primary-teal);
    background: var(--white);
}

.file-upload-modern input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 40px;
    color: var(--primary-teal);
    margin-bottom: 8px;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.file-upload-text strong {
    color: var(--primary-teal);
    font-weight: 500;
}

/* Profile Photo Upload */
.profile-photo-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-photo-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-light);
    background: var(--light-bg);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-upload-btn {
    flex: 1;
}

/* ====================================
   Checkbox & Radio
   ==================================== */

.checkbox-modern {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 4px;
    transition: background var(--transition);
    cursor: pointer;
}

.checkbox-modern:hover {
    background: var(--light-bg);
}

.checkbox-modern input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-light);
    border-radius: 3px;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-modern input[type="checkbox"]:checked {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
}

.checkbox-modern label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
}

/* ====================================
   ReCAPTCHA
   ==================================== */

.recaptcha-container {
    margin: 20px 0;
}

/* ====================================
   Multi-select Styling (Bootstrap Select)
   ==================================== */

.bootstrap-select {
    width: 100% !important;
    display: block !important;
}

.bootstrap-select .dropdown-toggle {
    width: 100% !important;
    height: auto !important;
    padding: 10px 12px !important;
    font-size: 15px !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 4px !important;
    background-color: var(--white) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235E6D55' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    color: var(--text-primary) !important;
    text-align: left !important;
    padding-right: 40px !important;
    box-shadow: none !important;
}

.bootstrap-select .dropdown-toggle:hover,
.bootstrap-select .dropdown-toggle:focus,
.bootstrap-select .dropdown-toggle:active,
.bootstrap-select.show .dropdown-toggle {
    background-color: var(--white) !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235E6D55' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    border-color: var(--primary-teal) !important;
    box-shadow: 0 0 0 3px rgba(20, 163, 139, 0.1) !important;
    outline: none !important;
}

.bootstrap-select .dropdown-toggle::after {
    display: none !important;
}

.bootstrap-select .dropdown-toggle .filter-option {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary) !important;
}

.bootstrap-select .dropdown-toggle .filter-option-inner,
.bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    color: var(--text-primary) !important;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bootstrap-select .dropdown-menu {
    border: 1px solid var(--border-light) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    margin-top: 4px !important;
    padding: 0 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
}

.bootstrap-select .bs-actionsbox {
    padding: 8px !important;
    border-bottom: 1px solid var(--border-light);
    display: block !important;
    width: 100%;
}

.bootstrap-select .bs-actionsbox .btn-group {
    display: inline-flex !important;
    justify-content: center !important;
    gap: 8px;
    width: auto !important;
    margin: 0 auto !important;
}

.bootstrap-select .bs-actionsbox .btn-group.btn-block {
    width: auto !important;
    display: inline-flex !important;
}

.bootstrap-select .bs-actionsbox .btn {
    flex: none !important;
    width: auto !important;
    max-width: fit-content !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    border: 1px solid var(--border-light) !important;
    background: var(--white) !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}

.bootstrap-select .bs-actionsbox .btn:hover {
    background: var(--light-bg) !important;
}

.bootstrap-select .dropdown-menu li a {
    padding: 10px 16px !important;
    transition: background var(--transition) !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    display: block !important;
}

.bootstrap-select .dropdown-menu li a span.text {
    color: var(--text-primary) !important;
    display: inline-block !important;
}

.bootstrap-select .dropdown-menu .dropdown-item {
    color: var(--text-primary) !important;
}

.bootstrap-select .dropdown-menu li a:hover {
    background: var(--light-bg) !important;
}

.bootstrap-select .dropdown-menu li a:hover span.text {
    color: var(--text-primary) !important;
}

.bootstrap-select .dropdown-menu li.selected a {
    background: #D1FAE5 !important;
    color: var(--primary-teal) !important;
}

.bootstrap-select .dropdown-menu li.selected a span.text {
    color: var(--primary-teal) !important;
}

.bootstrap-select .dropdown-menu li.selected a span.check-mark {
    color: var(--primary-teal) !important;
}

.bootstrap-select .dropdown-menu .inner {
    max-height: 250px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.bootstrap-select .dropdown-menu .inner.show {
    display: block !important;
}

.bootstrap-select .dropdown-menu ul.dropdown-menu {
    position: static !important;
    float: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 991px) {
    .signup-container {
        flex-direction: column;
    }

    .signup-image-section {
        display: none;
    }

    .signup-form-section {
        max-width: 100%;
        padding: 30px 20px;
    }

    .signup-heading h1 {
        font-size: 24px;
    }

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

    .button-group-modern .btn-modern {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .signup-form-section {
        padding: 20px 16px;
    }

    .signup-heading h1 {
        font-size: 22px;
    }

    .form-control-modern,
    .form-select-modern {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ====================================
   Utility Classes
   ==================================== */

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.d-none {
    display: none !important;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 16px;
}
