/* Modern Minimal Commissions Page Styles */

/* Base Variables */
:root {
  --max-width: 1200px;
  --primary-color: #2ea9e2;
  --text-dark: #1a1a1a;
  --text-medium: #6c757d;
  --text-light: #8a8a8a;
  --border-light: #e9ecef;
  --bg-light: #f8f9fa;
  --spacing-xs: 1rem;
  --spacing-sm: 2rem;
  --spacing-md: 3rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

/* Page Container */
.commissions-page {
  max-width: 100%;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-xs);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography Hierarchy */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
  color: #2c3e50;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: #2c3e50;
  line-height: 1.3;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  color: #2c3e50;
  line-height: 1.3;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

h5 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-sm);
  color: var(--text-medium);
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #2590c7;
  transform: translateY(-1px);
}

/* Category Sections */
.category-section {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.category-section:first-child {
  border-top: 1px solid var(--border-light);
}

.category-section:last-child {
  border-bottom: none;
}

.category-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
  max-width: 100%;
}

/* Category Info */
.category-info {
  padding-right: var(--spacing-md);
  padding-left: var(--spacing-xs);
}

.best-for {
  margin: var(--spacing-md) 0;
}

.best-for ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-xs) 0 0 0;
}

.best-for li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.best-for li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Process Section */
.process-section {
  text-align: center;
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-light);
}

.process-section h2 {
  margin-bottom: var(--spacing-lg);
  font-size: 2.2rem;
}

.process-steps {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
}

.step {
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(46, 169, 226, 0.15);
}

.step-number {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(46, 169, 226, 0.3);
}

.step-text h5 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.step-text p {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.5;
  color: var(--text-medium);
  font-weight: 400;
}

.cta-section {
  margin-top: var(--spacing-lg);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.cta-section .btn-primary {
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
  margin: 0 auto;
}

/* Category Carousel */
.category-carousel {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  position: relative;
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

.carousel-container {
  position: relative;
  height: 400px;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-light);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
}

.dot:hover {
  background: var(--text-light);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

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

.modal-content {
  position: relative;
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 169, 226, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.btn-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background: #2590c7;
  transform: translateY(-1px);
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem;
}

.success-message h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .commissions-page {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .category-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .category-carousel {
    height: 350px;
    margin-top: var(--spacing-md);
  }
  
  .carousel {
    max-width: 100%;
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .category-section {
    padding: var(--spacing-lg) 0;
  }
  
  .category-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .category-carousel {
    height: 300px;
    margin-top: var(--spacing-md);
  }
  
  .carousel {
    max-width: 100%;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .step {
    display: flex;
    align-items: center;
  }
  
  .step-number {
    margin: 0 1rem 0 0;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .commissions-page {
    padding: var(--spacing-sm) var(--spacing-xs);
  }
  
  .category-section {
    padding: var(--spacing-md) 0;
  }
  
  .category-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .category-carousel {
    height: 300px;
    margin-top: var(--spacing-sm);
  }
  
  .carousel {
    max-width: 100%;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .step {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 4px;
  }
  
  .step-number {
    margin: 0 1rem 0 0;
    flex-shrink: 0;
  }
  
  .carousel-container {
    height: 250px;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
}
