/* Frontend Styles for Photographer Manager */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #059669;
  --danger-color: #dc2626;
  --warning-color: #d97706;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --grid-min-width: 250px;
}

/* Container Styles */
.photographer-packages-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.photographer-packages-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

/* Package Card Styles */
.photographer-package-card {
  background: var(--card-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  will-change: transform, box-shadow;
}

.photographer-package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

/* Image Container */
.photographer-package-image-container {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.photographer-package-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photographer-package-image-container:hover .photographer-package-image {
  transform: scale(1.05);
}

.photographer-package-placeholder {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 240px;
}

.photographer-package-placeholder-content {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Badges and Overlays */
.photographer-package-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}


/* Content Styles */
.photographer-package-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.5rem;
}

.photographer-package-title {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.photographer-package-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.photographer-package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.photographer-package-features li {
  padding: 0.375rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.photographer-package-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: 700;
  font-size: 1rem;
}

/* Footer and Pricing */
.photographer-package-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--border-color);
}

.photographer-package-pricing {
  flex: 1;
}

.photographer-package-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.photographer-package-hours {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Inquiry Button */
.photographer-package-inquiry {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 120px;
  will-change: transform, box-shadow;
}

.photographer-package-inquiry:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4), 0 8px 10px -6px rgba(37, 99, 235, 0.3);
  text-decoration: none;
  color: white;
}

.photographer-package-inquiry:active {
  transform: translateY(0) scale(1);
}

/* Contact Form Styles */
.photographer-contact-form {
  max-width: 700px;
  margin: 3rem auto;
  background: var(--card-background);
  padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* Form Header with Icon */
.photographer-form-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.photographer-form-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

.photographer-header-icon {
  display: inline-block;
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: bounceIn 0.6s ease-out;
}

.photographer-form-header h3 {
  text-align: center;
  margin: 0 0 0.5rem 0;
  color: white;
  font-size: 1.875rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.photographer-form-subtitle {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.photographer-contact-form form {
  padding: 2rem;
}

.photographer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.photographer-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min-width), 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.photographer-form-section {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.photographer-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.photographer-section-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.photographer-section-header h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
}

.photographer-form-group {
  margin-bottom: 1.5rem;
}

.photographer-form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.photographer-input-icon {
  color: var(--primary-color);
  flex-shrink: 0;
}

.photographer-input-wrapper {
  position: relative;
  width: 100%;
}

.photographer-input-wrapper input,
.photographer-input-wrapper textarea,
.photographer-input-wrapper select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  background: var(--card-background);
  color: var(--text-primary);
}

.photographer-input-wrapper input:focus,
.photographer-input-wrapper textarea:focus,
.photographer-input-wrapper select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.photographer-input-wrapper input:hover,
.photographer-input-wrapper textarea:hover,
.photographer-input-wrapper select:hover {
  border-color: var(--primary-color);
}

.photographer-distance-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.photographer-distance-loader {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

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

.photographer-field-hint {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

.photographer-field-hint svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.photographer-form-group textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

/* Custom Checkbox Styling */
.photographer-checkbox-group {
  margin-top: 2rem;
}

.photographer-checkbox-label {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1rem;
  background: var(--background-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.photographer-checkbox-label:hover {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.photographer-checkbox-label input[type="checkbox"] {
  display: none;
}

.photographer-checkbox-custom {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all 0.2s ease;
}

.photographer-checkbox-label input[type="checkbox"]:checked + .photographer-checkbox-custom {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.photographer-checkbox-custom svg {
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.photographer-checkbox-label input[type="checkbox"]:checked + .photographer-checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

.photographer-checkbox-text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.photographer-checkbox-text a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.photographer-submit-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 1.125rem 2.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.photographer-submit-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.6s, height 0.6s;
}

.photographer-submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.photographer-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.photographer-submit-btn:active {
  transform: translateY(0);
}

.photographer-btn-icon {
  position: relative;
  z-index: 1;
}

.photographer-btn-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.photographer-submit-btn:hover .photographer-btn-arrow {
  transform: translateX(4px);
}

.photographer-submit-btn:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.photographer-submit-btn:disabled::before {
  display: none;
}

.photographer-submit-btn span {
  position: relative;
  z-index: 1;
}

/* Form Messages */
.photographer-form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.photographer-form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.photographer-form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Adding Modal Contact Form Styles */
/* Modal Styles */
.photographer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.photographer-modal-content {
  position: relative;
  background: var(--card-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-sizing: border-box;
}

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

.photographer-modal-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.photographer-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photographer-modal-close:hover {
  background: var(--background-color);
  color: var(--text-primary);
}

.photographer-modal-form {
  padding: 2rem;
}

.photographer-modal-body {
  padding: 2rem;
  text-align: center;
}

.photographer-modal-body p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

.photographer-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.photographer-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 1;
}

.photographer-btn-primary {
  background: var(--primary-color);
  color: white;
}

.photographer-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.photographer-btn-primary:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.photographer-btn-secondary {
  background: var(--background-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.photographer-btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .photographer-packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .photographer-packages-container {
    padding: 1rem;
  }

  .photographer-packages-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .photographer-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .photographer-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .photographer-contact-form {
    margin: 1.5rem;
    padding: 1.5rem;
  }

  .photographer-package-content {
    padding: 1.25rem;
  }

  .photographer-package-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .photographer-package-inquiry {
    width: 100%;
  }

  /* Modal responsive styles */
  .photographer-modal {
    padding: 0.5rem;
  }

  .photographer-modal-content {
    max-width: 100%;
  }

  .photographer-modal-header {
    padding: 1rem 1.5rem;
  }

  .photographer-modal-form,
  .photographer-modal-body {
    padding: 1.5rem;
  }

  .photographer-form-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .photographer-package-title {
    font-size: 1.25rem;
  }

  .photographer-package-price {
    font-size: 1.5rem;
  }

  .photographer-contact-form h3 {
    font-size: 1.5rem;
  }

  /* Small screen modal adjustments */
  .photographer-modal {
    padding: 0.25rem;
  }

  .photographer-modal-content {
    border-radius: 12px;
  }

  .photographer-modal-header {
    padding: 1rem;
  }

  .photographer-modal-header h3 {
    font-size: 1.25rem;
  }

  .photographer-modal-form,
  .photographer-modal-body {
    padding: 1rem;
  }
}

/* Loading States */
.photographer-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.photographer-loading::after {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Focus styles for better accessibility */
.photographer-package-inquiry:focus,
.photographer-submit-btn:focus,
.photographer-form-group input:focus,
.photographer-form-group textarea:focus,
.photographer-form-group select:focus,
.photographer-btn:focus,
.photographer-modal-close:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* AI Recommendation Styles */
.photographer-ai-recommendation {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  color: white;
}

.photographer-ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.photographer-ai-icon {
  flex-shrink: 0;
}

.photographer-ai-header h3 {
  margin: 0;
  flex-grow: 1;
  font-size: 18px;
  font-weight: 600;
}

.photographer-ai-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.photographer-ai-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.photographer-ai-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.photographer-ai-result {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  color: #1f2937;
}

.photographer-ai-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.photographer-confidence-label {
  font-weight: 600;
  font-size: 14px;
  color: #6b7280;
}

.photographer-confidence-badge {
  font-weight: 600;
  font-size: 14px;
}

.photographer-recommended-package h4 {
  font-size: 16px;
  margin: 0 0 8px 0;
}

.photographer-ai-reasoning {
  margin-top: 10px;
}

.photographer-alternative-package {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
  .photographer-ai-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .photographer-ai-btn {
    width: 100%;
    justify-content: center;
  }
}
