/* Contact Page Specific Styles */
:root {
  --glass: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.05);
}

body {
  background: #000;
  color: white;
}

.order-wrapper {
  display: flex;
  flex-direction: column;
  padding: 25vh 10% 8vh 10%;
  position: relative;
  z-index: 2;
  background: #000;
  min-height: 100vh;
}

.order-header {
  margin-bottom: 8vh;
}

.order-header .meta {
  font-family: var(--font-english);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  opacity: 0.3;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2rem;
}

.order-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -2px;
}

.order-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.selection-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.selection-group h4 {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  opacity: 0.4;
  margin-bottom: 2rem;
  font-family: var(--font-english);
}

.options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.option-item {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 3rem;
  font-size: 0.75rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.option-item.active {
  background: white;
  color: black;
  border-color: white;
  font-weight: 500;
}

.sel-index {
  font-family: var(--font-english);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.option-item.active .sel-index {
  color: black;
}

.form-panel {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.form-field {
  position: relative;
  width: 100%;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.2rem 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-arabic);
  font-weight: 300;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-field label {
  position: absolute;
  top: 1.5rem;
  right: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.5;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-field input:focus ~ label,
.form-field input:not(:placeholder-shown) ~ label,
.form-field textarea:focus ~ label,
.form-field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-2.5rem);
  font-size: 0.65rem;
  opacity: 0.8;
  color: white;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.submit-btn-dual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 2.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: white;
  font-family: var(--font-arabic);
  font-size: 0.75rem;
  align-self: flex-start;
}

.submit-btn-dual:hover {
  background: white;
  color: black;
}

.btn-flip-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

.text-main,
.text-hover {
  grid-area: 1 / 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-hover {
  opacity: 0;
  transform: translateY(20px);
}

.submit-btn-dual:hover .text-main {
  opacity: 0;
  transform: translateY(-20px);
}

.submit-btn-dual:hover .text-hover {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.field-error input,
.field-error textarea {
  border-bottom-color: #ff4d4d !important;
  color: #ff4d4d !important;
}

.field-error label {
  color: #ff4d4d !important;
}

.error-msg {
  color: #ff4d4d;
  font-size: 0.55rem;
  display: none;
  margin-top: 0.4rem;
  font-family: var(--font-arabic);
}

#subject-options {
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  background: rgba(5, 5, 5, 1);
  backdrop-filter: blur(20px);
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.custom-option:hover {
  background: rgba(255, 255, 255, 0.03);
  color: white !important;
}

#subject-field.active label,
#subject-field.open-state label,
#subject-field input:focus ~ label,
#subject-field input:not(:placeholder-shown) ~ label {
  transform: translateY(-2.5rem);
  font-size: 0.65rem;
  opacity: 0.8;
  color: white;
}

#subject-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#subject-arrow.rotated {
  transform: rotate(180deg);
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .order-grid {
    grid-template-columns: 1fr;
    gap: 8vh;
  }
  .order-wrapper {
    padding-top: 15vh;
  }
}
