@import url("./styles.css");

/* Products Page Custom Styles */

.products-intro {
  padding: 70px 0 40px;
  background: var(--surface-soft-alt);
  position: relative;
  overflow: hidden;
}

.products-intro::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(14, 184, 226, 0.08),
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.intro-content {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  padding-top: 10px;
  padding-bottom: 10px;
  color: var(--primary-700);
  font-family: "Cairo", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.intro-sub {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sun-600);
}

.intro-lead {
  color: var(--gray-600);
  line-height: 1.8;
}

.intro-cta {
  align-self: flex-start;
  margin-top: 4px;
}

.products-grid-section {
  padding: 40px 0 80px;
  background: var(--white);
}

.products-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
}

.product-card {
  opacity: 0;
  animation: fadeInScale 0.5s ease forwards;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.product-card:nth-child(2) {
  animation-delay: 0.2s;
}
.product-card:nth-child(3) {
  animation-delay: 0.3s;
}
.product-card:nth-child(4) {
  animation-delay: 0.4s;
}
.product-card:nth-child(5) {
  animation-delay: 0.5s;
}
.product-card:nth-child(6) {
  animation-delay: 0.6s;
}
.product-card:nth-child(7) {
  animation-delay: 0.7s;
}
.product-card:nth-child(8) {
  animation-delay: 0.8s;
}
.product-card:nth-child(9) {
  animation-delay: 0.9s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.product-card {
  --card-accent: var(--accent-500);
  --card-accent-soft: rgba(14, 184, 226, 0.22);
  --card-accent-surface: linear-gradient(
    135deg,
    rgba(14, 184, 226, 0.14),
    rgba(34, 101, 194, 0.08)
  );
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 26px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-card:nth-child(3n + 2) {
  --card-accent: var(--sun-500);
  --card-accent-soft: rgba(242, 169, 59, 0.22);
  --card-accent-surface: linear-gradient(
    135deg,
    rgba(242, 169, 59, 0.16),
    rgba(255, 208, 123, 0.08)
  );
}

.product-card:nth-child(3n) {
  --card-accent: var(--success);
  --card-accent-soft: rgba(16, 185, 129, 0.2);
  --card-accent-surface: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.14),
    rgba(34, 197, 94, 0.08)
  );
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent), var(--primary-600));
  transition: left 0.4s ease;
}

.product-card:hover::before {
  left: 0;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-xl);
  border-color: var(--card-accent-soft);
  background: var(--white);
}

.image-placeholder {
  height: 160px;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
    45deg,
    var(--primary-100),
    var(--primary-100) 10px,
    var(--primary-200) 10px,
    var(--primary-200) 20px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-600);
  font-size: 0.95rem;
  border: 2px dashed rgba(25, 82, 160, 0.25);
  user-select: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-accent-surface);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .image-placeholder::before {
  opacity: 1;
}

/* Product Image Styles */
.product-image {
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line-subtle);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-icon {
  font-size: 3rem;
  color: var(--card-accent);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.product-card:hover .product-icon {
  color: var(--card-accent);
  transform: scale(1.15) translateY(-4px);
}

.placeholder-text {
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  opacity: 0.7;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-700);
  transition: color 0.3s ease;
  margin-top: 4px;
}

.product-card:hover .product-title {
  color: var(--card-accent);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.product-card:hover .product-desc {
  color: var(--gray-700);
}

.product-btn {
  font-size: 0.9rem;
  padding: 13px 26px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.product-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: -1;
}

.product-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   Sales Contact Section - Redesigned
   ============================================ */

.sales-contact {
  background: linear-gradient(
    135deg,
    var(--primary-900) 0%,
    var(--primary-700) 100%
  );
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.sales-contact::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(14, 184, 226, 0.15),
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
}

.sales-contact::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.05),
    transparent 60%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Header Section */
.sales-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
  animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sales-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 184, 226, 0.15);
  border: 1px solid rgba(14, 184, 226, 0.3);
  padding: 10px 24px;
  border-radius: 999px;
  color: var(--accent-400);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.sales-badge i {
  font-size: 1.1rem;
}

.sales-main-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff, var(--accent-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sales-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

/* Wrapper */
.sales-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: stretch;
}

/* Info Section */
.sales-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  animation: fadeInLeft 0.7s ease;
  height: 100%;
  justify-content: space-between;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

html[dir="rtl"] .sales-info {
  animation: fadeInRight 0.7s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-500), var(--primary-600));
  border-radius: 50%;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(14, 184, 226, 0.4);
}

.info-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.info-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-500);
  transition: all 0.3s ease;
}

html[dir="rtl"] .feature-item {
  border-left: none;
  border-right: 3px solid var(--accent-500);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-5px);
}

html[dir="rtl"] .feature-item:hover {
  transform: translateX(5px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 184, 226, 0.2);
  border-radius: 8px;
  color: var(--accent-400);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.feature-content p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.5;
}

/* Quick Contact Info */
.contact-quick-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quick-contact-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-500);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value:hover {
  color: var(--accent-400);
}

/* ============================================
   Form Card - Redesigned
   ============================================ */

.sales-form-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 30px 80px rgba(11, 31, 63, 0.25);
  color: var(--gray-700);
  overflow: hidden;
  animation: fadeInScale 0.7s ease 0.2s both;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.form-card-header {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  border-bottom: 3px solid var(--accent-500);
}

.form-card-header i {
  font-size: 1.6rem;
  opacity: 0.9;
}

.form-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.sales-form {
  padding: 28px 32px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* Form Group */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--accent-500);
  font-size: 0.9rem;
}

.form-group label .required {
  color: var(--error);
  margin-right: 4px;
}

.form-group label .optional {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 400;
}

/* Input Wrappers */
.input-wrapper,
.textarea-wrapper,
.select-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input,
.textarea-wrapper textarea,
.select-wrapper select {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: var(--gray-700);
}

html[dir="rtl"] .input-wrapper input,
html[dir="rtl"] .textarea-wrapper textarea,
html[dir="rtl"] .select-wrapper select {
  padding: 12px 16px 12px 48px;
}

.input-wrapper input:hover,
.textarea-wrapper textarea:hover,
.select-wrapper select:hover {
  border-color: var(--gray-300);
  background: white;
}

.input-wrapper input:focus,
.textarea-wrapper textarea:focus,
.select-wrapper select:focus {
  outline: none;
  border-color: var(--accent-500);
  background: white;
  box-shadow: 0 0 0 4px rgba(14, 184, 226, 0.1);
  transform: translateY(-1px);
}

.input-wrapper input::placeholder,
.textarea-wrapper textarea::placeholder {
  color: var(--gray-400);
}

/* Input Icons */
.input-icon,
.textarea-icon,
.select-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

html[dir="rtl"] .input-icon,
html[dir="rtl"] .textarea-icon {
  right: auto;
  left: 16px;
}

.input-wrapper input:focus ~ .input-icon,
.textarea-wrapper textarea:focus ~ .textarea-icon {
  color: var(--accent-500);
}

/* Textarea */
.textarea-wrapper textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 200px;
  padding: 12px 16px;
  line-height: 1.6;
}

.textarea-icon {
  top: 18px;
  transform: none;
}

/* Select Dropdown */
.select-wrapper select {
  appearance: none;
  cursor: pointer;
  padding-right: 48px;
}

html[dir="rtl"] .select-wrapper select {
  padding-right: 16px;
  padding-left: 48px;
}

.select-icon {
  right: 16px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

html[dir="rtl"] .select-icon {
  right: auto;
  left: 16px;
}

.select-wrapper select:focus ~ .select-icon {
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent-500);
}

/* Field Errors */
.field-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 6px;
}

.field-error::before {
  content: "⚠";
}

.field-error.show {
  display: flex;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.08);
}

/* Form Actions */
.form-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-submit {
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-500), var(--primary-600));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(14, 184, 226, 0.35);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(14, 184, 226, 0.45);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit .btn-text,
.btn-submit .btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit .btn-loader {
  display: none;
}

.btn-submit:disabled {
  opacity: 0.8;
  cursor: wait;
}

.btn-submit:disabled .btn-text {
  display: none;
}

.btn-submit:disabled .btn-loader {
  display: flex;
}

.form-notice {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-notice i {
  color: var(--accent-500);
}

/* ============================================
   Form Alerts - Redesigned
   ============================================ */

.form-alerts {
  padding: 0 32px 32px;
}

.alert {
  display: none;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  animation: slideInUp 0.4s ease;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.show {
  display: flex;
}

.alert i {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.alert p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  font-size: 1.1rem;
  transition: opacity 0.3s ease;
}

html[dir="rtl"] .alert-close {
  right: auto;
  left: 12px;
}

.alert-close:hover {
  opacity: 1;
}

.alert-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.alert-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1100px) {
  .sales-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sales-info {
    order: 2;
  }

  .sales-form-card {
    order: 1;
  }
}

@media (max-width: 992px) {
  .sales-contact {
    padding: 80px 0 60px;
  }

  .sales-main-title {
    font-size: 2rem;
  }

  .sales-subtitle {
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .features-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
  }

  .intro-title {
    font-size: 1.6rem;
  }

  .sales-contact {
    padding: 60px 0 40px;
  }

  .sales-header {
    margin-bottom: 40px;
  }

  .sales-main-title {
    font-size: 1.7rem;
  }

  .sales-subtitle {
    font-size: 0.95rem;
  }

  .sales-badge {
    font-size: 0.85rem;
    padding: 8px 18px;
  }

  .sales-form {
    padding: 28px 24px 24px;
  }

  .form-card-header {
    padding: 22px 24px;
  }

  .form-card-header h3 {
    font-size: 1.05rem;
  }

  .form-alerts {
    padding: 0 24px 24px;
  }

  .info-header {
    padding: 20px;
  }

  .info-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .info-title {
    font-size: 1.15rem;
  }

  .feature-item {
    padding: 14px;
  }

  .contact-quick-info {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .image-placeholder {
    height: 140px;
    font-size: 0.85rem;
  }
  .product-icon {
    font-size: 2.5rem;
  }
  .intro-title {
    font-size: 1.4rem;
  }
  .sales-contact {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .products-intro {
    padding: 50px 0 28px;
  }

  .intro-title {
    font-size: 1.32rem;
    line-height: 1.35;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .sales-contact {
    padding: 54px 0;
  }

  .sales-wrapper {
    gap: 28px;
  }

  .sales-main-title {
    font-size: 1.5rem;
    line-height: 1.35;
  }

  .info-header {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }

  .form-card-header {
    padding: 18px;
  }

  .sales-form {
    padding: 24px 18px 20px;
  }

  .form-alerts {
    padding: 0 18px 18px;
  }

  .contact-quick-info {
    padding: 18px;
  }
}

/* Smooth Scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Loading state for form button */
.sales-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
  position: relative;
}

.sales-form button[type="submit"]:disabled::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus styles for accessibility */
.sales-form input:focus,
.sales-form textarea:focus,
.sales-form select:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 4px rgba(14, 184, 226, 0.15);
  transform: translateY(-1px);
}

/* Hover effect on intro CTA */
.intro-cta {
  position: relative;
  overflow: hidden;
}

.intro-cta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.intro-cta:hover::after {
  width: 300px;
  height: 300px;
}

/* Product card active state */
.product-card:active {
  transform: translateY(-8px) scale(1.01);
}

/* Improve select dropdown appearance */
.sales-form-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231952a0' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 40px;
}

html[dir="ltr"] .sales-form-card select {
  background-position: right 12px center;
  padding-left: 16px;
  padding-right: 40px;
}

/* RTL adjustments */
html[dir="rtl"] .product-card {
  text-align: right;
}

html[dir="rtl"] .sales-form-card {
  direction: rtl;
}

html[dir="rtl"] .sales-form-card label {
  text-align: right;
}

html[dir="rtl"] .intro-content {
  align-items: flex-start;
}

html[dir="ltr"] .intro-content {
  align-items: flex-start;
}

/* Enhanced product grid on large screens */
@media (min-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 34px;
  }
}

/* Print styles */
@media print {
  .sales-contact,
  .topbar,
  .navbar,
  .footer,
  .floating-contact,
  .scroll-top {
    display: none;
  }

  .product-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
