/* Email Keyboard Styles - Adapted from keyboard template */
.email-keyboard-section {
  margin: 80px 0 100px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.email-keyboard-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.email-keypad {
  position: relative;
  aspect-ratio: 400 / 310;
  display: flex;
  place-items: center;
  width: clamp(280px, 35vw, 400px);
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent;
  transition-property: translate, transform;
  transition-duration: 0.26s;
  transition-timing-function: ease-out;
  transform-style: preserve-3d;
  opacity: 1;
}

.email-keypad .key {
  transform-style: preserve-3d;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  --travel: 20;
  --hue: 180;
  --saturate: 1;
  --brightness: 1.2;
}

.email-keypad .key[data-pressed='true'],
.email-keypad .key:active {
  .key__content {
    translate: 0 calc(var(--travel) * 1%);
  }
}

.email-keypad .key__content {
  width: 100%;
  display: inline-block;
  height: 100%;
  transition: translate 0.12s ease-out;
  container-type: inline-size;
}

.email-keypad .keypad__single .key__text {
  width: 52%;
  height: 62%;
  translate: 45% -16%;
}

.email-keypad .key__text {
  height: 46%;
  width: 86%;
  position: absolute;
  font-size: 12cqi;
  z-index: 21;
  top: 5%;
  left: 0;
  mix-blend-mode: normal;
  color: hsl(0 0% 94%);
  translate: 8% 10%;
  transform: rotateX(36deg) rotateY(45deg) rotateX(-90deg) rotate(0deg);
  text-align: left;
  padding: 1ch;
  font-weight: 600;
}

.email-keypad .keypad__single {
  position: absolute;
  width: 40.5%;
  left: 54%;
  bottom: 36%;
  height: 46%;
  clip-path: polygon(
    0 0,
    54% 0,
    89% 24%,
    100% 70%,
    54% 100%,
    46% 100%,
    0 69%,
    12% 23%,
    47% 0%
  );
  mask: url(https://assets.codepen.io/605876/keypad-single.png?format=auto&quality=86) 50% 50% / 100% 100%;
}

.email-keypad .keypad__single--left {
  left: 29.3%;
  bottom: 54.2%;
}

.email-keypad .keypad__single .key__text {
  font-size: 18cqi;
}

.email-keypad .key__mask {
  width: 100%;
  height: 100%;
  display: inline-block;
}

.email-keypad .keypad__double {
  position: absolute;
  background: transparent;
  width: 64%;
  height: 65%;
  left: 6%;
  bottom: 17.85%;
  clip-path: polygon(
    34% 0,
    93% 44%,
    101% 78%,
    71% 100%,
    66% 100%,
    0 52%,
    0 44%,
    7% 17%,
    30% 0
  );
  mask: url(https://assets.codepen.io/605876/keypad-double.png?format=auto&quality=86) 50% 50% / 100% 100%;
}

.email-keypad .key img {
  filter: hue-rotate(calc(var(--hue, 0) * 1deg))
    saturate(var(--saturate, 1)) brightness(var(--brightness, 1));
  top: 0;
  opacity: 1;
  width: 96%;
  position: absolute;
  left: 50%;
  translate: -50% 1%;
  transition: translate 0.12s ease-out;
}

.email-keypad .keypad__double img {
  width: 99%;
}

.email-keypad .keypad__base {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.email-keypad .keypad__base img {
  transition: translate 0.12s ease-out;
  width: 100%;
}

/* Key colors - using brand color theme */
#email-key-1 {
  --hue: 180;
  --saturate: 0.8;
  --brightness: 1.2;
}

#email-key-2 {
  --hue: 180;
  --saturate: 0.9;
  --brightness: 1.1;
}

#email-key-3 {
  --hue: 180;
  --saturate: 1;
  --brightness: 1.3;
}

/* Contact Form Styles */
.contact-form {
  max-width: 500px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 60%), var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(108, 240, 194, 0.1);
}

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

.btn-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--brand);
  color: #0b0b0c;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-submit:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 240, 194, 0.3);
}

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

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(108, 240, 194, 0.1);
  border: 1px solid rgba(108, 240, 194, 0.3);
  color: var(--brand);
}

.form-message.error {
  display: block;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .email-keyboard-section {
    margin: 60px 0 80px;
  }
  
  .email-keypad {
    width: clamp(240px, 50vw, 320px);
  }
  
  .contact-form {
    padding: 1.5rem;
    margin-top: 2rem;
  }
}

