/* ================= SEARCH IMAGE PAGE - MAFQOOD DESIGN ================= */

/* ====== HERO SECTION ====== */
.image-text {
  padding: 40px 0 30px;
  background: linear-gradient(135deg, #5c1073, #3a0b50);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.image-text::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="100" cy="100" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') repeat;
  opacity: 0.3;
}

.image-text .container {
  position: relative;
  z-index: 2;
}

.image-text p {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  line-height: 1.3;
  animation: fadeInUp 0.8s ease-out;
}

/* ====== SEARCH FORM SECTION ====== */
.search-image {
  padding: 30px 20px;
  background-color: #f9f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
}

.search-image > .container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

.search-image form {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(92,16,115,0.1);
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #f0ecf3;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.search-image form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, #5c1073, #8a2be2);
  border-radius: 24px 24px 0 0;
}

.search-image form:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(92,16,115,0.15);
}

/* ====== PERSON IMG SECTION ====== */
.person-img {
  float: none !important;
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  margin: 0 auto 20px !important;
  padding: 0 !important;
  position: relative !important;
}

.person-img > .img-area {
  display: flex !important;
  width: 100% !important;
  max-width: 540px !important;
  height: 420px !important;
  margin: 0 auto 20px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-direction: column !important;
  background: linear-gradient(135deg, #f0ecf3, #e8e3eb) !important;
  border: 3px dashed #d0c4d9 !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden;
  transition: all 0.4s ease;
  box-sizing: border-box !important;
}

.person-img > .img-area:hover {
  border-color: #8a2be2;
  background: linear-gradient(135deg, #e8e3eb, #e0d6e5);
}

.person-img > .img-area.has-image {
  background: #000 !important;
  border-style: solid !important;
  border-color: #8a2be2 !important;
}

/* الصورة تملا المربع بالكامل */
#preview-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  z-index: 5;
}

.img-area i {
  font-size: 3.5rem;
  color: #8a2be2;
  margin-bottom: 15px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.img-area:hover i {
  opacity: 1;
  transform: translateY(-3px);
}

.img-area h3 {
  color: #5c1073;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  transition: all 0.3s ease;
}

.img-area:hover h3 { color: #3a0b50; }

.person-img > .img-area.has-image i,
.person-img > .img-area.has-image h3,
.person-img > .img-area.has-image .placeholder { display: none !important; }

/* Upload Button */
.person-img > .select-image {
  display: block !important;
  width: auto !important;
  margin: 15px auto 0 !important;
  padding: 13px 35px !important;
  background: linear-gradient(135deg, #5c1073, #8a2be2) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: center !important;
  box-shadow: 0 5px 15px rgba(92,16,115,0.3) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.select-image:hover {
  background: linear-gradient(135deg, #4a0e5e, #7a24d1) !important;
  box-shadow: 0 8px 20px rgba(92,16,115,0.4) !important;
}

.person-img > input[type="file"] { display: none !important; }

/* Search Button */
.search-image input[type="submit"] {
  display: block !important;
  width: 100%;
  max-width: 540px;
  margin: 20px auto 0 !important;
  padding: 15px 40px;
  background: linear-gradient(135deg, #5c1073, #3a0b50);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(92,16,115,0.3);
  position: relative;
  overflow: hidden;
}

.search-image input[type="submit"]:hover {
  background: linear-gradient(135deg, #4a0e5e, #2a0738);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(92,16,115,0.4);
}

.search-image input[type="submit"]:active {
  transform: translateY(0);
}

.search-image input[type="submit"].loading {
  background: linear-gradient(135deg, #3a0b50, #2a0738);
  color: transparent;
  pointer-events: none;
  position: relative;
}

.search-image input[type="submit"].loading::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ====== LOADER ====== */
.con-loader {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.95);
  padding: 25px 35px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  text-align: center;
  z-index: 1002;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(92,16,115,0.1);
  min-width: 180px;
}

.con-loader.hide { display: none; }

.loader {
  width: 50px; height: 50px;
  border: 4px solid #f0ecf3;
  border-top: 4px solid #5c1073;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  z-index: 1001;
}
.overlay.hide { display: none; }

/* ====== SEARCH RESULTS ====== */
.search-results {
  padding: 50px 0 70px;
  background: linear-gradient(135deg, #f9f7fa, #f0ecf3);
  position: relative;
  overflow: hidden;
}

.search-results::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><circle cx="100" cy="100" r="30" fill="none" stroke="%235c1073" stroke-width="1" opacity="0.05"/></svg>') repeat;
}

.search-results .container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}

.results-title {
  text-align: center;
  color: #5c1073;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 35px;
  position: relative;
  padding-bottom: 15px;
  animation: fadeInUp 0.8s ease-out;
}

.results-title::after {
  content: "";
  width: 80px; height: 4px;
  background: linear-gradient(90deg, #5c1073, #8a2be2);
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  border-radius: 10px;
}

.matches-grid {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}

.match-card {
  width: 100% !important;
  max-width: 900px !important;
  height: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 24px;
  background: white;
  box-shadow: 0 15px 40px rgba(92,16,115,0.1);
  border: 2px solid #f0ecf3;
  margin: 10px auto !important;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out;
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, #5c1073, #8a2be2);
  border-radius: 24px 24px 0 0;
}

.match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(92,16,115,0.15);
}

.match-thumb {
  width: 100%;
  height: 450px !important;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f0ecf3, #e8e3eb);
  border: none;
  margin-bottom: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

.match-meta {
  margin-top: 0;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  background: white;
}

.match-name {
  font-size: 1.6rem !important;
  font-weight: 700;
  color: #5c1073;
  line-height: 1.4;
  margin: 0;
}

.match-sim {
  font-size: 1rem !important;
  color: #666;
  background: #f9f7fa;
  padding: 10px 18px !important;
  border-radius: 20px;
  display: block !important;
  font-weight: 500;
  border: 1px solid #e0d6e5;
}

.match-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  flex-direction: row;
  align-items: stretch;
}

.details {
  flex: 1;
  padding: 14px 30px !important;
  border-radius: 12px;
  background: linear-gradient(135deg, #5c1073, #8a2be2);
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(92,16,115,0.2);
  font-size: 1rem !important;
  margin-top: 0 !important;
}

.details:hover {
  background: linear-gradient(135deg, #4a0e5e, #7a24d1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(92,16,115,0.3);
}

.details.off {
  background: #e0d6e5;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.btn-retry {
  flex: 1;
  padding: 14px 20px !important;
  border-radius: 12px;
  background: #f0ecf3;
  color: #5c1073;
  font-weight: 700;
  text-align: center;
  border: 2px solid #d0c6d5;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1rem !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.btn-retry:hover:not(.off) {
  background: #e0d6e5;
  border-color: #b8aec1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92,16,115,0.15);
}

.btn-retry i { font-size: 1rem; }

.btn-retry.off {
  background: #f5f3f7 !important;
  color: #ccc !important;
  cursor: not-allowed !important;
  border-color: #e8e0ed !important;
  opacity: 0.6 !important;
}

/* ====== ERROR MESSAGE ====== */
.error-message {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out forwards;
}

.error-message.show { opacity: 1; transform: translateY(0); }

.error-content {
  background: linear-gradient(135deg, #fff5f5, #ffe0e0);
  border: 2px solid #f5a6a6;
  border-radius: 20px;
  padding: 35px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255,107,107,0.15);
  position: relative;
  overflow: hidden;
}

.error-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #ff8787);
}

.error-content i {
  font-size: 3rem;
  color: #ff6b6b;
  margin-bottom: 15px;
  display: block;
  animation: shake 0.6s ease-in-out;
}

.error-content h3 {
  color: #d63031;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}

.error-content p { color: #999; font-size: 0.95rem; margin: 0; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ====== CONFIRMATION DIALOG ====== */
.confirmation-dialog {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.confirmation-dialog.show { opacity: 1; }

.confirmation-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.confirmation-content {
  position: relative;
  z-index: 10000;
  background: white;
  border-radius: 24px;
  padding: 40px 35px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(92,16,115,0.2);
  animation: slideUp 0.4s ease-out;
  border: 2px solid #f0ecf3;
  border-top: 5px solid #5c1073;
}

.confirmation-content h3 {
  color: #5c1073;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 25px;
  line-height: 1.3;
}

.match-image-container {
  width: 100%; height: 250px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(92,16,115,0.15);
  border: 3px solid #f0ecf3;
}

.match-image { width: 100%; height: 100%; object-fit: cover; display: block; }

.match-info {
  font-size: 1rem;
  color: #333;
  background: #f9f7fa;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 25px;
  border-left: 4px solid #8a2be2;
  text-align: right;
  direction: rtl;
}

.info-item { margin: 10px 0; font-weight: 600; color: #2c2c2c; font-size: 1rem; }
.info-item strong { color: #5c1073; font-weight: 700; margin-left: 10px; }

.confirmation-buttons { display: flex; gap: 12px; margin-bottom: 15px; }

.confirmation-buttons button {
  flex: 1;
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-yes {
  background: linear-gradient(135deg, #5c1073, #8a2be2);
  color: white;
  box-shadow: 0 5px 15px rgba(92,16,115,0.3);
}
.btn-yes:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(92,16,115,0.4); }

.btn-no { background: #f0f0f0; color: #666; border: 2px solid #e0e0e0; }
.btn-no:hover { background: #e8e8e8; border-color: #d0d0d0; }

.match-counter { color: #999; font-size: 0.9rem; margin: 0; }

/* ====== NOT FOUND MESSAGE ====== */
.not-found-message {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.not-found-message.show { opacity: 1; }

.not-found-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.not-found-content {
  position: relative;
  z-index: 10000;
  background: white;
  border-radius: 24px;
  padding: 45px 35px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(220,53,69,0.2);
  animation: slideUp 0.4s ease-out;
  border: 2px solid #f5a6a6;
  border-top: 5px solid #dc3545;
}

.not-found-content i {
  font-size: 3.5rem;
  color: #dc3545;
  margin-bottom: 15px;
  display: block;
  animation: bounce 0.6s ease-in-out;
}

.not-found-content h3 {
  color: #dc3545;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.not-found-content p { color: #666; font-size: 1rem; margin: 8px 0; }
.not-found-content .sub-text { color: #999; font-size: 0.9rem; font-style: italic; margin-top: 15px; }

.btn-close-dialog {
  margin-top: 25px;
  padding: 13px 35px;
  background: linear-gradient(135deg, #5c1073, #8a2be2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(92,16,115,0.3);
}
.btn-close-dialog:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(92,16,115,0.4); }

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

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ====== SEARCH MENU ====== */
.search-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.search-menu.show { opacity: 1; }

.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: -1;
}

.menu-content {
  position: relative;
  z-index: 10002;
  background: white;
  border-radius: 20px;
  padding: 35px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.4s ease-out;
}

.menu-content h3 {
  color: #5c1073;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.3;
}

.menu-btn {
  width: 100%;
  padding: 13px 20px;
  margin-bottom: 10px;
  border: 2px solid #e0d6e5;
  border-radius: 12px;
  background: white;
  color: #5c1073;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.menu-btn:hover:not(.btn-close-menu) {
  background: linear-gradient(135deg, #5c1073, #8a2be2);
  color: white;
  border-color: #5c1073;
  transform: translateY(-2px);
}

.menu-btn i { font-size: 1rem; }

.btn-close-menu { background: #f9f7fa; border-color: #d0c6d5; color: #666; }
.btn-close-menu:hover { background: #f0f0f0; border-color: #b8aec1; color: #333; transform: none; }

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.select-image:focus,
.search-image input[type="submit"]:focus,
.details:focus {
  outline: 3px solid #5c1073;
  outline-offset: 3px;
}

/* ====== RTL SUPPORT ====== */
html[dir="rtl"] .search-image form { text-align: center; }
html[dir="rtl"] .person-img { direction: rtl; text-align: center; }

/* ====== RESPONSIVE TABLET ====== */
@media (max-width: 992px) {
  .image-text p { font-size: 1.8rem; }
  .search-image { padding: 25px 15px; }
  .person-img > .img-area { height: 260px !important; }
  .match-card { max-width: 95% !important; }
  .match-thumb { height: 380px !important; }
  .match-meta { padding: 25px; }
}

/* ====== RESPONSIVE MOBILE ====== */
@media (max-width: 768px) {
  .image-text { padding: 30px 0 20px; margin-top: 70px; }
  .image-text p { font-size: 1.5rem; padding: 0 15px; }

  .search-image { padding: 20px 15px; }
  .search-image form { padding: 20px 15px; border-radius: 18px; }

  .person-img > .img-area {
    height: 320px !important;
    border-radius: 12px !important;
  }

  .img-area i { font-size: 3rem; margin-bottom: 12px; }
  .img-area h3 { font-size: 1rem; }

  .person-img > .select-image {
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    margin-top: 12px !important;
  }

  .search-image input[type="submit"] {
    padding: 14px 30px;
    font-size: 1rem;
    margin-top: 15px !important;
  }

  .search-results { padding: 35px 0 50px; }
  .results-title { font-size: 1.6rem; margin-bottom: 25px; }

  .match-card { width: 100% !important; max-width: 100% !important; border-radius: 18px; }
  .match-thumb { height: 300px !important; }
  .match-meta { padding: 20px; gap: 12px; }
  .match-name { font-size: 1.3rem !important; }
  .match-sim { font-size: 0.95rem !important; padding: 8px 15px !important; }

  .match-actions { gap: 10px; margin-top: 8px; }
  .details { padding: 12px 16px !important; font-size: 0.9rem !important; border-radius: 10px; }
  .btn-retry { padding: 12px 16px !important; font-size: 0.9rem !important; border-radius: 10px; }

  .confirmation-content { padding: 30px 22px; }
  .confirmation-content h3 { font-size: 1.4rem; }
  .match-image-container { height: 200px; }

  .not-found-content { padding: 35px 22px; }
  .not-found-content h3 { font-size: 1.4rem; }
  .not-found-content i { font-size: 3rem; }
}

@media (max-width: 480px) {
  .image-text p { font-size: 1.3rem; }

  .person-img > .img-area { height: 280px !important; }
  .img-area i { font-size: 2.5rem; }
  .img-area h3 { font-size: 0.95rem; }

  .person-img > .select-image {
    padding: 11px 22px !important;
    font-size: 0.9rem !important;
  }

  .search-image input[type="submit"] {
    padding: 13px 25px;
    font-size: 0.95rem;
  }

  .match-thumb { height: 250px !important; }
  .match-name { font-size: 1.2rem !important; }

  .match-actions { flex-direction: column; gap: 8px; }
  .details { width: 100%; }
  .btn-retry { width: 100%; }

  .con-loader { padding: 20px 25px; min-width: 160px; }
  .loader { width: 45px; height: 45px; }
}

@media (max-width: 380px) {
  .image-text p { font-size: 1.2rem; }
  .person-img > .img-area { height: 250px !important; }
  .search-image form { padding: 16px 12px; }
}