/* Font declarations */
@font-face {
  font-family: "PPTelegraf";
  src: url("../fonts/PPTelegraf-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PPTelegraf";
  src: url("../fonts/PPTelegraf-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PPTelegraf";
  src: url("../fonts/PPTelegraf-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PPTelegraf";
  src: url("../fonts/PPTelegraf-Light.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables matching frontend_ui */
:root {
  --bg: #231f20;
  --copy-max: 1200px;
}

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

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  font-family: 'PPTelegraf', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  font-weight: 400;
  font-size: clamp(12px, 1.1vw, 16px);
  scroll-behavior: smooth;
  color: #fff;
  display: flex;
  flex-direction: column;
}

/* Countdown Timer */
.countdown-header {
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  text-align: center;
}

.countdown-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

.countdown-number {
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.countdown-label {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.countdown-separator {
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
  padding: 0 clamp(0.25rem, 1vw, 0.75rem);
  align-self: flex-end;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}

/* Animation for number updates */
.countdown-number.updating {
  transform: scale(1.1);
}

/* Container for Save the Date page */
.save-date-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.save-date-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

/* Form and Success views */
.form-view {
  display: block;
}

.success-view {
  display: none;
}

.form-view.hidden {
  display: none;
}

.success-view.show {
  display: block;
}

/* Typography */
.save-date-title {
  font-size: clamp(2.5rem, 10vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.save-date-subtitle {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: clamp(2rem, 5vh, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Form styles matching frontend_ui contact form */
.contact-form {
  width: 100%;
  text-align: left;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: clamp(18px, 3vh, 28px);
}

.field > span {
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 14px);
  color: rgba(255, 255, 255, 0.9);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 0.8px solid rgba(255, 255, 255, 0.55);
  padding: 0.85rem 0.25rem 0.8rem 0;
  font: inherit;
  font-size: clamp(16px, 1.2vw, 18px);
  outline: none;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: #fff;
}

/* Contact form feedback messages */
.contact-feedback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.4;
  display: none;
}

.contact-feedback--success {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.contact-feedback--error {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Button styles matching frontend_ui contact form */
.contact-actions {
  margin-top: clamp(12px, 2vh, 24px);
  display: block;
}

.btn-login {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgb(126, 126, 126);
  padding: 0.45rem 0.9rem;
  border-radius: 5px;
  background-color: rgba(249, 249, 249);
  color: rgba(35, 31, 32, 0.9);
  text-decoration: none;
  font-size: clamp(10px, 1vw, 12px);
  cursor: pointer;
  transition: box-shadow 0.25s ease;
  width: auto;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 400;
}

.btn-login:hover:not(:disabled) {
  box-shadow: 0 2px 5px 2px rgba(93, 220, 255, 0.5);
}

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

/* Success page styles */
.success-message {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Calendar button - adapted to match frontend_ui style */
.btn-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgb(126, 126, 126);
  padding: 0.45rem 0.9rem;
  border-radius: 5px;
  background-color: rgba(249, 249, 249);
  color: rgba(35, 31, 32, 0.9);
  text-decoration: none;
  font-size: clamp(10px, 1vw, 12px);
  cursor: pointer;
  transition: box-shadow 0.25s ease;
  width: auto;
  white-space: nowrap;
  font-family: inherit;
  font-weight: 400;
  gap: 0.5rem;
}

.btn-calendar:hover {
  box-shadow: 0 2px 5px 2px rgba(93, 220, 255, 0.5);
}

.btn-calendar::before {
  content: "📅";
  font-size: 1.2rem;
}

/* Footer styles */
.footer {
  background: var(--bg);
  padding: clamp(2rem, 4vw, 3rem) 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: var(--copy-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-transform: lowercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-logo:hover {
  color: rgba(255, 255, 255, 1);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  font-size: clamp(12px, 1.1vw, 14px);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.25s ease;
  font-weight: 400;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  text-align: right;
}

.footer-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-badge {
  font-size: clamp(10px, 0.9vw, 12px);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  white-space: nowrap;
}

.footer-copyright {
  font-size: clamp(10px, 0.9vw, 12px);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  text-transform: lowercase;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .countdown-header {
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .countdown-container {
    gap: 0.5rem;
    width: 100%;
    padding: 0 0.5rem;
  }
  
  .countdown-number {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .countdown-separator {
    font-size: clamp(2rem, 8vw, 3rem);
    padding: 0 0.25rem;
    padding-bottom: 0.5rem;
  }
  
  .countdown-label {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  }
  
  .countdown-unit {
    flex: 1 1 0;
    min-width: 0;
  }
  
  .save-date-container {
    padding: 1rem 0.5rem;
  }
  
  .save-date-inner {
    max-width: 100%;
    width: 100%;
  }

  .footer {
    padding: 2rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-right {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .footer-badges {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

