/* Root wrapper */
.ccc-calculator {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff; 
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #54595F; 
}

/* Heading */
.ccc-calculator h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: #54595F;
}

/* Form */
.ccc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.ccc-form select,
.ccc-form input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  background: #f9f9f9;
  font-size: 15px;
  color: #54595F;
  transition: border-color 0.3s;
}

.ccc-form select:focus,
.ccc-form input:focus {
  outline: none;
  border-color: #61CE70;
  background: #fff;
}

.ccc-form button {
  grid-column: span 2;
  padding: 14px;
  background: #61CE70; 
  color: #ffffff; /* White text looks better on green than grey */
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

/* Mobile fix for button */
@media (max-width: 600px) {
    .ccc-form button { grid-column: span 1; }
}

.ccc-form button:hover {
  background: #4eb55d; 
}

.ccc-form button:active {
  transform: scale(0.98);
}

/* Output Area */
.ccc-output {
  margin-top: 40px;
  animation: fadeIn 0.5s ease;
}

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

.ccc-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #54595F;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

/* Table */
.ccc-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #eee;
}

.ccc-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.ccc-table th {
  background: #f0fcf2; /* Very light fade of green */
  color: #54595F;
  padding: 16px;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid #61CE70; /* Green accent line */
}

.ccc-table td {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #54595F;
  vertical-align: middle;
}

.ccc-table tr:last-child td {
  border-bottom: none;
}

.ccc-table tr:hover td {
    background-color: #fafafa;
}

.ccc-resource {
  font-weight: 600;
  color: #333;
}

.ccc-amount {
  font-weight: 700;
  color: #61CE70; /* Green amount text */
  font-size: 1.1em;
}

/* Radio Buttons Customization */
.ccc-quality {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ccc-radio {
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ccc-radio input[type="radio"] {
    accent-color: #61CE70; /* Makes the radio dot green */
}

/* Summary bar */
.ccc-summary {
  margin-top: 30px;
  padding: 24px;
  background: #61CE70; /* Green background */
  color: #ffffff; /* White text */
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 15px rgba(97, 206, 112, 0.3);
}

.ccc-summary span {
  display: block;
  font-size: 16px;
  opacity: 0.9;
}

.ccc-summary strong {
  font-size: 28px;
}