:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --highlight-color: #e67e22;
    --background-color: #ecf0f1;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.btn-calculate {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.4);
}

.result-box {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

.general-note {
    color: #d35400;
    background: #fcefdc;
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid #e67e22;
    border-radius: 4px;
    line-height: 1.5;
}

.quality-note {
    color: #27ae60;
    background: #e8faf3;
    padding: 12px;
    margin: 15px 0;
    border-left: 4px solid #2ecc71;
    border-radius: 4px;
    line-height: 1.5;
}

.result-box table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
    table-layout: fixed;
}

.result-box td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.result-box tr:last-child td {
    border-bottom: none;
}

.total-price td {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1em;
    padding-top: 15px;
}

.image-box {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-box img {
  max-width: 150px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.image-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.image-overlay.active {
  display: flex;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
