/* assets/style.css */
.inside-article {
  padding: 0 !important;
}
.tpm-member-area {
  margin: 0 auto;
  padding: 0;
}

.tpm-header {
  display: flex;
  flex-wrap: wrap;
  gap: 120px;
  padding: 120px 240px;
}

.tpm-header div {
  flex: 1;
}

.tpm-subscription-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  min-width: 300px;
}

.tpm-subscription-info h3 {
  margin-top: 0;
  font-size: 18px;
}

.subscription-active {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.status-badge.active {
  background: #09a11b;
  color: white;
}

.tpm-section-header h3 {
  font-size: 24px;
  margin: 0;
}

.tpm-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tpm-trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.no-trips {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #6c757d;
}

.tpm-trip-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fcfcfc;
  border-radius: 50px;
  padding: 40px;
  transition: transform 0.2s;
  box-shadow: 1px 1px 15px 2px rgba(0, 0, 0, 0.08);
}

.tpm-trip-tile:hover {
  transform: translateY(-2px);
}

.tpm-trip-listing-name {
  color: white;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trip-order-details {
  h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 32px;
    line-height: 32px;
    font-weight: 500;
  }

  h4.tpm-trip-address {
    font-size: 24px;
    line-height: 28px;
  }
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0 0 10px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 500;
  color: #666;
}

.protection-status {
  padding: 15px;
  border-radius: 8px;
}

.protection-status h5 {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #333;
}

.protection-list {
  display: grid;
  gap: 8px;
}

.protection-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.protection-item .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.protection-item.protected .icon {
  background: #09a11b;
  color: white;
}

.protection-item.not-protected .icon {
  background: #e9ecef;
  color: #6c757d;
}

.decline-reason {
  margin-top: 15px;
  padding: 10px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  color: #721c24;
  font-size: 14px;
}

/* Modal and Form Reset */
* {
  box-sizing: border-box;
}

.tpm-modal input,
.tpm-modal textarea,
.tpm-modal select {
  box-sizing: border-box;
}

/* Modal Styles */
.tpm-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  overflow: auto;
}

.tpm-modal-content {
  background-color: #fefefe;
  margin: 2% auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tpm-modal-header {
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tpm-modal-header h3 {
  margin: 0;
  font-size: 24px;
}

.tpm-close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.tpm-close:hover,
.tpm-close:focus {
  color: black;
}

#tpm-add-trip-form {
  padding: 30px;
}

.form-section {
  margin-bottom: 30px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.form-section h4 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: #333;
  border-bottom: 2px solid #007cba;
  padding-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group {
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  background: white;
  box-sizing: border-box;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #6c757d;
  font-size: 13px;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
  margin-top: 30px;
}

.status-badge.inactive {
  background: #6c757d;
  color: white;
}

.subscription-details {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.subscription-details a {
  color: #007cba;
  text-decoration: none;
}

.subscription-details a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .tpm-header {
    flex-direction: column;
    padding: 50px 20px;
    gap: 30px;
  }

  .tpm-subscription-info {
    width: 100%;
  }

  .tpm-trips-grid {
    grid-template-columns: 1fr;
  }

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

  .tpm-modal-content {
    width: 95%;
    margin: 10% auto;
  }
}
