/* =====================================
   Agency Request Page Styles
   ===================================== */

.agency-request-page {
  width: 100%;
  background: #222222;
  color: #ffffff;
  min-height: 100vh;
}

.agency-request-page *,
.agency-request-page *::before,
.agency-request-page *::after {
  box-sizing: border-box; /* اطمینان از اینکه همه عناصر box-sizing درست دارند */
}

/* =====================================
   Hero Section
   ===================================== */
.agency-hero {
  position: relative;
  width: 100%;
  height: 394px;
  overflow: hidden;
  margin-bottom: 40px;
}

.agency-hero__image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.agency-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agency-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(34, 34, 34, 0.9) 100%
  );
}

.agency-hero__content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.agency-hero__title {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.agency-hero__description {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
  margin: 0;
}

/* =====================================
   Container
   ===================================== */
.agency-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 94px 80px;
}

/* =====================================
   Breadcrumb
   ===================================== */
.agency-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
  margin-bottom: 60px;
  padding: 20px 0;
  direction: rtl;
  opacity: 0.6;
}

.agency-breadcrumb__link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.agency-breadcrumb__link:hover {
  opacity: 1;
}

.agency-breadcrumb__current {
  color: #ffffff;
}

.agency-breadcrumb__separator {
  color: #ffffff;
}

/* =====================================
   Intro Section
   ===================================== */
.agency-intro {
  padding: 40px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agency-intro__title {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.3;
  color: #ffffff;
  text-align: right;
  margin: 0 0 24px 0;
}

.agency-intro__text {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
  margin: 0 0 40px 0;
  direction: rtl;
}

.agency-intro__image-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.agency-intro__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.agency-intro__image-wrapper:hover .agency-intro__image {
  transform: scale(1.05);
}

/* =====================================
   Form Wrapper
   ===================================== */
.agency-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.agency-form-card {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 50px;
  backdrop-filter: blur(10px);
}

/* =====================================
   Form Title
   ===================================== */
.agency-form__title {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
  margin: 0 0 40px 0;
}

/* =====================================
   Success/Error Messages
   ===================================== */
.agency-form__success,
.agency-form__error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
}

.agency-form__success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.agency-form__error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.agency-form__success svg,
.agency-form__error svg {
  flex-shrink: 0;
}

.agency-form__success p,
.agency-form__error p {
  margin: 0;
  flex: 1;
  text-align: right;
}

/* =====================================
   Form
   ===================================== */
.agency-form {
  direction: rtl;
}

.agency-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.agency-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agency-form__field--full {
  grid-column: 1 / -1;
}

.agency-form__label {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  text-align: right;
}

.agency-form__label .required {
  color: #f87171;
  margin-right: 4px;
}

.agency-form__input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 16px;
  color: #ffffff;
  direction: rtl;
  text-align: right;
  transition: all 0.3s ease;
}

.agency-form__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.agency-form__input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.agency-form__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agency-form__input.error {
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.05);
}

.agency-form__error-text {
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 14px;
  color: #f87171;
  text-align: right;
}

/* =====================================
   Submit Button
   ===================================== */
.agency-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: none;
  border-radius: 12px;
  font-family: 'PeydaFaNumWeb', sans-serif !important;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.agency-form__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agency-form__submit:hover::before {
  opacity: 1;
}

.agency-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.agency-form__submit:active {
  transform: translateY(0);
}

.agency-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.agency-form__submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

.agency-form__submit span,
.agency-form__submit svg {
  position: relative;
  z-index: 1;
}

/* Spinner Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* =====================================
   Editor Styles
   ===================================== */
.agency-request-block-editor {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 20px;
}

/* =====================================
   Responsive Design
   ===================================== */

/* Tablet */
@media (max-width: 1024px) {
  .agency-hero {
    height: 350px;
  }

  .agency-hero__title {
    font-size: 40px;
  }

  .agency-hero__description {
    font-size: 16px;
  }

  .agency-container {
    padding: 0 50px 60px;
  }

  .agency-intro {
    padding: 50px 0;
    margin-bottom: 50px;
  }

  .agency-intro__title {
    font-size: 32px;
  }

  .agency-intro__text {
    font-size: 18px;
  }

  .agency-form-card {
    padding: 40px;
  }

  .agency-form__title {
    font-size: 28px;
  }

  .agency-form__grid {
    gap: 20px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .agency-hero {
    height: 280px;
  }

  .agency-hero__title {
    font-size: 32px;
  }

  .agency-hero__description {
    font-size: 15px;
  }

  .agency-container {
    padding: 0 30px 40px;
  }

  .agency-form-card {
    padding: 30px 20px;
  }

  .agency-form__title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .agency-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .agency-form__label {
    font-size: 16px;
  }

  .agency-form__input {
    padding: 14px 16px;
    font-size: 15px;
  }

  .agency-form__submit {
    padding: 16px 24px;
    font-size: 16px;
  }

  .agency-form__success,
  .agency-form__error {
    padding: 14px 16px;
    font-size: 15px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .agency-hero {
    height: 240px;
  }

  .agency-hero__title {
    font-size: 26px;
  }

  .agency-hero__description {
    font-size: 14px;
  }

  .agency-container {
    padding: 0 20px 30px;
  }

  .agency-form-card {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .agency-form__title {
    font-size: 22px;
  }

  .agency-form__grid {
    gap: 16px;
  }

  .agency-form__input {
    padding: 12px 14px;
  }

  .agency-form__submit {
    padding: 14px 20px;
  }
}