@charset "utf-8";
/* CSS Document */

.modern-form {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  margin: 8px 3px;;
  color: #333;
	max-width: 800px;
}




.modern-form label {
	display: inline-block;
	margin-bottom: 5px;
	margin-top: 3px;
}

.modern-form h2 {
  text-align: center;
  color: #333;
  font-weight: 600;
  margin-bottom: 12px;
}

.modern-form p {
  font-size: 0.70rem;
  margin-bottom: 10px;
  color: #555;
}

.modern-form .highlight {
  color: #D56A2A;
  font-weight: bold;
}

.modern-form input {
	width: 95%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: border 0.2s, background-color 0.2s;
  font-size: 0.70rem;
  resize: vertical;
}

.modern-form select {
	width: 95%;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: border 0.2s, background-color 0.2s;
  font-size: 0.70rem;
  resize: vertical;
}

.modern-form textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: border 0.2s, background-color 0.2s;
  font-size: 0.70rem;
  resize: vertical;
}

.modern-form textarea:focus {
  border-color: #888;
  background-color: #fff;
  outline: none;
}


.modern-form .button {
  margin-top: 24px;
	background-color: #333;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}


.modern-form .button:hover {
  background-color: #111;
}

.section {
  margin-top: 10px;
}


div.divwarning {
	padding: 10px; 
	font-size: 14px; 
	font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", "serif"; 
	color: #1B1B1B; 
	background-color: #E7E7E7; 
	border-top: #28C322 3px solid; 
	max-width: 600px; 
	margin-bottom: 10px;
}
span{
	color: #D56A2A;
	font-weight: bold;
}

.modern-form input[type="file"] {
  width: 100%;
  padding: 8px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.modern-form input[type="file"]:focus {
  border-color: #4285f4; /* blue focus border */
  outline: none;
  box-shadow: 0 0 5px rgba(66, 133, 244, 0.5);
}


/* Responsive table support for all tables inside .modern-form */
.modern-form table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.75rem;
  overflow: hidden;
  border-radius: 8px;
  background-color: #fff;
}

/* Base cell styling */
.modern-form table th,
.modern-form table td {
  padding: 6px 8px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}

.modern-form table th {
  background-color: #f3f3f3;
  font-weight: 600;
  color: #333;
}

/* Make tables scroll horizontally when needed */
.modern-form table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling (optional for cleaner look) */
.modern-form table::-webkit-scrollbar {
  height: 6px;
}
.modern-form table::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* ---------- MOBILE / SMALL SCREEN STYLES ---------- */
@media (max-width: 768px) {
  .modern-form table,
  .modern-form thead,
  .modern-form tbody,
  .modern-form th,
  .modern-form td,
  .modern-form tr {
    display: block;
  }

  .modern-form thead {
    display: none; /* Hide table headers on small screens */
  }

  .modern-form tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 5px 15px;;
    background: #fafafa;
  }

.modern-form td {
  position: relative;
  text-align: left;
  padding: 8px 10px 10px 18px; /* reduced top padding */
  border: none;
  border-bottom: 1px solid #eee;
  display: block;
}

.modern-form td::before {
  content: attr(data-label);
  display: block; /* ensures it’s on its own line */
  font-weight: bold;
  font-size: 0.75rem;
  color: #444;
  text-transform: capitalize;
  margin-bottom: 6px; /* space between label and input */
}


  .modern-form td:last-child {
    border-bottom: none;
  }
}


.modern-form > div.field-note , .modern-form > span.field-note {
  font-size: 10px;
  color: #666;
  margin-bottom: 4px;
}
