.ew-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
}

.ew-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ew-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}


.ew-share-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.ew-pulse-share-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 999;
    min-width: 180px;
}

.ew-pulse-share-menu a,
.ew-pulse-share-menu button {
    display: block;
    background: none;
    border: none;
    padding: 6px 0;
    font-size: 14px;
    text-align: left;
    color: #253B7C;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.ew-pulse-share-menu a:hover,
.ew-pulse-share-menu button:hover {
    text-decoration: underline;
}




/* ====== Form Container ====== */

.ew-gig-form {
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

/* ====== Headings ====== */

.ew-gig-form h4,
.ew-gig-form fieldset legend {
  font-weight: 600;
  font-size: 18px;
  margin: 20px 0 10px;
  color: #253B7C;
}

/* ====== Labels ====== */

.ew-gig-form label {
  display: block;
  font-weight: 600;
  margin: 15px 0 5px;
  color: #333;
}

/* ====== Inputs, Textareas, Selects ====== */

.ew-gig-form input[type="text"],
.ew-gig-form input[type="email"],
.ew-gig-form input[type="number"],
.ew-gig-form input[type="url"],
.ew-gig-form input[type="date"],
.ew-gig-form textarea,
.ew-gig-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fafafa;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.ew-gig-form input[type="number"].exb-input-wide {
  width: 200px;
}

/* Focus styles */

.ew-gig-form input:focus,
.ew-gig-form textarea:focus,
.ew-gig-form select:focus {
  border-color: #253B7C;
  outline: none;
}

/* Textareas */

.ew-gig-form textarea {
  min-height: 100px;
}

/* Fieldsets */

.ew-gig-form fieldset {
  margin: 25px 0;
  padding: 25px 20px 20px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f9f9f9;
  position: relative;
}

/* Legends */

.ew-gig-form fieldset legend {
  width: auto;
  padding: 0;
  margin: 0;
  font-weight: bold;
  font-size: 18px;
  color: #253B7C;
  background: #fff;
  line-height: 1.2;
  display: inline-block;
  position: relative;
  top: -10px;
  left: 0;
}

.ew-gig-form fieldset legend + * {
  margin-top: -10px;
}

/* Buttons */

.ew-gig-form button,
.ew-gig-form input[type="submit"] {
  background: #253B7C;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  margin: 15px 10px 0 0;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.ew-gig-form button:hover,
.ew-gig-form input[type="submit"]:hover {
  background: #AF1F24;
}

/* Small Notes */

.ew-gig-form small {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 13px;
}

/* Select2 Compatibility */

.ew-gig-form .select2-container .select2-selection--multiple {
  background: #fafafa;
  border-color: #ccc;
  min-height: 48px;
  padding: 4px;
}

.ew-gig-form .select2-selection--multiple .select2-selection__rendered {
  white-space: normal;
  word-break: break-word;
}

.ew-gig-form .select2-selection--multiple .select2-selection__choice {
  background-color: #253B7C;
  color: #fff;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  margin-top: 4px;
}

.ew-gig-form .select2-selection--multiple .select2-selection__choice__remove {
  color: #fff;
  margin-right: 4px;
}

.ew-gig-form .select2-selection--multiple .select2-search__field {
  background: transparent;
}

/* File Inputs */

.ew-gig-form input[type="file"] {
  background: #fff;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}






.ew-gig-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ew-gig-card {
  flex: 1 1 calc(33.333% - 20px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  transition: all 0.3s ease;
  height: 100%;
  min-height: 350px; /* You can adjust this */
  position: relative;
}

.ew-gig-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #0073aa;
}

@media screen and (max-width: 768px) {
  .ew-gig-card {
    flex: 1 1 100%;
  }
}

.ew-ribbon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #e91e63;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

.ew-urgency-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}

.ew-urgency-badge.urgent {
  background-color: #ff5722;
  color: #fff;
}

.ew-urgency-badge.non-urgent {
  background-color: #e0e0e0;
  color: #333;
}
