.hm-container { background: #f7f5f0; padding: 60px 20px; text-align: center; font-family: "Times New Roman", Times, serif; }
.hm-card {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  align-items: stretch;
  font-family: "Times New Roman", Times, serif;
}
.hm-left, .hm-right {
  flex: 1;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
}
.hm-left { border-right: 1px solid #ece4dc; }
.hm-dropzone {
  width: 100%;
  max-width: 400px;
  min-height: 300px;
  background: #f8f8f8;
  border: 2px dashed #d8ccc0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a0958a;
  cursor: pointer;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  transition: border-color 0.3s ease;
  font-family: "Times New Roman", Times, serif;
}
/* Face detection feedback */
.hm-dropzone.face-detecting { border-color: #ff6b6b; border-style: solid; }
.hm-dropzone.face-detected { border-color: #28a745; border-style: solid; }
.hm-camera-icon { width: 48px; height: 48px; margin-bottom: 16px; }
.hm-dropzone p { font-size: 1.5rem; color: #c0bdb8; margin: 0 0 20px 0; text-align: center; line-height: 1.4; font-family: "Times New Roman", Times, serif; }
.hm-upload-btn {
  background: #d8a56c;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
  font-family: "Times New Roman", Times, serif;
}
.hm-upload-btn:hover,
.hm-button:hover { background: #b07c3c; }
.hm-left input[type="file"] { display: none; }
.hm-right { text-align: left; align-items: flex-start; }
.hm-select-title { font-size: 24px; font-weight: 600; margin-bottom: 16px; color: #2c2520; font-family: "Times New Roman", Times, serif; }
.hm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 32px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hm-thumb {
  width: 120px;
  height: 120px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f7f5f0;
  transition: border 0.2s;
}
.hm-thumb-image {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
}
.hm-thumb.selected { border-color:#d8a56c; }
.hm-thumb.selected .hm-thumb-image { border-color:#d8a56c; }
.hm-thumb img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.hm-thumb-name { 
  text-align: center; 
  margin-top: 12px; 
  font-size: 16px; 
  color: #2c2520; 
  font-family: "Times New Roman", Times, serif;
  font-weight: 500;
  line-height: 1.2;
}
.hm-button { background:#d8a56c; color:#fff; border:none; padding:12px 32px; border-radius:6px; font-size: 1.1rem; font-weight: 500; cursor:pointer; margin-top: 8px; margin-bottom: 0; transition: background 0.2s; display: block; width: 100%; font-family: "Times New Roman", Times, serif; }
.hm-button:disabled { opacity:0.6; cursor:default; background: #ccc; }
.hm-preview-title { padding-top:24px; font-size:18px; font-weight:500; color:#2c2520; text-align: center; width: 100%; font-family: "Times New Roman", Times, serif; }

/* Hair-only indicator styling */
.hair-only-indicator { 
  position: absolute; 
  top: 5px; 
  right: 5px; 
  background: rgba(0,0,0,0.7); 
  color: white; 
  padding: 2px 6px; 
  border-radius: 10px; 
  font-size: 12px; 
  font-weight: bold; 
}

.hm-modal-inner {
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 24px 32px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 95vw;
  max-height: 95vh;
  font-family: "Times New Roman", Times, serif;
}
.hm-modal-square {
  width: 800px;
  height: 800px;
  background: #222;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 18px;
  max-width: 95vw;
  max-height: 70vh;
}
.hm-modal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
}
.hm-modal-btn, .hm-modal-btn.main, .hm-modal-btn.alt {
  background: #d8a56c;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0 2px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  font-family: "Times New Roman", Times, serif;
}
.hm-modal-btn.alt {
  background: #b07c3c;
}
.hm-modal-btn:not(.main):not(.alt) {
  background: #eee;
  color: #333;
}
.hm-modal-btn:hover, .hm-modal-btn.main:hover, .hm-modal-btn.alt:hover {
  background: #b07c3c;
  color: #fff;
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
  .hm-container { padding: 40px 15px; }
  .hm-card { max-width: 95%; }
  .hm-left, .hm-right { padding: 24px 20px; }
  .hm-select-title { font-size: 20px; }
  .hm-grid { gap: 20px; }
}

/* Responsive Design - Mobile Large */
@media (max-width: 768px) {
  .hm-container { padding: 20px 10px; }
  .hm-card { 
    flex-direction: column; 
    max-width: 100%; 
    margin: 0 10px;
  }
  .hm-left { 
    border-right: none; 
    border-bottom: 1px solid #ece4dc; 
    padding: 20px;
  }
  .hm-right { padding: 20px; }
  .hm-dropzone { 
    max-width: 100%; 
    min-height: 200px; 
    margin-bottom: 20px;
  }
  .hm-dropzone p { font-size: 1.2rem; }
  .hm-select-title { font-size: 18px; text-align: center; }
  .hm-grid { 
    grid-template-columns: repeat(2,1fr); 
    gap: 16px; 
    margin-bottom: 20px;
  }
  .hm-thumb-name { font-size: 13px; margin-top: 6px; }
  .hm-button { padding: 14px 24px; font-size: 1.2rem; }
  
  /* Modal adjustments for mobile */
  .hm-modal-square {
    width: 90vw;
    height: 90vw;
    max-width: 90vw;
    max-height: 60vh;
  }
  .hm-modal-inner {
    padding: 20px 15px;
    margin: 20px;
  }
  .hm-modal-btns {
    gap: 8px;
  }
  .hm-modal-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
    min-width: 80px;
  }
}

/* Responsive Design - Mobile Small */
@media (max-width: 480px) {
  .hm-container { padding: 15px 5px; }
  .hm-card { margin: 0 5px; }
  .hm-left, .hm-right { padding: 15px; }
  .hm-dropzone { 
    min-height: 180px; 
    padding: 15px;
  }
  .hm-dropzone p { font-size: 1rem; margin-bottom: 15px; }
  .hm-select-title { font-size: 16px; margin-bottom: 12px; }
  .hm-grid { 
    grid-template-columns: repeat(2,1fr); 
    gap: 12px; 
    margin-bottom: 15px;
  }
  .hm-thumb-name { font-size: 12px; margin-top: 4px; }
  .hm-button { 
    padding: 16px 20px; 
    font-size: 1.1rem; 
    margin-top: 15px;
  }
  
  /* Smaller modal for tiny screens */
  .hm-modal-square {
    width: 95vw;
    height: 95vw;
    max-height: 50vh;
  }
  .hm-modal-inner {
    padding: 15px 10px;
    margin: 10px;
  }
  .hm-modal-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
    min-width: 70px;
  }
}

/* Very small screens */
@media (max-width: 320px) {
  .hm-grid { grid-template-columns: 1fr 1fr; }
  .hm-dropzone { min-height: 150px; }
  .hm-dropzone p { font-size: 0.9rem; }
  .hm-thumb-name { font-size: 11px; }
  .hm-button { font-size: 1rem; padding: 14px 16px; }
}

#passwordModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#passwordModal > div {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

#passwordInput {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

#passwordSubmit {
  padding: 10px 20px;
} 