/* Get Featured - Figma Design Implementation */

:root {
  --purple-primary: #3a1e72;
  --purple-dark: #241247;
  --bg-light: #f7f6f8;
  --white: #ffffff;
  --text-primary: #333333;
  --text-secondary: #797979;
  --text-placeholder: #bdbdbd;
  --border-light: #f1f1f4;
  --border-gray: #f5f5f5;
  --notice-bg: #ddf4ff;
  --upload-icon-bg: #f2f2f7;
  --font: "Inter", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg-light);
  color: var(--text-primary);
}

/* Main Content */
.get-featured-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-light);
}

/* Hero Section */
.hero {
  width: 100%;
  background: var(--purple-primary);
  position: relative;
  padding: 80px 1rem;
  text-align: center;
  overflow: hidden;
  min-height: 287px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(36, 18, 71, 0.5);
  pointer-events: none;
  z-index: 1;
}

.social-icons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
  z-index: 0;
}

.social-icons::before {
  content: "";
  flex: 1;
  order: 3;
}

.social-icons::after {
  content: "";
  flex: 1;
  order: 3;
}

.social-icon:nth-child(1) {
  order: 1;
  margin-right: 40px;
}

.social-icon:nth-child(2) {
  order: 2;
}

.social-icon:nth-child(3) {
  order: 4;
  margin-left: 40px;
}

.social-icon:nth-child(4) {
  order: 5;
}

.social-icon {
  width: 204px;
  height: 204px;
  border-radius: 45px;
  opacity: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 19px;
}

.logo-image {
  max-height: 45px;
  height: auto;
  width: auto;
  max-width: 100%;
}

.camera-icon {
  width: 32px;
  height: 28px;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  letter-spacing: -1px;
  line-height: 1;
}

.title-underline {
  position: relative;
  z-index: 2;
  width: 222px;
  height: 15px;
  margin: -12px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 222 15'%3E%3Cpath d='M2 10 Q 55 5, 111 8 T 220 10' stroke='white' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

/* Form Section */
.content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 40px 1rem;
  margin-top: 0;
  position: relative;
}

.form-card {
  background: var(--white);
  border: 0.5px solid var(--border-gray);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.form-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-primary);
}

.optional {
  color: var(--text-placeholder);
  font-weight: 400;
}

input[type="text"],
input[type="email"],
textarea {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s;
  width: 100%;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: var(--text-placeholder);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--purple-primary);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 70px;
}

/* Upload Area */
.upload-drop-area {
  border: 1px dashed var(--border-light);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.upload-drop-area:hover:not(.has-files) {
  border-color: var(--purple-primary);
  background: #fafafa;
}

.upload-drop-area.dragover {
  border-color: var(--purple-primary);
  background: #f0ebf8;
}

.upload-drop-area.has-files {
  cursor: default;
  min-height: auto;
}

.upload-drop-area input[type="file"] {
  display: none;
}

.upload-icon {
  width: 40px;
  height: 40px;
  background: var(--upload-icon-bg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon svg,
.upload-icon img {
  width: 24px;
  height: 24px;
  color: var(--text-secondary);
  display: block;
}

.upload-text {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-primary);
  margin: 0;
}

.upload-link {
  color: var(--purple-primary);
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.upload-meta {
  font-size: 10px;
  line-height: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.upload-preview {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 350px;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
}

.media-wrapper {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-info {
  display: none;
}

.preview-item .filename {
  display: none;
}

.file-size {
  display: none;
}

.preview-item .remove-upload {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: #d32f2f;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  line-height: 1;
  font-weight: 400;
  opacity: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.preview-item:hover .remove-upload {
  opacity: 1;
}

.preview-item .remove-upload:hover {
  background: #d32f2f;
  color: white;
  transform: scale(1.1);
}

.add-another-btn {
  border: 2px dashed var(--border-light);
  background: var(--white);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 11px;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  aspect-ratio: 1;
  width: 100%;
}

.add-another-btn:hover {
  background: #fafafa;
  border-color: var(--purple-primary);
  color: var(--purple-primary);
}

.add-another-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.add-another-btn:hover svg {
  color: var(--purple-primary);
}

.add-another-btn span {
  font-size: 11px;
}

.max-files-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  border-radius: 8px;
  font-weight: 500;
  margin-top: 0;
}

.upload-notice {
  background: var(--notice-bg);
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
}

.upload-notice p {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-primary);
  margin: 0;
}

.upload-notice strong {
  font-weight: 700;
}

/* Consent Checkbox */
.consent-group {
  margin-bottom: 20px;
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 400 !important;
  text-align: left;
  max-width: 100%;
}

.consent-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: var(--white);
}

.consent-checkbox:hover {
  border-color: var(--purple-primary);
}

.consent-checkbox:checked {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
}

.consent-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-checkbox:focus {
  outline: 2px solid rgba(58, 30, 114, 0.2);
  outline-offset: 2px;
}

.consent-text {
  font-size: 12px;
  line-height: 20px;
  color: var(--text-primary);
  flex: 1;
}

/* Submit Button */
button[type="submit"] {
  background: var(--purple-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  cursor: pointer;
  width: 100%;
  transition:
    background 0.2s,
    transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

button[type="submit"]:hover:not(:disabled) {
  background: #3f1f7f;
  transform: translateY(-1px);
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

button[type="submit"]:disabled:not(.loading) {
  background: #b0b0b0;
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

button[type="submit"].ready {
  animation: pulse 2s infinite;
}

button[type="submit"].loading {
  background: var(--purple-primary);
  cursor: wait;
  opacity: 0.8;
}

button[type="submit"].loading .spinner {
  display: inline-block;
}

button[type="submit"].loading #submitBtnText {
  display: none;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(80, 41, 157, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(80, 41, 157, 0);
  }
}

/* Error Messages */
.error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  display: block;
  min-height: 0;
  font-weight: 500;
  transition: min-height 0.2s;
}

.error:not(:empty) {
  min-height: 18px;
}

/* Validation States */
input[type="text"].invalid,
input[type="email"].invalid,
textarea.invalid {
  border-color: #d32f2f;
}

.upload-drop-area.invalid {
  border-color: #d32f2f;
  background: #fef5f5;
}

/* Form States */
.form-state {
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.form-state[hidden] {
  display: none;
}

.form-state h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  line-height: 32px;
}

.form-state p {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 24px;
  margin: 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.success-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.success-social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.success-social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.success-social-icon:hover {
  transform: scale(1.1);
}

.success-social-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.success-button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.return-home-btn,
.submit-another-btn {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  border: none;
  border-radius: 100px;
  padding: 12px 24px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

.primary-btn {
  background: var(--purple-primary);
  color: var(--white);
  border: 2px solid var(--purple-primary);
}

.primary-btn:hover {
  background: #3f1f7f;
  border-color: #3f1f7f;
  transform: translateY(-1px);
}

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

.secondary-btn {
  background: transparent;
  color: var(--purple-primary);
  border: 2px solid var(--purple-primary);
}

.secondary-btn:hover {
  background: rgba(58, 30, 114, 0.05);
  transform: translateY(-1px);
}

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

/* Spinner */
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #fbfafa;
  color: rgb(221, 3, 3);
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.4;
  max-width: 90%;
  width: auto;
  min-width: 280px;
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Social Links Section */
.social-link-group {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  position: relative;
}

.social-link-group:last-child {
  margin-bottom: 0;
}

.social-icon-inline {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
}

.social-platform-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.social-input {
  flex: 1;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 52px 12px 12px;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color 0.2s;
}

.social-input-other {
  padding: 12px;
}

.social-input::placeholder {
  color: var(--text-placeholder);
}

.social-input:focus {
  border-color: var(--purple-primary);
  outline: none;
}

@media (max-width: 768px) {
  .upload-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 60px 1rem;
    min-height: 220px;
  }

  .social-icons {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 15px;
    gap: 0;
  }

  .social-icons::before,
  .social-icons::after {
    display: none;
  }

  .social-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    margin: 0 !important;
  }

  .social-icon:nth-child(1) {
    justify-self: start;
    align-self: start;
    order: 1;
  }

  .social-icon:nth-child(2) {
    justify-self: start;
    align-self: end;
    order: 2;
  }

  .social-icon:nth-child(3) {
    justify-self: end;
    align-self: end;
    order: 4;
  }

  .social-icon:nth-child(4) {
    justify-self: end;
    align-self: start;
    order: 3;
  }

  .hero h1 {
    font-size: 42px;
  }

  .logo-image {
    max-height: 50px;
  }

  .form-card {
    padding: 24px;
  }

  .upload-preview {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .upload-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .toast {
    bottom: 16px;
    min-width: 240px;
    font-size: 13px;
    padding: 12px 16px;
  }

  .hero {
    padding: 50px 1rem 40px;
    min-height: auto;
  }

  .social-icons {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 10px;
    gap: 0;
  }

  .social-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }

  .social-icon:nth-child(1) {
    justify-self: start;
    align-self: start;
  }

  .social-icon:nth-child(2) {
    justify-self: start;
    align-self: end;
  }

  .social-icon:nth-child(3) {
    justify-self: end;
    align-self: end;
  }

  .social-icon:nth-child(4) {
    justify-self: end;
    align-self: start;
  }

  .hero-logo {
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.5px;
  }

  .logo-image {
    max-height: 45px;
  }

  .title-underline {
    width: 160px;
    height: 10px;
    margin: -8px auto 0;
  }

  .form-card {
    padding: 20px;
  }

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

  button[type="submit"] {
    font-size: 13px;
    padding: 10px 20px;
  }

  .social-platform-icon {
    width: 28px;
    height: 28px;
  }

  .social-icon-inline {
    width: 28px;
    height: 28px;
    right: 10px;
  }

  .social-input {
    padding: 10px 45px 10px 10px;
    font-size: 13px;
  }

  .social-input-other {
    padding: 10px;
  }
}
