/* Default Preset */
.rufus-form {
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.rufus-form .form-group {
  margin-bottom: 15px;
}
.rufus-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}
.rufus-form input,
.rufus-form textarea,
.rufus-form select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.rufus-form input:focus,
.rufus-form textarea:focus,
.rufus-form select:focus {
  border-color: #007cba;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,124,186,0.2);
}
.rufus-form .button-primary {
  background: #007cba;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}
.rufus-form .button-primary:hover {
  background: #005a87;
}

/* Modern Preset */
.rufus-form.modern {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.rufus-form.modern .form-group {
  margin-bottom: 20px;
  position: relative;
}
.rufus-form.modern label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}
.rufus-form.modern input,
.rufus-form.modern textarea,
.rufus-form.modern select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  box-sizing: border-box;
}
.rufus-form.modern input:focus,
.rufus-form.modern textarea:focus,
.rufus-form.modern select:focus {
  border-color: #3498db;
  outline: none;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52,152,219,0.15);
}
.rufus-form.modern .button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rufus-form.modern .button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102,126,234,0.3);
}

/* Minimal Preset */
.rufus-form.minimal {
  max-width: 400px;
  margin: 30px auto;
  padding: 0;
  background: transparent;
}
.rufus-form.minimal .form-group {
  margin-bottom: 25px;
}
.rufus-form.minimal label {
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
  color: #666;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rufus-form.minimal input,
.rufus-form.minimal textarea,
.rufus-form.minimal select {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}
.rufus-form.minimal input:focus,
.rufus-form.minimal textarea:focus,
.rufus-form.minimal select:focus {
  outline: none;
  border-bottom-color: #333;
}
.rufus-form.minimal .button-primary {
  background: #333;
  color: #fff;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease;
}
.rufus-form.minimal .button-primary:hover {
  background: #555;
}

/* Classic Preset */
.rufus-form.classic {
  max-width: 600px;
  margin: 30px auto;
  padding: 25px;
  background: #fefefe;
  border: 2px solid #8b4513;
  border-radius: 0;
  box-shadow: 5px 5px 0 #8b4513;
}
.rufus-form.classic .form-group {
  margin-bottom: 18px;
}
.rufus-form.classic label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #8b4513;
  font-family: serif;
  font-size: 15px;
}
.rufus-form.classic input,
.rufus-form.classic textarea,
.rufus-form.classic select {
  width: 100%;
  padding: 10px;
  border: 2px inset #ddd;
  background: #fff;
  font-size: 14px;
  font-family: serif;
  box-sizing: border-box;
}
.rufus-form.classic input:focus,
.rufus-form.classic textarea:focus,
.rufus-form.classic select:focus {
  outline: none;
  border: 2px inset #8b4513;
}
.rufus-form.classic .button-primary {
  background: #8b4513;
  color: #fff;
  padding: 12px 24px;
  border: 2px outset #8b4513;
  cursor: pointer;
  font-size: 15px;
  font-family: serif;
  font-weight: bold;
}
.rufus-form.classic .button-primary:hover {
  background: #a0522d;
}

/* Popup Styles */
.rufus-form-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.rufus-form-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.rufus-form-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
