/* Brief Drawer Styles - Dark Theme */
:root {
  --dc-bg: #0C0D10;
  --dc-panel: #15161B;
  --dc-text: #F2F3F5;
  --dc-muted: #B9BCC7;
  --dc-red: #C8141F;
  --dc-red-600: #A3121A;
  --dc-red-300: #FF4A58;
  --dc-border: #202229;
}

/* Services Grid - 3x3 Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Tablet & Small Desktop */
@media (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-card {
    min-height: 300px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .service-icon i {
    font-size: 1.6rem;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
  }

  .service-card {
    min-height: auto;
    padding: 24px 20px;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
  }

  .service-icon i {
    font-size: 1.5rem;
  }

  .service-content h3 {
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
  }

  .service-content p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }

  .service-action {
    width: 100%;
  }

  .service-action .btn-start {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Service Cards - Square Layout */
.service-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dc-red), #c8141f);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(139, 0, 0, 0.12);
  border-color: var(--dc-red);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(145deg, #101014, #15161b);
  display: grid;
  place-items: center;
  color: var(--dc-red);
  border: 1px solid #202229;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(145deg, var(--dc-red), #c8141f);
  color: #fff;
  border-color: var(--dc-red);
}

.service-icon i {
  font-size: 1.8rem;
}

.service-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #212529;
  line-height: 1.3;
}

.service-desc {
  margin: 0 0 auto 0;
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-action {
  margin-top: 20px;
  width: 100%;
}

.btn-start {
  background: var(--dc-red);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

.btn-start:hover {
  background: #6b0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 0, 0, 0.3);
  color: #fff;
}

/* Brief Drawer */
.brief-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brief-drawer.open {
  display: block;
  opacity: 1;
}

.brief-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.brief-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 600px;
  height: 100%;
  background: var(--dc-bg);
  color: var(--dc-text);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brief-drawer.open .brief-container {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .brief-container {
    max-width: 100%;
  }
}

/* Header */
.brief-header {
  padding: 24px;
  border-bottom: 1px solid var(--dc-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--dc-panel);
}

.brief-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 4px 0;
  color: #fff;
}

.brief-subtitle {
  font-size: 0.95rem;
  color: var(--dc-red-300);
  margin: 0;
}

.brief-close {
  background: transparent;
  border: none;
  color: var(--dc-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s ease;
  margin-left: 16px;
}

.brief-close:hover {
  color: var(--dc-red-300);
}

/* Progress */
.brief-progress {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: var(--dc-panel);
  border-bottom: 1px solid var(--dc-border);
}

.progress-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dc-border);
  border: 2px solid var(--dc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dc-text);
  font-weight: 700;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.progress-dot span {
  font-size: 0.9rem;
}

.progress-dot label {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  white-space: nowrap;
  color: var(--dc-muted);
}

.progress-dot.active {
  background: var(--dc-red);
  border-color: var(--dc-red);
  color: #fff;
}

.progress-dot.active label {
  color: var(--dc-red-300);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--dc-border);
  margin: 0 12px;
}

.progress-dot.active ~ .progress-line {
  background: var(--dc-red);
}

/* Form */
.brief-form {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.brief-step {
  animation: slideIn 0.3s ease;
}

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

.step-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 24px 0;
  color: #fff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dc-text);
  font-size: 0.95rem;
}

.required {
  color: var(--dc-red-300);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--dc-panel);
  border: 1px solid var(--dc-border);
  border-radius: 10px;
  color: var(--dc-text);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--dc-red);
  box-shadow: 0 0 0 3px rgba(200, 20, 31, 0.1);
}

.form-control::placeholder {
  color: #666;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.error-msg {
  display: block;
  color: var(--dc-red-300);
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 18px;
}

.form-hint {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--dc-red);
}

.checkbox-label span {
  flex: 1;
  color: var(--dc-text);
}

.inline-text {
  flex: 1;
  padding: 6px 10px;
  background: var(--dc-panel);
  border: 1px solid var(--dc-border);
  border-radius: 6px;
  color: var(--dc-text);
  font-size: 0.9rem;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed var(--dc-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.file-upload-area:hover {
  border-color: var(--dc-red);
  background: rgba(200, 20, 31, 0.05);
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  top: 0;
  left: 0;
}

.file-upload-placeholder {
  pointer-events: none;
}

.file-upload-placeholder i {
  font-size: 2.5rem;
  color: var(--dc-red-300);
  margin-bottom: 12px;
  display: block;
}

.file-upload-placeholder p {
  margin: 8px 0;
  color: var(--dc-text);
}

.file-upload-placeholder span {
  color: var(--dc-red-300);
  text-decoration: underline;
}

.file-upload-placeholder small {
  color: #666;
  font-size: 0.85rem;
}

.file-list {
  margin-top: 16px;
  text-align: left;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: var(--dc-panel);
  border-radius: 8px;
  margin-bottom: 8px;
}

.file-item-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--dc-text);
}

.file-item-size {
  font-size: 0.85rem;
  color: #666;
  margin-right: 12px;
}

.file-item-remove {
  background: var(--dc-red);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Actions */
.brief-actions {
  padding: 24px;
  border-top: 1px solid var(--dc-border);
  background: var(--dc-panel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brief-actions-right {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.btn {
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-size: 0.95rem;
}

.btn-back {
  background: transparent;
  color: var(--dc-text);
  border: 1px solid var(--dc-border);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn-next,
.btn-submit {
  background: var(--dc-red);
  color: #fff;
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--dc-red-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 20, 31, 0.3);
}

/* Success State */
.brief-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  font-size: 4rem;
  color: var(--dc-red);
  margin-bottom: 24px;
}

.brief-success h3 {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 12px 0;
  color: #fff;
}

.brief-success p {
  color: var(--dc-text);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 0 auto;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--dc-red-300);
  border: 2px solid var(--dc-red-300);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: rgba(200, 20, 31, 0.1);
  color: var(--dc-red-300);
}

/* Error Summary */
.error-summary {
  background: rgba(200, 20, 31, 0.1);
  border: 1px solid var(--dc-red);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  color: var(--dc-red-300);
}

.error-summary ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .brief-container {
    max-width: 100%;
  }

  .brief-header {
    padding: 20px;
  }

  .brief-form {
    padding: 20px;
  }

  .brief-actions {
    flex-direction: column;
  }

  .brief-actions-right {
    width: 100%;
    margin-left: 0;
  }

  .btn {
    width: 100%;
  }

  .progress-dot label {
    display: none;
  }
}

