.gif-modern-card {
  width: 80%;
  max-width: 250px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gif-modern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.gif-modern-card img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

/* Modal Overlay */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 38, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.custom-modal-overlay.active {
  display: flex;
}

/* Modal Box */
.custom-modal {
  width: 100%;
  max-width: 520px;
  background: #10163f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}

.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 8px;
  width: 100%;
  direction: ltr;
}

.custom-modal-title {
  color: #fff;
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.25;
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
  direction: rtl;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-modal-subtitle {
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  font-size: 15px;
}

/* Close Button */
.custom-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
  width: 32px;
  text-align: left;
}

/* Form */
.custom-modal-form .form-group {
  margin-bottom: 18px;
}

.custom-modal-form label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}

.custom-modal-form input,
.custom-modal-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  font-size: 15px;
}

.custom-modal-form input::placeholder,
.custom-modal-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.custom-modal-form input:focus,
.custom-modal-form textarea:focus {
  border-color: rgba(255,255,255,0.28);
}

/* Submit */
.custom-submit-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: #ffffff;
  color: rgb(18, 16, 58);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.custom-submit-btn:hover {
  opacity: 0.9;
}

.custom-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#form-messages {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
}

#form-messages.success {
  color: #b8ffd8;
}

#form-messages.error {
  color: #ffd2d2;
}

.contact-success-state {
  display: none;
  text-align: center;
  padding: 18px 8px 8px;
}

.contact-success-state.is-visible {
  display: block;
}

.contact-success-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #21c87a 0%, #139e5d 100%);
  box-shadow: 0 18px 40px rgba(33, 200, 122, 0.28);
}

.contact-success-title {
  color: #ffffff;
  font-size: 28px;
  margin: 0 0 10px;
}

.contact-success-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}
