/**
 * Modern Registration Form Styles
 * Professional, clean design with organized sections
 */

/* Notification Section Styles */
.form-section--notification {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  margin-bottom: 24px;
}


.form-section--notification .section-header {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  border-radius: 10px 10px 0 0;
}

.form-section--notification .section-header i {
  color: #ffffff;
}

.form-group--notification {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
}

.notification-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #0c4a6e;
  font-size: 14px;
}

.notification-label i {
  color: #0ea5e9;
  font-size: 16px;
}

.notification-content {
  color: #1e293b;
  line-height: 1.6;
}

.notification-content .form-item,
.notification-content .form-item label,
.notification-content input,
.notification-content textarea {
  margin: 0;
  color: #1e293b !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.6;
}

.notification-content input:disabled,
.notification-content textarea:disabled {
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: #1e293b;
}

/* Page Layout */
.registration-page {
  min-height: calc(100vh - 93px);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  padding: 0px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.registration-container {
  width: 1250px;
  margin: 25px 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

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

/* Registration Header - Updated to match hero pattern */
.registration-header {
  background: transparent;
  padding: 0;
  text-align: center;
  margin-bottom: 24px;
}

.registration-header-content {
  position: relative;
  z-index: 1;
}

.registration-header h1 {
  color: #1f2937;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.registration-header h1 i {
  font-size: 36px;
  color: #0033a0;
}

.registration-header p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
}

/* Property form hero */
.property-form-page .registration-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 40px;
  border-radius: 16px 16px 0 0;
  text-align: center;
  color: #f8fafc;
  margin-bottom: 0;
}

.property-form-page .registration-hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.property-form-page .registration-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(248, 250, 252, 0.85);
}

.property-form-page .registration-content {
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

.property-form-page .form-section .section-header i {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

/* Form Content */
.registration-content {
  padding: 40px;
  position: relative;
  z-index: 0;
}

.support-form .registration-content {
  padding: 32px 40px 40px;
  padding-top: 32px;
}

.modern-registration-form {
  width: 100%;
}

/* Form Sections */
.form-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.form-section:hover {
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.08);
  border-color: #cbd5e0;
}

/* Status & Management Section - Highlighted for IOM users */
.form-section--status-management {
  /* Section is already at top in template, but keep order for flexbox layouts */
  order: -1;
}

.form-section--iom-highlight {
  background: linear-gradient(135deg, #e6f0ff 0%, #cce0ff 100%);
  border: 2px solid #0133A0;
  box-shadow: 0 4px 16px rgba(1, 51, 160, 0.2);
  position: relative;
}

.form-section--iom-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0133A0 0%, #2563eb 50%, #0133A0 100%);
  border-radius: 12px 12px 0 0;
}

.form-section--iom-highlight .section-header--iom {
  background: linear-gradient(135deg, #0133A0 0%, #01236d 100%);
  color: #ffffff;
  border-radius: 10px 10px 0 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -24px -24px 24px -24px;
}

.form-section--iom-highlight .section-header--iom i,
.form-section--iom-highlight .section-header--iom i.fas,
.form-section--iom-highlight .section-header--iom i.fa-cog {
  color: #ffffff !important;
  font-size: 20px;
  background: transparent !important;
}

.form-section--iom-highlight .section-header--iom h3,
.modern-registration-form .form-section--iom-highlight .section-header--iom h3,
.property-form-page .form-section--iom-highlight .section-header--iom h3 {
  color: #ffffff !important;
  margin: 0;
  font-weight: 700;
  flex: 1;
}

.form-section--iom-highlight .section-header--iom * {
  color: #ffffff !important;
}

.iom-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.section-header i {
  font-size: 24px;
  color: #0133a0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 51, 160, 0.1);
  border-radius: 8px;
}

/* Override for IOM highlight section */
.form-section--iom-highlight .section-header--iom i {
  color: #ffffff !important;
  background: transparent !important;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

/* Override for IOM highlight section */
.form-section--iom-highlight .section-header--iom h3 {
  color: #ffffff !important;
}

.section-body {
  padding-top: 8px;
}

.support-form-section .section-body {
  padding-top: 0;
  width: 100%;
}

/* Form Rows and Groups */
.form-row {
  margin-bottom: 24px;
  width: 100%;
  display: flex;
  gap: 20px;
}

.form-row:last-child {
  margin-bottom: 0;
}

.property-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.property-form .form-row.single-column {
  grid-template-columns: 1fr;
}

.property-form .form-group.full-width {
  grid-column: 1 / -1;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.form-row.four-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.form-row.single-column {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Support Form Row Styling - Consistent Widths */
.support-form-section .form-row,
.support-form-section .form-row.two-columns,
.support-form-section .form-row.single-column,
.support-form-row {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  display: grid;
  gap: 20px;
}

/* Two-column rows: First Name/Last Name, Email/Phone */
.support-form-section .form-row.two-columns,
.support-form-row.two-columns {
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

/* Single column row: Note */
.support-form-section .form-row.single-column,
.support-form-row.single-column {
  grid-template-columns: 1fr;
  width: 100%;
}

/* Form groups in two-column rows */
.support-form-section .form-row.two-columns .form-group,
.support-form-row.two-columns .support-form-group {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

/* Form groups in single column */
.support-form-section .form-row.single-column .form-group,
.support-form-row.single-column .support-form-group,
.support-form-section .form-group.full-width,
.support-form-group.full-width {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
  grid-column: 1 / -1;
}

/* Ensure section body doesn't add extra width */
.support-form-section .section-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

.form-group {
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* Ensure all form elements take full width of their container */
.form-group > *:not(.description) {
  max-width: 100%;
  box-sizing: border-box;
}

/* Form Labels */
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

/* Red asterisk for required fields */
.form-group label.form-required::after,
.form-textbox-label label.form-required::after {
  content: " *";
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

/* Style asterisks in labels to be red */
.form-group label .required-asterisk,
.form-textbox-label label .required-asterisk {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

/* Hide "Other" fields by default - JavaScript/States API will show them when needed */
.field-of-study-other-wrapper,
.language-other-wrapper {
  display: none;
}

/* Form Inputs */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group select,
.form-group textarea,
.form-input,
.form-select,
.form-tel,
.form-email {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
  background: #ffffff;
}

.form-group input:hover,
.form-group select:hover {
  border-color: #cbd5e0;
}

/* Select Dropdown - Enhanced styling */
.form-group select,
.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
  font-weight: 400;
}

.form-group select:focus,
.form-select:focus {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
  font-weight: 400;
}


/* Select option styling */
.form-group select option,
.form-select option {
  padding: 10px;
  color: #1e293b;
  background: #ffffff;
}

.form-group select option:hover,
.form-select option:hover {
  background: #f8fafc;
}

.form-group select option:checked,
.form-select option:checked {
  background: #dbeafe;
  color: #0133a0;
  font-weight: 500;
}

/* Disabled select */
.form-group select:disabled,
.form-select:disabled {
  background-color: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Disabled/Readonly fields for Support form */
.form-group input.form-control--disabled,
.form-group input[readonly],
.form-group input[disabled],
.form-group input.form-control--disabled:focus,
.form-group input[readonly]:focus,
.form-group input[disabled]:focus {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

.form-group input.form-control--disabled:hover,
.form-group input[readonly]:hover,
.form-group input[disabled]:hover {
  border-color: #e2e8f0;
  box-shadow: none;
}

/* Support Form Styles - Similar to Interested Properties Layout */
.support-form-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.support-form-wrapper .form-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.support-form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  animation: fadeInUp 0.5s ease;
  transition: all 0.3s ease;
}

.support-form-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.support-form-card .card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px 0 !important;
  padding-bottom: 16px;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-form-card .card-title i {
  color: #0133a0;
  flex-shrink: 0;
  font-size: 22px;
}

/* Support form rows - matching property form style */
.support-form-card .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.support-form-card .form-row:last-child {
  margin-bottom: 0;
}

.support-form-card .form-group {
  display: flex;
  flex-direction: column;
}

.support-form-card .form-group.full-width {
  grid-column: 1 / -1;
}

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

/* Support form header removed - using card title instead */

/* Support form sections - using form-card instead */
.support-form-card .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.support-form-card .form-row:last-child {
  margin-bottom: 0;
}

.support-form-card .form-group {
  display: flex;
  flex-direction: column;
}

.support-form-card .form-group.full-width {
  grid-column: 1 / -1;
}

/* Message section styling removed - using form-card instead */

/* Support section headers removed - using card title instead */

.form-help-text {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}

.form-help-text i {
  color: #3b82f6;
  font-size: 14px;
}

.support-form-section .section-body {
  padding-top: 0;
  padding: 0 40px 40px;
}

.support-form-section--message .section-body {
  padding: 0;
}

.support-form-section .form-row {
  gap: 24px;
}

.support-form-section .form-group {
  position: relative;
}

.support-form-section .form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.01em;
}

.support-form-section .form-group input[type="text"],
.support-form-section .form-group input[type="email"],
.support-form-section .form-group input[type="tel"],
.support-form-section .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: inherit;
  line-height: 1.5;
}

.support-form-section .form-group input[type="text"]:focus,
.support-form-section .form-group input[type="email"]:focus,
.support-form-section .form-group input[type="tel"]:focus,
.support-form-section .form-group textarea:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
  background: #ffffff;
}

.support-form-section .form-group input[type="text"]:hover:not(:disabled):not([readonly]),
.support-form-section .form-group input[type="email"]:hover:not(:disabled):not([readonly]),
.support-form-section .form-group input[type="tel"]:hover:not(:disabled):not([readonly]),
.support-form-section .form-group textarea:hover:not(:disabled):not([readonly]) {
  border-color: #cbd5e0;
}

/* Enhanced disabled field styling */
.support-form-section .form-group input.form-control--disabled,
.support-form-section .form-group input[readonly],
.support-form-section .form-group input[disabled] {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
  position: relative;
}

.support-form-section .form-group input.form-control--disabled::before,
.support-form-section .form-group input[readonly]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.3) 10px,
    rgba(255, 255, 255, 0.3) 20px
  );
  pointer-events: none;
  opacity: 0.3;
}

.support-form-section .form-group input.form-control--disabled:focus,
.support-form-section .form-group input[readonly]:focus,
.support-form-section .form-group input[disabled]:focus {
  border-color: #e2e8f0;
  box-shadow: none;
}

.support-form-actions {
  margin-top: 0;
  padding: 0;
  border-top: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  background: transparent;
}

.support-form-actions .btn-primary,
.support-form-actions input[type="submit"],
.support-form-actions button[type="submit"],
.support-form-actions #edit-submit {
  background: linear-gradient(135deg, #0133a0 0%, #0039a6 100%);
  color: #ffffff;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(1, 51, 160, 0.3);
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.support-form-actions .btn-primary i,
.support-form-actions input[type="submit"] i,
.support-form-actions button[type="submit"] i,
.support-form-actions #edit-submit i,
.support-form-actions .support-submit-btn i {
  font-size: 16px;
  margin-right: 8px;
}

/* Add icon to submit button using CSS */
.support-form-actions input[type="submit"]::before,
.support-form-actions button[type="submit"]::before,
.support-form-actions #edit-submit::before,
.support-form-actions .support-submit-btn::before {
  content: '\f1d8';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 10px;
  font-size: 16px;
}

.support-form-actions .btn-primary::before,
.support-form-actions input[type="submit"]::before,
.support-form-actions button[type="submit"]::before,
.support-form-actions #edit-submit::before,
.support-form-actions .support-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.support-form-actions .btn-primary:hover::before,
.support-form-actions input[type="submit"]:hover::before,
.support-form-actions button[type="submit"]:hover::before,
.support-form-actions #edit-submit:hover::before,
.support-form-actions .support-submit-btn:hover::before {
  left: 100%;
}

.support-form-actions .btn-primary:hover,
.support-form-actions input[type="submit"]:hover,
.support-form-actions button[type="submit"]:hover,
.support-form-actions #edit-submit:hover,
.support-form-actions .support-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(1, 51, 160, 0.4);
  background: linear-gradient(135deg, #0039a6 0%, #0133a0 100%);
}

.support-form-actions .btn-primary:active,
.support-form-actions input[type="submit"]:active,
.support-form-actions button[type="submit"]:active,
.support-form-actions #edit-submit:active,
.support-form-actions .support-submit-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(1, 51, 160, 0.3);
}

.support-form-actions .btn-primary::before,
.support-form-actions input[type="submit"]::before,
.support-form-actions button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.support-form-actions .btn-primary:hover::before,
.support-form-actions input[type="submit"]:hover::before,
.support-form-actions button[type="submit"]:hover::before {
  left: 100%;
}

.support-form-actions .btn-primary:hover,
.support-form-actions input[type="submit"]:hover,
.support-form-actions button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(1, 51, 160, 0.4);
  background: linear-gradient(135deg, #0039a6 0%, #0133a0 100%);
}

.support-form-actions .btn-primary:active,
.support-form-actions input[type="submit"]:active,
.support-form-actions button[type="submit"]:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(1, 51, 160, 0.3);
}

/* Support form textarea styling */
.support-form-section textarea {
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.7;
  padding: 16px 18px;
}

.support-form-section textarea:focus {
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
  background: #ffffff;
}

.support-form-section textarea::placeholder {
  color: #94a3b8;
  font-style: italic;
}

/* Info badge for disabled fields */
.support-form-section .form-group::after {
  content: '';
  display: none;
}

.support-form-section .form-group:has(input[readonly])::after,
.support-form-section .form-group:has(input[disabled])::after {
  content: '';
  display: none;
}

/* Enhanced form messages */
.support-form-container .messages {
  margin: 24px 40px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.support-form-container .messages--error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

.support-form-container .messages--status {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  color: #166534;
}

/* Webform Support Form Styles */
.support-webform-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

/* Ensure consistent padding matching other pages */
.content-wrapper .support-webform-wrapper {
  padding-top: 0;
  margin-top: 0;
}

/* Match dashboard page padding - content-wrapper has padding-block: 20px */
.content-wrapper {
  padding-top: 20px;
}

.support-webform-wrapper {
  margin-top: 0;
}

.support-webform-wrapper .webform-submission-form,
.support-webform-wrapper form {
  border: none !important;
  background: #ffffff;
  padding: 40px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(1, 51, 160, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}


.support-webform-wrapper .webform-submission-form::after,
.support-webform-wrapper form::after {
  content: "";
  display: table;
  clear: both;
}

.support-webform-wrapper .webform-element,
.support-webform-wrapper .js-form-item {
  border: none !important;
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
}

/* Remove bottom margin for two-column fields to keep rows together */
.support-webform-wrapper .form-item--name-first-name,
.support-webform-wrapper .form-item--name-last-name,
.support-webform-wrapper .form-item--email,
.support-webform-wrapper .form-item--phone,
.support-webform-wrapper .form-item--webform-name-first,
.support-webform-wrapper .form-item--webform-name-last,
.support-webform-wrapper .form-item--webform-email,
.support-webform-wrapper .form-item--webform-phone,
.support-webform-wrapper .form-item[class*="first-name"],
.support-webform-wrapper .form-item[class*="last-name"],
.support-webform-wrapper .form-item[class*="email"]:not([class*="first"]):not([class*="last"]):not([class*="name"]),
.support-webform-wrapper .form-item[class*="phone"],
.support-webform-wrapper .js-form-item:nth-of-type(1),
.support-webform-wrapper .js-form-item:nth-of-type(2),
.support-webform-wrapper .js-form-item:nth-of-type(3),
.support-webform-wrapper .js-form-item:nth-of-type(4) {
  margin-bottom: 0 !important;
}

.support-webform-wrapper .webform-element--container,
.support-webform-wrapper .form-item {
  border: none !important;
  background: transparent;
}

/* Arrange fields in rows with consistent widths using CSS Grid */
/* Create a wrapper for form rows */
.support-webform-wrapper .webform-submission-form > .form-wrapper,
.support-webform-wrapper form > .form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Create a container for two-column rows */
.support-webform-wrapper .form-item--name-first-name,
.support-webform-wrapper .form-item--name-last-name,
.support-webform-wrapper .form-item--email,
.support-webform-wrapper .form-item--phone {
  display: block;
}

/* First Name and Last Name in same row - use grid */
.support-webform-wrapper .form-item--name-first-name,
.support-webform-wrapper .form-item--webform-name-first,
.support-webform-wrapper .form-item[class*="first-name"],
.support-webform-wrapper .form-item[class*="first_name"],
.support-webform-wrapper .form-item[class*="firstname"],
.support-webform-wrapper .js-form-item:nth-of-type(1) {
  display: inline-block !important;
  width: calc(50% - 10px) !important;
  margin-right: 20px !important;
  margin-bottom: 0 !important;
  vertical-align: top;
  box-sizing: border-box;
  float: left;
}

.support-webform-wrapper .form-item--name-last-name,
.support-webform-wrapper .form-item--webform-name-last,
.support-webform-wrapper .form-item[class*="last-name"],
.support-webform-wrapper .form-item[class*="last_name"],
.support-webform-wrapper .form-item[class*="lastname"],
.support-webform-wrapper .js-form-item:nth-of-type(2) {
  display: inline-block !important;
  width: calc(50% - 10px) !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  vertical-align: top;
  box-sizing: border-box;
  float: left;
}

/* Email and Phone Number in same row - use grid */
.support-webform-wrapper .form-item--email,
.support-webform-wrapper .form-item--webform-email,
.support-webform-wrapper .form-item[class*="email"]:not([class*="first"]):not([class*="last"]):not([class*="name"]),
.support-webform-wrapper .js-form-item:nth-of-type(3) {
  display: inline-block !important;
  width: calc(50% - 10px) !important;
  margin-right: 20px !important;
  margin-bottom: 0 !important;
  vertical-align: top;
  box-sizing: border-box;
  float: left;
  clear: left;
}

.support-webform-wrapper .form-item--phone,
.support-webform-wrapper .form-item--webform-phone,
.support-webform-wrapper .form-item[class*="phone"],
.support-webform-wrapper .form-item[class*="telephone"],
.support-webform-wrapper .form-item[class*="mobile"],
.support-webform-wrapper .js-form-item:nth-of-type(4) {
  display: inline-block !important;
  width: calc(50% - 10px) !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  vertical-align: top;
  box-sizing: border-box;
  float: left;
}

/* Third row: Message/Note - same width as combined two-column rows */
.support-webform-wrapper .form-item textarea,
.support-webform-wrapper .form-item[class*="message"],
.support-webform-wrapper .form-item[class*="note"],
.support-webform-wrapper .form-item[class*="description"] {
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  float: none !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Ensure webform form items have consistent width - but override for two-column fields */
.support-webform-wrapper .form-item,
.support-webform-wrapper .js-form-item {
  box-sizing: border-box;
}

/* Override width for two-column fields only */
.support-webform-wrapper .form-item--name-first-name,
.support-webform-wrapper .form-item--name-last-name,
.support-webform-wrapper .form-item--email,
.support-webform-wrapper .form-item--phone,
.support-webform-wrapper .form-item--webform-name-first,
.support-webform-wrapper .form-item--webform-name-last,
.support-webform-wrapper .form-item--webform-email,
.support-webform-wrapper .form-item--webform-phone,
.support-webform-wrapper .form-item[class*="first-name"],
.support-webform-wrapper .form-item[class*="last-name"],
.support-webform-wrapper .form-item[class*="email"]:not([class*="first"]):not([class*="last"]):not([class*="name"]),
.support-webform-wrapper .form-item[class*="phone"],
.support-webform-wrapper .js-form-item:nth-of-type(1),
.support-webform-wrapper .js-form-item:nth-of-type(2),
.support-webform-wrapper .js-form-item:nth-of-type(3),
.support-webform-wrapper .js-form-item:nth-of-type(4) {
  width: auto !important;
  max-width: none !important;
}

/* Ensure webform rows have consistent width */
.support-webform-wrapper .webform-submission-form > .form-wrapper,
.support-webform-wrapper form > .form-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Clear floats after rows */
.support-webform-wrapper .form-item--name-last-name::after,
.support-webform-wrapper .form-item--phone::after,
.support-webform-wrapper .js-form-item:nth-of-type(2)::after,
.support-webform-wrapper .js-form-item:nth-of-type(4)::after {
  content: "";
  display: table;
  clear: both;
}

/* Remove all borders from webform elements */
.support-webform-wrapper .webform-element,
.support-webform-wrapper .webform-element-wrapper,
.support-webform-wrapper .form-item,
.support-webform-wrapper .js-form-item,
.support-webform-wrapper fieldset,
.support-webform-wrapper .fieldset-wrapper {
  border: none !important;
  box-shadow: none !important;
}

.support-webform-wrapper .webform-element label,
.support-webform-wrapper .form-item label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: block;
}

.support-webform-wrapper .webform-element input[type="text"],
.support-webform-wrapper .webform-element input[type="email"],
.support-webform-wrapper .webform-element input[type="tel"],
.support-webform-wrapper .webform-element textarea,
.support-webform-wrapper .form-item input[type="text"],
.support-webform-wrapper .form-item input[type="email"],
.support-webform-wrapper .form-item input[type="tel"],
.support-webform-wrapper .form-item textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.support-webform-wrapper .webform-element input[type="text"]:hover,
.support-webform-wrapper .webform-element input[type="email"]:hover,
.support-webform-wrapper .webform-element input[type="tel"]:hover,
.support-webform-wrapper .webform-element textarea:hover,
.support-webform-wrapper .form-item input[type="text"]:hover,
.support-webform-wrapper .form-item input[type="email"]:hover,
.support-webform-wrapper .form-item input[type="tel"]:hover,
.support-webform-wrapper .form-item textarea:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.support-webform-wrapper .webform-element input:focus,
.support-webform-wrapper .webform-element textarea:focus,
.support-webform-wrapper .form-item input:focus,
.support-webform-wrapper .form-item textarea:focus {
  outline: none;
  border-color: #0133a0 !important;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1), 0 2px 8px rgba(1, 51, 160, 0.15);
  transform: translateY(-1px);
}

/* Responsive design for support form */
@media (max-width: 768px) {
  .support-form-page {
    padding: 16px;
  }

  .support-form-header {
    padding: 36px 24px;
  }

  .support-form-header__icon {
    width: 80px;
    height: 80px;
  }

  .support-form-header__icon i {
    font-size: 36px;
  }

  .support-form-header__title {
    font-size: 26px;
  }

  .support-form-header__subtitle {
    font-size: 15px;
  }

  .support-section-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 24px;
    gap: 16px;
  }

  .support-form-section .section-body {
    padding: 0 24px 32px;
  }

  .support-form-section--message {
    margin: 24px;
    padding: 24px;
  }

  .support-form-actions {
    flex-direction: column;
    padding: 24px;
  }

  .support-form-actions .btn-primary,
  .support-form-actions input[type="submit"],
  .support-form-actions button[type="submit"] {
    width: 100%;
    min-width: auto;
  }

  .support-form-container .messages {
    margin: 16px 24px;
  }
}

@media (max-width: 480px) {
  .support-form-page {
    padding: 12px;
  }

  .support-form-container {
    border-radius: 16px;
  }

  .support-form-header {
    padding: 32px 20px;
  }

  .support-form-header__title {
    font-size: 22px;
  }

  .support-section-header {
    padding: 0 20px;
  }

  .support-form-section .section-body {
    padding: 0 20px 24px;
  }

  .support-form-section--message {
    margin: 16px;
    padding: 20px;
  }

  /* Stack fields on mobile */
  .support-webform-wrapper .form-item--name-first-name,
  .support-webform-wrapper .form-item--name-last-name,
  .support-webform-wrapper .form-item--email,
  .support-webform-wrapper .form-item--phone,
  .support-webform-wrapper .form-item[class*="first"],
  .support-webform-wrapper .form-item[class*="last"],
  .support-webform-wrapper .form-item[class*="email"],
  .support-webform-wrapper .form-item[class*="phone"] {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
  }
}

/* Disabled IMO Email Display Field */
.form-group input.imo-email-display,
.form-group input[readonly].imo-email-display,
.form-group input[disabled].imo-email-display {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

.form-group input.imo-email-display:focus,
.form-group input[readonly].imo-email-display:focus,
.form-group input[disabled].imo-email-display:focus {
  border-color: #e2e8f0;
  box-shadow: none;
  background-color: #f8fafc;
}

/* Password Strength Indicators */
.password-strength {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.password-strength__title {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.password-strength__text {
  font-weight: 600;
  font-size: 13px;
}

.password-strength__meter {
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
  position: relative;
}

.password-strength__indicator {
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.password-strength__indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Strength levels */
.password-strength__indicator.is-weak {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.password-strength__indicator.is-fair {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.password-strength__indicator.is-good {
  background: linear-gradient(90deg, #0133a0 0%, #015dd1 100%);
}

.password-strength__indicator.is-strong {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

/* Text colors */
.password-strength__indicator.is-weak ~ .password-strength__title .password-strength__text {
  color: #ef4444;
}

.password-strength__indicator.is-fair ~ .password-strength__title .password-strength__text {
  color: #f59e0b;
}

.password-strength__indicator.is-good ~ .password-strength__title .password-strength__text {
  color: #0133a0;
}

.password-strength__indicator.is-strong ~ .password-strength__title .password-strength__text {
  color: #10b981;
}

/* Error Messages */
.form-item--error-message,
.messages--error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 5px 0;
  font-size: 14px;
  color: #dc2626;
  animation: slideDown 0.3s ease-out;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-item--error-message::before,
.messages--error::before {
  content: "⚠";
  font-size: 18px;
  flex-shrink: 0;
}

.form-item--error-message strong {
  font-weight: 600;
}

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

/* Error state for inputs */
.form-item--error .form-input,
.form-item--error .form-select,
.form-input.error,
.form-select.error {
  border-color: #ef4444 !important;
  background: #fef2f2;
}

.form-item--error .form-input:focus,
.form-item--error .form-select:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Success Messages */
.messages--status {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid #6ee7b7;
  border-left: 4px solid #10b981;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.messages--status::before {
  content: "✓";
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Warning Messages */
.messages--warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 2px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.messages--warning::before {
  content: "ℹ";
  font-size: 18px;
  flex-shrink: 0;
}

/* Registration Actions */
.registration-actions {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid #e2e8f0;
  text-align: center;
}

.registration-actions--inline {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.registration-actions input[type="submit"],
.registration-actions button[type="submit"],
.registration-actions .form-submit {
  width: 100%;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 52px;
  height: auto;
  line-height: 1.2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.registration-actions--inline input[type="submit"],
.registration-actions--inline button[type="submit"],
.registration-actions--inline .form-submit,
.registration-actions--inline a.button,
.registration-actions--inline a.button--danger {
  width: 140px;
  min-width: 140px;
  flex: 0 0 140px;
  text-align: center;
  padding: 16px 32px !important;
  min-height: 52px;
  height: auto;
  line-height: 1.2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.registration-actions input[type="submit"]:hover,
.registration-actions button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.registration-actions input[type="submit"]:active,
.registration-actions button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* Action wrappers */
.registration-actions--inline .action-wrapper {
  flex: 0 0 auto;
}

/* Preview button styling - Yellow */
/* Save button styling - Green */
.registration-actions--inline .action-wrapper--submit input[type="submit"],
.registration-actions--inline .action-wrapper--submit button,
.registration-actions--inline input[type="submit"][id*="submit"]:not([name*="preview"]):not([name*="delete"]),
.registration-actions--inline button[id*="submit"]:not([name*="preview"]):not([name*="delete"]) {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
  color: #ffffff !important;
}

.registration-actions--inline .action-wrapper--submit input[type="submit"]:hover,
.registration-actions--inline .action-wrapper--submit button:hover,
.registration-actions--inline input[type="submit"][id*="submit"]:not([name*="preview"]):not([name*="delete"]):hover,
.registration-actions--inline button[id*="submit"]:not([name*="preview"]):not([name*="delete"]):hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Preview button styling - Yellow (using specific ID selector) */
input#edit-preview,
button#edit-preview,
.action-wrapper--preview input#edit-preview,
.action-wrapper--preview button#edit-preview,
.registration-actions input#edit-preview,
.registration-actions button#edit-preview {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3) !important;
  color: #ffffff !important;
  padding: 16px 32px !important;
  min-height: 52px !important;
  height: auto !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

input#edit-preview:hover,
button#edit-preview:hover,
.action-wrapper--preview input#edit-preview:hover,
.action-wrapper--preview button#edit-preview:hover,
.registration-actions input#edit-preview:hover,
.registration-actions button#edit-preview:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Delete button styling - Red */
.registration-actions--inline .action-wrapper--delete input[type="submit"],
.registration-actions--inline .action-wrapper--delete button,
.registration-actions--inline .action-wrapper--delete a,
.registration-actions--inline input[type="submit"][name*="delete"],
.registration-actions--inline button[name*="delete"],
.registration-actions--inline .button--delete,
.registration-actions--inline a.button--delete,
.registration-actions--inline a.button--danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 32px !important;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 140px;
  min-width: 140px;
  min-height: 52px !important;
  height: auto !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  text-align: center;
}

.registration-actions--inline .action-wrapper--delete input[type="submit"]:hover,
.registration-actions--inline .action-wrapper--delete button:hover,
.registration-actions--inline .action-wrapper--delete a:hover,
.registration-actions--inline input[type="submit"][name*="delete"]:hover,
.registration-actions--inline button[name*="delete"]:hover,
.registration-actions--inline .button--delete:hover,
.registration-actions--inline a.button--delete:hover,
.registration-actions--inline a.button--danger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Login Link */
.login-link {
  margin-top: 24px;
  font-size: 15px;
  color: #64748b;
}

.login-link a {
  color: #0133a0;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.login-link a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0133a0;
  transition: width 0.3s ease;
}

.login-link a:hover {
  color: #015dd1;
}

.login-link a:hover::after {
  width: 100%;
}

/* Description Text */
.form-group .description {
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.5;
}

/* Radio Buttons */
.form-group input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #0133a0;
  cursor: pointer;
}

.form-radios .form-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.form-radios .form-item:hover {
  background: #f8fafc;
}

/* Checkboxes */
.form-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #0133a0;
  cursor: pointer;
}

/* Accessibility Features Checkboxes - Enhanced UI */
.field--name-field-accessibility-features {
  margin-bottom: 20px;
}

.field--name-field-accessibility-features fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.field--name-field-accessibility-features .fieldset-legend {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  padding: 0;
}

.field--name-field-accessibility-features .fieldset-wrapper {
  padding: 0;
}

.field--name-field-accessibility-features .form-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.field--name-field-accessibility-features .form-checkboxes .form-item {
  margin: 0;
  padding: 0;
  position: relative;
}

.field--name-field-accessibility-features .form-checkboxes .form-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.field--name-field-accessibility-features .form-checkboxes .form-item label {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin: 0;
  min-height: 48px;
  position: relative;
  padding-left: 48px;
}

.field--name-field-accessibility-features .form-checkboxes .form-item label::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.field--name-field-accessibility-features .form-checkboxes .form-item label::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 8px;
  height: 12px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.field--name-field-accessibility-features .form-checkboxes .form-item input[type="checkbox"]:checked + label {
  background: #eff6ff;
  border-color: #0133a0;
  color: #0133a0;
}

.field--name-field-accessibility-features .form-checkboxes .form-item input[type="checkbox"]:checked + label::before {
  background: #0133a0;
  border-color: #0133a0;
}

.field--name-field-accessibility-features .form-checkboxes .form-item input[type="checkbox"]:checked + label::after {
  transform: translateY(-50%) rotate(45deg) scale(1);
}

.field--name-field-accessibility-features .form-checkboxes .form-item label:hover {
  background: #f1f5f9;
  border-color: #cbd5e0;
  box-shadow: 0 2px 8px rgba(1, 51, 160, 0.08);
}

.field--name-field-accessibility-features .form-checkboxes .form-item input[type="checkbox"]:checked + label:hover {
  background: #dbeafe;
  border-color: #0133a0;
  box-shadow: 0 2px 12px rgba(1, 51, 160, 0.15);
}

.field--name-field-accessibility-features .form-checkboxes .form-item input[type="checkbox"]:focus + label {
  outline: none;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
}

/* Responsive adjustments for accessibility features */
@media (max-width: 768px) {
  .field--name-field-accessibility-features .form-checkboxes {
    grid-template-columns: 1fr;
  }
}


/* Hide Password Strength when Empty */
.password-strength:empty {
  display: none;
}

/* Case Worker Assignment Field */
#case-worker-wrapper {
  display: none !important;
}

.show-case-worker-field #case-worker-wrapper {
  display: block !important;
  animation: slideDown 0.3s ease-out;
}

/* Make sure the section is visible when the form has the class */
form.show-case-worker-field #case-worker-wrapper {
  display: block !important;
}

/* Field Prefixes/Suffixes */
.field-prefix,
.field-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  font-size: 14px;
  color: #64748b;
}

.field-prefix {
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.field-suffix {
  border-left: none;
  border-radius: 0 8px 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .registration-page {
    padding: 20px 10px;
  }

  .registration-header {
    padding: 30px 20px;
  }

  .registration-header h1 {
    font-size: 24px;
    flex-direction: column;
    gap: 8px;
  }

  .registration-header h1 i {
    font-size: 28px;
  }

  .registration-content {
    padding: 24px 20px;
  }

  .form-section {
    padding: 20px;
  }

  .form-row.two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row.four-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .section-header h3 {
    font-size: 16px;
  }

  .registration-actions input[type="submit"],
  .registration-actions button[type="submit"] {
    font-size: 15px;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .registration-header h1 {
    font-size: 20px;
  }

  .registration-header p {
    font-size: 14px;
  }

  .form-section {
    padding: 16px;
    margin-bottom: 16px;
  }

  .section-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .section-header i {
    font-size: 20px;
    width: 28px;
    height: 28px;
  }

  .registration-content {
    padding: 20px 16px;
  }
}

/* Loading State */
.registration-actions input[type="submit"].is-loading,
.registration-actions button[type="submit"].is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.registration-actions input[type="submit"].is-loading::after,
.registration-actions button[type="submit"].is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* File Upload Field Styling */
.form-managed-file {
  background: #ffffff;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.form-managed-file:hover {
  border-color: #4299e1;
  background: #f7fafc;
}

.form-managed-file input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-managed-file input[type="file"]:hover {
  border-color: #4299e1;
  background: #ebf8ff;
}

.form-managed-file .file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f7fafc;
  border-radius: 6px;
  margin-top: 10px;
}

.form-managed-file .file a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.form-managed-file .file a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.form-managed-file .button {
  margin-top: 10px;
  padding: 8px 16px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.form-managed-file .button:hover {
  background: #dc2626;
}

.form-managed-file .description {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* File upload AJAX wrapper */
#documentation-upload-wrapper {
  transition: all 0.3s ease;
}

/* Hide file upload by default (will be shown via #states) */
#documentation-upload-wrapper.js-hide {
  display: none;
}

/* HTML5 File Input Styling for Landlord Registration */
.form-group input[type="file"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  border-color: #0133a0;
  background: #ebf8ff;
}

.form-group input[type="file"]:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
}

/* Custom file upload wrapper styling */
.form-group input[type="file"]::file-selector-button {
  padding: 8px 16px;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #0133a0 0%, #015dd1 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
  background: linear-gradient(135deg, #015dd1 0%, #0133a0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(1, 51, 160, 0.3);
}

/* Number input specific styling */
.form-group input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  appearance: textfield;
  -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-group input[type="number"]:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
  background: #ffffff;
}

.form-group input[type="number"]:hover {
  border-color: #cbd5e0;
}

/* Textarea specific styling */
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.form-group textarea:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
  background: #ffffff;
}

.form-group textarea:hover {
  border-color: #cbd5e0;
}

/* File upload wrapper animation */
#documentation-upload-wrapper {
  overflow: hidden;
  transition: all 0.3s ease;
}

#documentation-upload-wrapper[style*="display: block"],
#documentation-upload-wrapper:not([style*="display: none"]) {
  animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
  }
}

/* Upload help text styling */
.upload-help-text {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ebf8ff;
  border-left: 3px solid #0133a0;
  border-radius: 6px;
  margin-top: 8px;
}

.upload-help-text i {
  color: #0133a0;
  flex-shrink: 0;
}

/* ========================================
   PHONE NUMBER FIELD STYLING (intl-tel-input)
   ======================================== */

/* Phone field container */
.phone-number-field {
  position: relative;
  width: 100% !important;
  max-width: 100%;
  display: block;
}

/* Country dropdown and flag container */
.phone-number-field .iti {
  width: 100% !important;
  max-width: 100%;
  display: block;
}

/* Ensure proper width in form-group */
.form-group .phone-number-field {
  width: 100% !important;
}

/* Phone input field */
.phone-number-field .iti__tel-input {
  width: 100% !important;
  padding: 12px 16px 12px 56px !important;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0 !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  height: auto !important;
  box-sizing: border-box;
}

.phone-number-field .iti__tel-input:hover {
  border-color: #cbd5e0 !important;
}

.phone-number-field .iti__tel-input:focus {
  outline: none;
  border-color: #0133a0 !important;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1) !important;
  background: #ffffff;
}

/* Country selector button */
.phone-number-field .iti__selected-country {
  background: #f8fafc;
  border-right: 2px solid #e2e8f0;
  border-radius: 8px 0 0 8px;
  padding: 0 4px 0 8px;
  min-width: 50px;
  max-width: 50px;
  transition: all 0.2s ease;
}

.phone-number-field .iti__selected-country:hover {
  background: #f1f5f9;
}

.phone-number-field .iti__selected-country:focus {
  outline: none;
  background: #e2e8f0;
}

/* Flag */
.phone-number-field .iti__flag {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* Selected country primary container */
.phone-number-field .iti__selected-country-primary {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dropdown arrow */
.phone-number-field .iti__arrow {
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #64748b;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.phone-number-field .iti__selected-country[aria-expanded="true"] .iti__arrow {
  transform: rotate(180deg);
  border-top-color: #0133a0;
}

/* Country dropdown container */
.phone-number-field .iti__dropdown-content {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-top: 4px;
  padding: 8px 0;
  z-index: 1000;
}

/* Search input in dropdown */
.phone-number-field .iti__search-input {
  width: calc(100% - 16px);
  margin: 8px;
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.phone-number-field .iti__search-input:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 3px rgba(1, 51, 160, 0.1);
}

/* Country list */
.phone-number-field .iti__country-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

/* Custom scrollbar for country list */
.phone-number-field .iti__country-list::-webkit-scrollbar {
  width: 8px;
}

.phone-number-field .iti__country-list::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.phone-number-field .iti__country-list::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.phone-number-field .iti__country-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Individual country item */
.phone-number-field .iti__country {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.phone-number-field .iti__country:hover {
  background: #f8fafc;
}

.phone-number-field .iti__country.iti__highlight {
  background: #ebf8ff;
  color: #0133a0;
  font-weight: 500;
}

.phone-number-field .iti__country.iti__active {
  background: #dbeafe;
  color: #0133a0;
  font-weight: 600;
}

/* Country name and dial code */
.phone-number-field .iti__country-name {
  flex: 1;
  font-size: 14px;
  color: #334155;
}

.phone-number-field .iti__dial-code {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.phone-number-field .iti__country.iti__highlight .iti__dial-code,
.phone-number-field .iti__country.iti__active .iti__dial-code {
  color: #0133a0;
}

/* Error message styling - HIDE BY DEFAULT */
.phone-number-field .phone-error-msg {
  display: none;
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  animation: slideDown 0.3s ease-out;
}

/* Show error message only when there's an actual error */
.phone-number-field .iti__tel-input.error ~ .field-suffix .phone-error-msg,
.phone-number-field.has-error .phone-error-msg {
  display: block;
}

/* Error state for phone input */
.phone-number-field .iti__tel-input.error {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.phone-number-field .iti__tel-input.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Valid state for phone input */
.phone-number-field .iti__tel-input.valid {
  border-color: #10b981 !important;
}

.phone-number-field .iti__tel-input.valid:focus {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

/* Accessibility improvements */
.phone-number-field .iti__a11y-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Loading state */
.phone-number-field .iti__tel-input[disabled] {
  background: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Fix for inline dropdown width */
.phone-number-field .iti--inline-dropdown .iti__dropdown-content {
  min-width: 300px;
}

/* Preferred countries divider */
.phone-number-field .iti__divider {
  padding: 0;
  margin: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

/* Hide the field suffix error container by default */
.phone-number-field .field-suffix {
  display: none;
}

/* Show field suffix only when there's an error */
.phone-number-field.has-error .field-suffix {
  display: block;
  margin-top: 6px;
}

/* Responsive adjustments for phone field */
@media (max-width: 768px) {
  .phone-number-field .iti__tel-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .phone-number-field .iti__dropdown-content {
    max-width: calc(100vw - 32px);
  }
}

/* Animation for showing/hiding error */
@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.phone-number-field .iti__tel-input.error {
  animation: errorShake 0.5s ease-in-out;
}

/* Consistent styling for all registration forms - Blue/White Theme */
.registration-page {
  background: #f8fafc !important;
}

.registration-hero {
  background: #0033a0;
  border-radius: 12px 12px 0 0;
  padding: 32px;
  text-align: center;
  margin-bottom: 0;
}

.registration-hero h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
}

.registration-hero p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
}

/* Consistent form element styling */
.modern-registration-form .form-group label,
.modern-registration-form .form-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.modern-registration-form .section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0033a0;
  margin: 0;
}

.modern-registration-form .section-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
}

.modern-registration-form .section-header i {
  color: #0033a0;
  margin-right: 8px;
}

/* Override for IOM highlight section - ensure white color */
.modern-registration-form .form-section--iom-highlight .section-header--iom i {
  color: #ffffff !important;
  background: transparent !important;
}

.modern-registration-form .form-section--iom-highlight .section-header--iom h3 {
  color: #ffffff !important;
}

/* Phone number field - improved country dropdown */
.modern-registration-form .field--type-telephone,
.modern-registration-form .field--name-field-phone-number,
.modern-registration-form .field--name-field-phone {
  width: 100%;
}

.modern-registration-form .field--type-telephone .form-item,
.modern-registration-form .field--name-field-phone-number .form-item,
.modern-registration-form .field--name-field-phone .form-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.modern-registration-form .field--type-telephone select,
.modern-registration-form .field--name-field-phone-number select,
.modern-registration-form .field--name-field-phone select,
.modern-registration-form .phone-number-field select {
  width: 140px !important;
  min-width: 140px;
  padding: 12px 36px 12px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 14px;
  color: #1f2937;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.modern-registration-form .field--type-telephone select:focus,
.modern-registration-form .field--name-field-phone-number select:focus,
.modern-registration-form .field--name-field-phone select:focus,
.modern-registration-form .phone-number-field select:focus {
  border-color: #0033a0 !important;
  box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.12) !important;
}

.modern-registration-form .field--type-telephone input[type="tel"],
.modern-registration-form .field--name-field-phone-number input[type="tel"],
.modern-registration-form .field--name-field-phone input[type="tel"],
.modern-registration-form .phone-number-field input[type="tel"] {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
}

.modern-registration-form .field--type-telephone input[type="tel"]:focus,
.modern-registration-form .field--name-field-phone-number input[type="tel"]:focus,
.modern-registration-form .field--name-field-phone input[type="tel"]:focus,
.modern-registration-form .phone-number-field input[type="tel"]:focus {
  border-color: #0033a0 !important;
  box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.12) !important;
}

/* Update all button colors to Green */
.modern-registration-form .registration-actions input[type="submit"],
.modern-registration-form .registration-actions button[type="submit"] {
  background: #0033a0 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.modern-registration-form .registration-actions input[type="submit"]:hover,
.modern-registration-form .registration-actions button[type="submit"]:hover {
  background: #0033a0 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 51, 160, 0.5) !important;
}

/* Update focus colors to #0033a0 */
.modern-registration-form input:focus,
.modern-registration-form select:focus,
.modern-registration-form textarea:focus {
  border-color: #0033a0 !important;
  box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.12) !important;
}

/* Update section header colors */
.modern-registration-form .section-header h3 {
  color: #0033a0 !important;
}

/* Override for IOM highlight section - ensure white color */
.modern-registration-form .form-section--iom-highlight .section-header--iom h3 {
  color: #ffffff !important;
}

.modern-registration-form .section-header i {
  color: #0033a0 !important;
}

/* Override for IOM highlight section - ensure white color */
.modern-registration-form .form-section--iom-highlight .section-header--iom i {
  color: #ffffff !important;
  background: transparent !important;
}

/* Links */
.modern-registration-form .login-link a {
  color: #0033a0;
  font-weight: 600;
  text-decoration: none;
}

.modern-registration-form .login-link a:hover {
  text-decoration: underline;
}

/* Nationality flags styling */
.modern-registration-form select[name*="field_nationality"] option,
.modern-registration-form select[id*="field_nationality"] option {
  padding: 8px 12px;
}

/* Flag emoji styling in Select2 dropdown */
.select2-results__option .flag-emoji,
.select2-selection__rendered .flag-emoji {
  display: inline-block;
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
  line-height: 1;
}

.select2-selection__rendered {
  display: flex;
  align-items: center;
}

/* Ensure flags display properly in native selects */
select[name*="field_nationality"] option,
select[id*="field_nationality"] option {
  font-size: 15px;
  line-height: 1.6;
}

/* Volunteer form validation errors */
form#volunteerForm small.error,
form#volunteer-register-form small.error {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  width: 100%;
}

form#volunteerForm small.error[style*="block"],
form#volunteer-register-form small.error[style*="block"],
form#volunteerForm small.error:not(:empty),
form#volunteer-register-form small.error:not(:empty) {
  display: block !important;
  visibility: visible !important;
}

form#volunteerForm .is-invalid,
form#volunteer-register-form .is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4m0 4.8-.4-.4-.4.4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

form#volunteerForm select.is-invalid,
form#volunteer-register-form select.is-invalid {
  background-position: right 0.75rem center;
}

/* Select2 custom formatting for flags */
.select2-container--default .select2-results__option[data-flag]::before {
  content: attr(data-flag);
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}

.form-group--privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.form-group--privacy .privacy-consent-checkbox {
  margin-top: 4px;
}

.form-group--privacy .privacy-consent-label {
  display: inline;
}

/* Media Section Improvements */
.form-section--media {
  margin-bottom: 24px;
}

.form-section--media .section-body {
  padding: 16px;
}

.media-thumbnails-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  max-height: 200px;
  overflow-y: auto;
}

.media-thumbnail-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.3s ease;
}

.media-thumbnail-item:hover {
  border-color: #0133a0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumbnail-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: #64748b;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.3);
  z-index: 10;
  padding: 0;
}

.media-thumbnail-remove:hover {
  background: #475569;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(71, 85, 105, 0.4);
}

.media-thumbnail-remove:active {
  transform: scale(0.95);
}

.media-thumbnail-remove i {
  font-size: 11px;
}

/* Hide all file information and show thumbnails in file widget */
.form-section--media .file-widget .file,
.form-section--media .form-managed-file .file {
  display: none !important;
}

.form-section--media .file-widget .file--image,
.form-section--media .form-managed-file .file--image {
  display: none !important;
}

.form-section--media .file-widget .file__content,
.form-section--media .form-managed-file .file__content {
  display: none !important;
}

.form-section--media .file-widget .file__name,
.form-section--media .form-managed-file .file__name {
  display: none !important;
}

.form-section--media .file-widget .file a,
.form-section--media .form-managed-file .file a {
  display: none !important;
}

.form-section--media .file-widget .file__size,
.form-section--media .form-managed-file .file__size {
  display: none !important;
}

.form-section--media .file-widget .file__mime,
.form-section--media .form-managed-file .file__mime {
  display: none !important;
}

.form-section--media .file-widget .file__meta,
.form-section--media .form-managed-file .file__meta {
  display: none !important;
}

.form-section--media .file-widget .description,
.form-section--media .form-managed-file .description {
  display: none !important;
}

.form-section--media .file-widget .file__description,
.form-section--media .form-managed-file .file__description {
  display: none !important;
}

.form-section--media .file-widget .file__details,
.form-section--media .form-managed-file .file__details {
  display: none !important;
}

.form-section--media .file-widget .file__info,
.form-section--media .form-managed-file .file__info {
  display: none !important;
}

/* Hide file list items but keep the upload input visible */
.form-section--media .file-widget .file-list,
.form-section--media .form-managed-file .file-list {
  display: none !important;
}

.form-section--media .file-widget .file-list-item,
.form-section--media .form-managed-file .file-list-item {
  display: none !important;
}

/* Keep only the file input visible for uploading */
.form-section--media .file-widget input[type="file"],
.form-section--media .form-managed-file input[type="file"] {
  display: block !important;
}

/* Style file remove buttons as icons only */
.form-section--media .file-widget button.file-remove,
.form-section--media .file-widget .file-remove-button,
.form-section--media .file-widget a.file-remove,
.form-section--media .form-managed-file button.file-remove,
.form-section--media .form-managed-file .file-remove-button,
.form-section--media .form-managed-file a.file-remove,
.form-section--media .form-managed-file button.remove,
.form-section--media .file-widget button.remove {
  width: 24px;
  height: 24px;
  padding: 0;
  background: #64748b;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.3);
  min-width: 24px;
}

.form-section--media .file-widget button.file-remove:hover,
.form-section--media .file-widget .file-remove-button:hover,
.form-section--media .file-widget a.file-remove:hover,
.form-section--media .form-managed-file button.file-remove:hover,
.form-section--media .form-managed-file .file-remove-button:hover,
.form-section--media .form-managed-file a.file-remove:hover,
.form-section--media .form-managed-file button.remove:hover,
.form-section--media .file-widget button.remove:hover {
  background: #475569;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(71, 85, 105, 0.4);
  color: #ffffff;
}

.form-section--media .file-widget button.file-remove::before,
.form-section--media .file-widget .file-remove-button::before,
.form-section--media .file-widget a.file-remove::before,
.form-section--media .form-managed-file button.file-remove::before,
.form-section--media .form-managed-file .file-remove-button::before,
.form-section--media .form-managed-file a.file-remove::before,
.form-section--media .form-managed-file button.remove::before,
.form-section--media .file-widget button.remove::before {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
}

.form-section--media .file-widget button.file-remove span,
.form-section--media .file-widget .file-remove-button span,
.form-section--media .file-widget a.file-remove span,
.form-section--media .form-managed-file button.file-remove span,
.form-section--media .form-managed-file .file-remove-button span,
.form-section--media .form-managed-file a.file-remove span,
.form-section--media .form-managed-file button.remove span,
.form-section--media .file-widget button.remove span {
  display: none;
}

/* Compact file upload widget */
.form-section--media .form-managed-file {
  margin-bottom: 0;
}

.form-section--media .file-widget {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

/* Volunteer drag upload box */
.drag-upload-box {
  position: relative;
  border: 1px dashed #d0d7e2;
  border-radius: 12px;
  background: #f8fafc;
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.drag-upload-box.drag-over {
  border-color: #0133a0;
  box-shadow: 0 6px 18px rgba(1, 51, 160, 0.15);
  background: #eef3ff;
}

.drag-upload-box .native-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.drag-upload-box-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  min-height: 120px;
}

.drag-upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0133a0 0%, #01236d 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  flex-shrink: 0;
}

.drag-upload-icon .icon-upload,
.drag-upload-icon .icon-upload:before,
.drag-upload-icon span.icon-upload {
  color: #ffffff !important;
}

.drag-upload-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drag-upload-text .text20 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.drag-upload-text .helper-text {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.drag-upload-box .custom-file-trigger.btn {
  align-self: flex-start;
  min-width: 140px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(1, 51, 160, 0.18);
}

.drag-upload-box .file-info {
  margin-top: 8px;
  font-size: 13px;
  color: #1f2937;
}

.drag-upload-box .file-info strong {
  color: #0f172a;
}

.drag-upload-box input[type="file"].form-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drag-upload-box .js-form-submit,
.drag-upload-box .form-submit {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-section--media .file-widget:hover {
  border-color: #0133a0;
  background: #f1f5f9;
}

/* Remove card-title margin */
.card-title {
  margin: 0 !important;
}


.form-item-privacy-consent {
  padding-left: 28px;
}

.form-item-privacy-consent .form-checkbox {
  position: absolute;
  left: 0px;
  top: -3px;
}
.form-item--error-message, .messages--error {
  background: none !important;
  border-radius: 0px !important;
  align-items: center !important;
  padding: 0px !important;
  border: none !important;
  font-weight: 400;


}
.form-item--error-message::before, .messages--error::before {
  display: none;
}
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group input[type="password"], .form-group select, .form-group textarea, .form-input, .form-select, .form-tel, .form-email {
  border-width: 1px !important;
}
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"], .form-group input[type="password"], .form-group select, .form-group textarea, .form-input, .form-select, .form-tel, .form-email {
  box-shadow: none !important;
}
.iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])) .iti__selected-country-primary:hover, .iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])) .iti__selected-country:has(+ .iti__dropdown-content:hover) .iti__selected-country-primary {
  background: none !important;
}
.phone-number-field .iti__selected-country {
  min-width: 57px !important;
  background: #fff !important;  
  height: 40px !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
  min-width: 100% !important;
}
/* Force Select2 search field to be input type, not textarea */
.select2-container--default .select2-selection--multiple .select2-search--inline textarea.select2-search__field {
  display: none !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline input.select2-search__field {
  display: inline-block !important;
  min-height: auto !important;
  padding: 0px 10px !important;
  height: 33px !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  resize: none !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
  height: 30px !important;
  min-width: 100px !important;
}

.select2-container--default .select2-selection--multiple {
  min-height: 44px !important;
  height: auto !important;
  min-height: 44px !important;
  padding: 0px 10px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #e4e4e4 !important;
  border: 1px solid #aaa !important;
  color: #333 !important;
  padding-left: 14px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #333 !important;
  top: 6px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  padding-left: 4px !important;
}
.select2-container--default .select2-selection--multiple .select2-search--inline input.select2-search__field {
  min-width: 0 !important;
  width: 0px !important;
}
.form-item--error-message strong {
  font-weight: 400 !important;
}
.form-item--error .form-input, .form-item--error .form-select, .form-input.error, .form-select.error {
  background-color: #fff !important;
}
.phone-number-field .iti__tel-input.error {
  background: #fff !important;
}
.modern-registration-form .field--type-telephone input[type="tel"], .modern-registration-form .field--name-field-phone-number input[type="tel"], .modern-registration-form .field--name-field-phone input[type="tel"], .modern-registration-form .phone-number-field input[type="tel"] {
  padding-left: 67px !important;

}
label.form-label.option {
	font-weight: 450 !important;
}

/* Date Field Enhanced Styling */
.form-group--date-field {
  position: relative;
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.form-group--date-field:hover {
  border-color: #cbd5e0;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(1, 51, 160, 0.05);
}

.form-group--date-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
  font-size: 14px;
}

.form-group--date-field label::before {
  content: '\f073';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #0133a0;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.form-group--date-field input[type="date"],
.form-group--date-field input[type="datetime-local"],
.form-group--date-field .form-date,
.form-group--date-field .form-datetime {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.form-group--date-field input[type="date"]:hover,
.form-group--date-field input[type="datetime-local"]:hover,
.form-group--date-field .form-date:hover,
.form-group--date-field .form-datetime:hover {
  border-color: #cbd5e0;
  background: #fafbfc;
}

.form-group--date-field input[type="date"]:focus,
.form-group--date-field input[type="datetime-local"]:focus,
.form-group--date-field .form-date:focus,
.form-group--date-field .form-datetime:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
  background: #ffffff;
}

.form-group--date-field input[type="date"]::-webkit-calendar-picker-indicator,
.form-group--date-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
  margin-left: 8px;
  transition: opacity 0.2s ease;
  background-size: 18px;
}

.form-group--date-field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-group--date-field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.form-group--date-field .description {
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  padding-left: 30px;
}

/* Document Upload Section Styles */
.section-description {
  background: #f0f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 12px 16px;
  margin-bottom: 24px;
  border-radius: 6px;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.section-description::before {
  content: '\f05a';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #0ea5e9;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* File Upload Field Styling */
.form-group .form-managed-file,
.form-group .file-widget {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
}

.form-group .form-managed-file:hover,
.form-group .file-widget:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.form-group input[type="file"] {
  padding: 12px;
  font-size: 14px;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form-group input[type="file"]:hover {
  border-color: #94a3b8;
  background: #fafbfc;
}

.form-group input[type="file"]:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
}

/* File upload button styling */
.form-group .button--primary,
.form-group input[type="submit"].button--primary {
  background: linear-gradient(135deg, #0133a0 0%, #0056d6 100%);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-group .button--primary:hover {
  background: linear-gradient(135deg, #01298a 0%, #0047ba 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.3);
}

/* File upload description */
.form-group .form-managed-file .description,
.form-group .file-widget .description {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
  font-style: italic;
}

/* File name display after upload */
.form-group .file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 14px;
  color: #1e293b;
}

.form-group .file::before {
  content: '\f15b';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #0133a0;
  font-size: 16px;
}

/* File type specific icons */
.form-group .file[data-extension="pdf"]::before,
.form-group .file a[href$=".pdf"]::before {
  content: '\f1c1';
  color: #dc2626;
}

.form-group .file[data-extension="doc"]::before,
.form-group .file[data-extension="docx"]::before,
.form-group .file a[href$=".doc"]::before,
.form-group .file a[href$=".docx"]::before {
  content: '\f1c2';
  color: #2563eb;
}

.form-group .file[data-extension="jpg"]::before,
.form-group .file[data-extension="jpeg"]::before,
.form-group .file[data-extension="png"]::before,
.form-group .file a[href$=".jpg"]::before,
.form-group .file a[href$=".jpeg"]::before,
.form-group .file a[href$=".png"]::before {
  content: '\f1c5';
  color: #059669;
}

/* Remove button for uploaded files */
.form-group .file + .button,
.form-group .button--danger {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.form-group .button--danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Multiple file upload styling */
.form-group .file-widget-multiple {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group .file-widget-multiple .file {
  width: 100%;
}

/* Unlist Property Button Styling - Grey (using specific ID and class selectors) */
input#edit-unlist,
button#edit-unlist,
input.property-unlist-button,
button.property-unlist-button,
.btn-warning,
.action-wrapper input#edit-unlist,
.registration-actions input#edit-unlist,
.registration-actions button#edit-unlist {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 52px !important;
  line-height: 1.2 !important;
}

input#edit-unlist:hover,
button#edit-unlist:hover,
input.property-unlist-button:hover,
button.property-unlist-button:hover,
.btn-warning:hover,
.action-wrapper input#edit-unlist:hover,
.registration-actions input#edit-unlist:hover,
.registration-actions button#edit-unlist:hover {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(71, 85, 105, 0.4) !important;
}

input#edit-unlist:active,
button#edit-unlist:active,
input.property-unlist-button:active,
button.property-unlist-button:active,
.btn-warning:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.3) !important;
}

/* Property Form Actions - Multiple Buttons Layout */
.property-form .registration-actions,
.property-form-page .registration-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.property-form .registration-actions input[type="submit"],
.property-form .registration-actions button[type="submit"],
.property-form-page .registration-actions input[type="submit"],
.property-form-page .registration-actions button[type="submit"] {
  width: auto;
  min-width: 180px;
  flex: 0 1 auto;
}

/* Property Form Save Button - Green (using specific ID selector) */

/* Unlist Button - Grey (specific ID selector with highest priority) */
input#edit-unlist,
button#edit-unlist,
input.property-unlist-button,
.registration-actions input#edit-unlist,
.registration-actions button#edit-unlist,
.registration-actions-inline input#edit-unlist {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3) !important;
}

input#edit-unlist:hover,
button#edit-unlist:hover,
input.property-unlist-button:hover,
.registration-actions input#edit-unlist:hover,
.registration-actions button#edit-unlist:hover {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(71, 85, 105, 0.4) !important;
}

/* Preview Button - Yellow (specific ID selector with highest priority) */
input#edit-preview,
button#edit-preview,
.registration-actions input#edit-preview,
.registration-actions button#edit-preview,
.action-wrapper--preview input[type="submit"],
.action-wrapper--preview button[type="submit"] {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3) !important;
  color: #ffffff !important;
}

input#edit-preview:hover,
button#edit-preview:hover,
.registration-actions input#edit-preview:hover,
.registration-actions button#edit-preview:hover,
.action-wrapper--preview input[type="submit"]:hover,
.action-wrapper--preview button[type="submit"]:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Website Input Field Styling - Match firstname/lastname style with URL icon */
.website-input-wrapper {
  position: relative;
  width: 100%;
}

.website-input-wrapper .website-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
  transition: color 0.3s ease;
}

.website-input-wrapper input[type="url"],
.website-input-wrapper input[type="text"],
.website-input-wrapper .form-control[type="url"],
.website-input-wrapper .form-control {
  width: 100%;
  padding: 12px 16px 12px 48px !important;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.website-input-wrapper input[type="url"]:focus,
.website-input-wrapper input[type="text"]:focus,
.website-input-wrapper .form-control[type="url"]:focus,
.website-input-wrapper .form-control:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 3px rgba(1, 51, 160, 0.1);
}

.website-input-wrapper:focus-within .website-input-icon {
  color: #0133a0;
}

.website-input-wrapper input[type="url"]:hover,
.website-input-wrapper input[type="text"]:hover,
.website-input-wrapper .form-control[type="url"]:hover,
.website-input-wrapper .form-control:hover {
  border-color: #cbd5e1;
}

/* Fix Select2 dropdown clipping in property forms */
.property-form .registration-container,
.property-form-page .registration-container {
  overflow: visible;
}

.property-form .registration-content,
.property-form-page .registration-content {
  overflow: visible;
}

.property-form .form-section,
.property-form-page .form-section {
  overflow: visible;
}

.property-form .form-row,
.property-form-page .form-row {
  overflow: visible;
}

.property-form .form-group,
.property-form-page .form-group {
  overflow: visible;
  position: relative;
}

/* Ensure Select2 dropdown has high z-index */
.property-form .select2-container,
.property-form-page .select2-container {
  z-index: 999;
}

.property-form .select2-dropdown,
.property-form-page .select2-dropdown,
.select2-container--open .select2-dropdown {
  z-index: 9999 !important;
}

/* Communication Language field specific fix */
.form-item-field-communication-language,
.form-item-field-landlord-language,
[class*="field-communication-language"],
[class*="field-landlord-language"] {
  overflow: visible !important;
  position: relative;
  z-index: 100;
}

.form-item-field-communication-language .select2-container,
.form-item-field-landlord-language .select2-container {
  z-index: 1000;
}