:root {
    /* Primary Colors - Modern blue palette */
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --primary-lighter: #dbeafe;
    
    /* Secondary Colors - Complementary teal */
    --secondary-color: #06b6d4;
    --secondary-light: #67e8f9;
    --secondary-dark: #0891b2;
    
    /* Status Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --danger-light: #fee2e2;
    
    /* Neutral Colors */
    --light-color: #ffffff;
    --light-gray: #f8fafc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --dark-color: var(--gray-900);
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

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

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: white;
    color: var(--gray-700);
    line-height: 1.6;
    padding: 20px;
}

.lease-agreement-form-container {
    max-width: 900px;
    margin: 0 auto 40px;
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.header-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* Progress Bar */
.progress-container {
    padding: 24px 32px;
    background-color: var(--light-color);
    border-bottom: 1px solid var(--gray-200);
}

.progress-bar {
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 20%; /* Will be updated by JS */
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    position: relative;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.step.active {
    color: var(--primary-color);
}

.step.active .step-icon {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-lighter);
    border-color: var(--primary-color);
}

.step.completed .step-icon {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

/* Form Sections */
.form-section {
    display: none;
    padding: 32px;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.section-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.section-header h2 {
    font-size: 24px;
    color: var(--gray-800);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.section-header h2 i {
    margin-right: 12px;
    color: var(--primary-color);
}

.section-header p {
    color: var(--gray-600);
    font-size: 15px;
}

/* Form Fields */
.form-field {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.form-row .form-field {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-700);
}

.required {
    color: var(--danger-color);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--light-color);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lighter);
    background-color: var(--primary-lighter);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-400);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-right: 16px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.checkbox-item:hover {
    background-color: var(--gray-50);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

/* Toggle Switch */
.toggle-container {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 32px;
    margin-bottom: 16px;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: var(--transition);
    border-radius: 32px;
}

.toggle-label:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.toggle-input:checked + .toggle-label {
    background-color: var(--primary-color);
}

.toggle-input:checked + .toggle-label:before {
    transform: translateX(32px);
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 16px;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

button:active {
    transform: translateY(1px);
}

.prev-btn {
    background-color: var(--gray-200);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.next-btn, .submit-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.prev-btn:hover {
    background-color: var(--gray-300);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.next-btn:hover, .submit-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    color: white;
}

button i {
    margin-right: 8px;
}

button i:last-child {
    margin-right: 0;
    margin-left: 8px;
}

/* Preview Section */
.lease-preview-container {
    display: none;
    padding: 32px;
    animation: fadeIn 0.5s;
}

.preview-box {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 28px;
}

.preview-box h3 {
    color: var(--gray-800);
    margin-bottom: 24px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
}

.preview-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.preview-section:last-child {
    border-bottom: none;
}

.preview-section h4 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.preview-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.preview-label {
    font-weight: 600;
    width: 200px;
    flex-shrink: 0;
    color: var(--gray-600);
}

.preview-value {
    flex-grow: 1;
    color: var(--gray-800);
}

/* Download Buttons */
#download-btn-container {
    padding: 24px 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

#edit-form-btn {
    background-color: var(--gray-600);
    color: white;
}

#download-pdf-btn {
    background-color: var(--danger-color);
    color: white;
}

#download-word-btn {
    background-color: var(--secondary-color);
    color: white;
}

#print-btn {
    background-color: var(--gray-800);
    color: white;
}

#edit-form-btn:hover {
    background-color: var(--gray-700);
    color: white;
}

#download-pdf-btn:hover {
    background-color: #dc2626;
    color: white;
}

#download-word-btn:hover {
    background-color: var(--secondary-dark);
    color: white;
}

#print-btn:hover {
    background-color: var(--gray-900);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    max-width: 900px;
    margin: 20px auto 0;
    padding: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    .form-header {
        padding: 24px;
    }
    
    .header-icon {
        font-size: 40px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .form-section {
        padding: 24px;
    }
    
    .step span {
        display: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-row .form-field {
        min-width: 100%;
    }
    
    #download-btn-container {
        flex-direction: column;
        padding: 20px;
    }
    
    button {
        width: 100%;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 12px;
    }
}

/* Animation for form transitions */
@media (prefers-reduced-motion: no-preference) {
    .form-section,
    .step-icon,
    button {
        transition: var(--transition);
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .lease-agreement-form-container {
        box-shadow: none;
        border: none;
    }
    
    .form-header, 
    .progress-container,
    #download-btn-container,
    footer {
        display: none;
    }
    
    .lease-preview-container {
        padding: 0;
    }
    
    .preview-box {
        border: none;
        padding: 0;
        background-color: white;
    }
    
    .preview-section {
        margin-bottom: 20px;
    }
    
    .preview-value,
    .preview-label {
        color: black;
    }
}

/* Focus states for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading and disabled states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error states */
.form-field.error input,
.form-field.error textarea,
.form-field.error select {
    border-color: var(--danger-color);
    background-color: var(--danger-light);
}

.form-field.error label {
    color: var(--danger-color);
}

/* Success states */
.form-field.success input,
.form-field.success textarea,
.form-field.success select {
    border-color: var(--success-color);
    background-color: var(--success-light);
}

a:hover {
    color: #5e8dea;
    text-decoration: underline; /* optional */
}

a {
  color: #3366cc;
  text-decoration: none;
}

.site-logo {
  width: 150px;
  height: 150px;
}

body {
    background-color: #ffffff !important;
}

/* Force dropdown to stay within viewport */
#site-navigation {
  position: relative;
  overflow: visible; 
  display: flex;
  justify-content: center;
  width: 100%;
}
}

/* Dropdown menu fix for CMS environments */
#site-navigation .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0; /* Start from the left edge */
  width: auto; /* Let it size automatically */
  min-width: 100%; /* At least as wide as the button */
  white-space: nowrap; /* Keep text on one line */
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999; /* High z-index to appear above other elements */
  max-height: 300px; /* Prevent extremely tall dropdowns */
  overflow-y: auto; /* Add scroll if needed */
}

/* Menu items styling */
#site-navigation .dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-navigation .dropdown-menu li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

#site-navigation .dropdown-menu li:last-child {
  border-bottom: none;
}

#site-navigation .dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

#site-navigation .dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #0055bb;
}

/* Specific fix for your current issue */
#site-navigation .dropdown-menu {
  /* Override any inherited styles */
  width: max-content !important;
  max-width: 90vw !important;
  left: 0 !important;
  right: unset !important;
  transform: none !important;
  position: absolute !important;
  margin-top: 5px !important;
}

/* Alternative positioning if dropdown goes off screen */
@media (max-width: 600px) {
  #site-navigation .dropdown-menu {
    left: auto !important;
    right: 0 !important;
  }
}

/* Ensure parent container doesn't clip the dropdown */
.main-container,
.site-header,
.header-content {
  overflow: visible !important;
  position: relative !important;
}

/* Additional fix for CMS environments */
#site-navigation .dropdown-menu * {
  box-sizing: border-box;
}

/* Show/hide animation */
#site-navigation .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

#site-navigation .dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.full-width-container {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

.container {
  width: 100%;
  max-width: none;
}

