/* ============================================
   VENDOR REGISTRATION MODERN - REMÉDIOSJÁ
   Identidade Visual: #005696 (Azul) e #D31218 (Vermelho)
   Versão: 1.1 - Cache Busting
   ============================================ */

:root {
    --remediosja-azul: #005696;
    --remediosja-vermelho: #D31218;
    --remediosja-bg: #FFFFFF;
    --remediosja-bg-secondary: #F8FAFC;
    --remediosja-texto: #0F172A;
    --remediosja-texto-corpo: #475569;
    --remediosja-borda: #E2E8F0;
    --remediosja-success: #10B981;
    --remediosja-error: #D31218;
    
    --font-poppins: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.vendor-registration-modern {
    min-height: 100vh;
    background: var(--remediosja-bg-secondary);
    font-family: var(--font-inter);
}

/* ============================================
   LAYOUT SPLIT-SCREEN
   ============================================ */

.registration-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR (LADO ESQUERDO)
   ============================================ */

.registration-sidebar {
    background: linear-gradient(135deg, var(--remediosja-azul) 0%, #0066B3 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-content {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.sidebar-logo {
    margin-bottom: 3rem;
}

.sidebar-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.sidebar-main {
    flex: 1;
}

.sidebar-title {
    font-family: var(--font-poppins);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 3rem;
    color: white;
}

.sidebar-title .highlight {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
}

.sidebar-benefits {
    list-style: none;
    margin-bottom: 3rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
}

.benefit-item svg {
    flex-shrink: 0;
}

.sidebar-proof {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.proof-text strong {
    color: white;
    font-weight: 700;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-link {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    transition: opacity var(--transition-base);
}

.footer-link:hover {
    opacity: 0.8;
}

/* ============================================
   FORM WRAPPER (LADO DIREITO)
   ============================================ */

.registration-form-wrapper {
    background: var(--remediosja-bg);
    overflow-y: auto;
    max-height: 100vh;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ============================================
   STEPPER
   ============================================ */

.form-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.stepper-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--remediosja-borda);
    color: var(--remediosja-texto-corpo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.stepper-item.active .stepper-number {
    background: var(--remediosja-azul);
    color: white;
}

.stepper-item.completed .stepper-number {
    background: var(--remediosja-success);
    color: white;
}

.stepper-item.completed .stepper-number::after {
    content: '✓';
    font-size: 1.2rem;
}

.stepper-label {
    font-size: 0.875rem;
    color: var(--remediosja-texto-corpo);
    text-align: center;
    font-weight: 500;
}

.stepper-item.active .stepper-label {
    color: var(--remediosja-azul);
    font-weight: 600;
}

.stepper-line {
    flex: 1;
    height: 2px;
    background: var(--remediosja-borda);
    margin: 0 -10px;
    position: relative;
    z-index: 0;
}

.stepper-line.completed {
    background: var(--remediosja-success);
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: var(--remediosja-borda);
    border-radius: 2px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--remediosja-azul) 0%, var(--remediosja-vermelho) 100%);
    transition: width var(--transition-slow);
    width: 25%;
}

/* ============================================
   FORM STEPS
   ============================================ */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 2.5rem;
}

.step-title {
    font-family: var(--font-poppins);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--remediosja-texto);
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 1rem;
    color: var(--remediosja-texto-corpo);
}

/* ============================================
   FORM FIELDS
   ============================================ */

.form-fields {
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--remediosja-texto);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-label .required {
    color: var(--remediosja-vermelho);
}

.form-label .text-muted {
    font-weight: 400;
    color: var(--remediosja-texto-corpo);
    font-size: 0.875rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--remediosja-borda);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-inter);
    color: var(--remediosja-texto);
    transition: all var(--transition-base);
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--remediosja-azul);
    box-shadow: 0 0 0 3px rgba(0, 86, 150, 0.1);
}

.form-input::placeholder {
    color: #94A3B8;
}

.form-input.error,
.form-select.error {
    border-color: var(--remediosja-error);
}

.form-input.success,
.form-select.success {
    border-color: var(--remediosja-success);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-col-50 {
    grid-template-columns: 1fr 1fr;
}

.form-col-70 {
    grid-template-columns: 2fr 1fr;
}

.form-col-30 {
    grid-template-columns: 1fr 2fr;
}

/* Input with Action Button */
.input-with-action {
    display: flex;
    gap: 0.75rem;
}

.input-with-action .form-input {
    flex: 1;
}

.btn-consult {
    padding: 0.875rem 1.25rem;
    background: var(--remediosja-azul);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-consult:hover {
    background: #004A7A;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-consult:active {
    transform: translateY(0);
}

/* Input Feedback */
.input-feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.input-feedback.error {
    color: var(--remediosja-error);
}

.input-feedback.success {
    color: var(--remediosja-success);
}

/* Tooltip */
.tooltip-trigger {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    cursor: help;
    position: relative;
}

.tooltip-container {
    position: fixed;
    background: var(--remediosja-texto);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    max-width: 250px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-base);
}

.tooltip-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TIME INPUT GROUP
   ============================================ */

.time-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-input-item {
    flex: 1;
    min-width: 100px;
}

.time-label {
    display: block;
    font-size: 0.875rem;
    color: var(--remediosja-texto-corpo);
    margin-bottom: 0.5rem;
}

.time-separator {
    color: var(--remediosja-texto-corpo);
    font-weight: 500;
}

.time-select {
    min-width: 120px;
}

/* ============================================
   MAP
   ============================================ */

.map-search-wrapper {
    margin-bottom: 0.75rem;
}

.map-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--remediosja-borda);
    border-radius: 12px;
    font-size: 0.95rem;
}

.map-container {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--remediosja-borda);
    margin-bottom: 1rem;
}

.map-coordinates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.coordinate-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coordinate-item label {
    font-size: 0.875rem;
    color: var(--remediosja-texto-corpo);
    font-weight: 500;
}

.form-input-sm {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
}

/* ============================================
   UPLOAD ZONE
   ============================================ */

.upload-section {
    margin-top: 2rem;
}

.upload-title {
    font-family: var(--font-poppins);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--remediosja-texto);
    margin-bottom: 1.5rem;
}

.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.upload-item {
    display: flex;
    flex-direction: column;
}

.upload-label {
    font-weight: 600;
    color: var(--remediosja-texto);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.upload-hint {
    font-weight: 400;
    color: var(--remediosja-texto-corpo);
    font-size: 0.85rem;
}

.upload-zone {
    position: relative;
    border: 2px dashed var(--remediosja-borda);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--remediosja-bg-secondary);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: var(--remediosja-azul);
    background: rgba(0, 86, 150, 0.05);
}

.upload-zone.dragover {
    border-color: var(--remediosja-azul);
    background: rgba(0, 86, 150, 0.1);
}

.upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    pointer-events: none;
}

.upload-text {
    margin-top: 1rem;
    color: var(--remediosja-texto);
    font-size: 0.95rem;
}

.upload-text-primary {
    color: var(--remediosja-azul);
    font-weight: 600;
    display: block;
}

.upload-text-small {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--remediosja-texto-corpo);
}

.upload-preview {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* ============================================
   PASSWORD INPUT
   ============================================ */

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--remediosja-texto-corpo);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: color var(--transition-base);
}

.password-toggle:hover {
    color: var(--remediosja-azul);
}

.password-strength {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.strength-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--remediosja-texto-corpo);
}

.strength-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--remediosja-borda);
    flex-shrink: 0;
    position: relative;
}

.strength-item.valid .strength-icon {
    border-color: var(--remediosja-success);
    background: var(--remediosja-success);
}

.strength-item.valid .strength-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

/* ============================================
   RECAPTCHA
   ============================================ */

.recaptcha-wrapper {
    margin-top: 1rem;
}

.recaptcha-input-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.recaptcha-input-group .form-input {
    flex: 1;
}

.recaptcha-image {
    flex-shrink: 0;
}

.recap-img {
    border-radius: 8px;
    border: 2px solid var(--remediosja-borda);
}

/* ============================================
   BUSINESS PLAN
   ============================================ */

.business-plan-section {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--remediosja-bg-secondary);
    border-radius: 12px;
}

.section-title {
    font-family: var(--font-poppins);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--remediosja-texto);
    margin-bottom: 1.5rem;
}

.plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.plan-option {
    cursor: pointer;
}

.plan-radio {
    display: none;
}

.plan-card {
    padding: 1.5rem;
    border: 2px solid var(--remediosja-borda);
    border-radius: 12px;
    background: white;
    transition: all var(--transition-base);
}

.plan-radio:checked + .plan-card {
    border-color: var(--remediosja-azul);
    background: rgba(0, 86, 150, 0.05);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plan-header h4 {
    font-family: var(--font-poppins);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--remediosja-texto);
}

.plan-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--remediosja-borda);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all var(--transition-base);
}

.plan-radio:checked + .plan-card .plan-check {
    background: var(--remediosja-azul);
    opacity: 1;
}

.plan-description {
    font-size: 0.95rem;
    color: var(--remediosja-texto-corpo);
    line-height: 1.6;
}

.package-title {
    font-family: var(--font-poppins);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--remediosja-texto);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ============================================
   STEP ACTIONS
   ============================================ */

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--remediosja-borda);
}

.btn-back,
.btn-next,
.btn-submit {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-inter);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-back {
    background: transparent;
    color: var(--remediosja-texto-corpo);
}

.btn-back:hover {
    color: var(--remediosja-azul);
    background: rgba(0, 86, 150, 0.05);
}

.btn-next {
    background: var(--remediosja-azul);
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    background: #004A7A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit {
    background: var(--remediosja-vermelho);
    color: white;
    margin-left: auto;
}

.btn-submit:hover {
    background: #B01015;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

/* ============================================
   SAVE PROGRESS
   ============================================ */

.save-progress {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--remediosja-borda);
}

.link-save {
    background: none;
    border: none;
    color: var(--remediosja-azul);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.link-save:hover {
    color: #004A7A;
    text-decoration: underline;
}

/* ============================================
   SUCCESS SCREEN
   ============================================ */

.success-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
}

.success-animation {
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease;
}

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

.success-title {
    font-family: var(--font-poppins);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--remediosja-texto);
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1rem;
    color: var(--remediosja-texto-corpo);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary-large {
    background: var(--remediosja-vermelho);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-base);
}

.btn-primary-large:hover {
    background: #B01015;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .registration-container {
        grid-template-columns: 1fr;
    }
    
    .registration-sidebar {
        display: none;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .form-stepper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stepper-line {
        display: none;
    }
    
    .stepper-item {
        flex: 0 0 calc(50% - 0.25rem);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .upload-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-options {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-submit {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .time-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-separator {
        text-align: center;
    }
}
