/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Soft Pastel Color Palette */
  --blush-pink: #f7e7e7;
  --ivory: #fff8f3;
  --mint-green: #e8f5e8;
  --rose-gold: #d4a574;
  --soft-lavender: #e8e0f0;
  --warm-beige: #f5f1e8;
  --dusty-rose: #e8c5c5;
  --sage-green: #d1d9c7;

  /* Text Colors */
  --text-dark: #4a4a4a;
  --text-light: #6b6b6b;
  --text-accent: #8b5a3c;

  /* Typography */
  --font-primary: "Poppins", sans-serif;
  --font-accent: "Dancing Script", cursive;

  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--ivory);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  font-family: var(--font-accent);
  font-size: 2rem;
  color: var(--text-accent);
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  position: relative;
}

.brand img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.career-text {
  position: absolute;
  bottom: -9px;
  right: -23px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #b0698d;
  background: white;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--text-accent);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose-gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
@media screen and (max-width: 600px) {
  .hero {
    min-height: 50vh;
  }
}
@media screen and (max-width: 1536px) {
  .hero {
    min-height: 100svh;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--blush-pink) 0%,
    var(--ivory) 50%,
    var(--mint-green) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  overflow: hidden;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.3;
  z-index: 1;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="paper" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>');
  opacity: 0.2;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 40px;
  font-weight: 400;
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
  display: inline-block;
  background: #55434b;
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
  animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212, 165, 116, 0.4);
}

.hero-visual-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wax-seal,
.ribbon,
.floral-accent {
  position: absolute;
  opacity: 0.1;
}

.wax-seal {
  top: 20%;
  right: 10%;
  width: 60px;
  height: 60px;
  background: var(--rose-gold);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.ribbon {
  top: 60%;
  left: 5%;
  width: 80px;
  height: 4px;
  background: var(--dusty-rose);
  transform: rotate(-15deg);
  animation: float 4s ease-in-out infinite reverse;
}

.floral-accent {
  top: 30%;
  left: 15%;
  width: 40px;
  height: 40px;
  background: var(--sage-green);
  border-radius: 50% 0;
  animation: float 5s ease-in-out infinite;
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #55434b;
  border-radius: 2px;
}

/* Our Story Section */
.story-section {
  padding: var(--section-padding);
  background: var(--warm-beige);
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-text {
  animation: fadeInLeft 1s ease;
}

.story-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.value-item {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform ease;
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blush-pink), var(--dusty-rose));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 1.5rem;
}

.value-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.value-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.story-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInRight 1s ease;
}

.image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--soft-lavender), var(--mint-green));
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-placeholder p {
  font-size: 1rem;
  margin-top: 10px;
  font-weight: 500;
}

/* Brand Section (Redesigned Our Story) */
.brand-section {
  padding: var(--section-padding);
  background: var(--warm-beige);
}

.brand-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.brand-media {
  position: relative;
}

.brand-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.brand-content {
  background: #fff;
  padding: 40px 32px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.brand-title {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.brand-subtitle {
  color: var(--text-light);
  margin-bottom: 18px;
  font-weight: 500;
}

.brand-copy {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 22px;
}

.brand-points {
  list-style: none;
  display: grid;
  gap: 12px;
}

.brand-points li {
  padding-left: 12px;
  position: relative;
  color: var(--text-dark);
}

.brand-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-gold);
}

.brand-points li span {
  font-weight: 600;
  color: var(--text-accent);
  margin-right: 8px;
}

/* Positions Section */
.positions-section {
  padding: var(--section-padding);
  background: var(--ivory);
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.position-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.position-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #55434b;
}

.position-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.position-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--mint-green), var(--sage-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: white;
  font-size: 1.8rem;
}

.position-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.position-location {
  color: var(--text-accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.position-description {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
}

.position-requirements {
  list-style: none;
  margin-bottom: 30px;
}

.position-requirements li {
  padding: 8px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 25px;
}

.position-requirements li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rose-gold);
  font-weight: bold;
}

.apply-button {
  border: none;
  display: inline-block;
  background: #55434b;
  color: white;
  padding: 16px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  cursor: pointer;
}

.apply-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
}

/* Why Work Section */
.why-work-section {
  padding: var(--section-padding);
  background: var(--warm-beige);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.benefit-item {
  text-align: center;
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--blush-pink), var(--dusty-rose));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 2rem;
}

.benefit-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var (--text-dark);
}

.benefit-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  padding: var(--section-padding);
  background: var(--ivory);
  position: relative;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.testimonial-item.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.testimonial-content {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  position: relative;
}

.quote-mark {
  font-family: var(--font-accent);
  font-size: 4rem;
  color: var(--rose-gold);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonial-text {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.8;
  margin: 30px 0 40px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.author-photo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--mint-green), var(--sage-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  background: #55434b;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(212, 165, 116, 0.3);
}

/* Application Process Section */
.application-process {
  padding: var(--section-padding);
  background: var(--warm-beige);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: #55434b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #55434b;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: white;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info i {
  color: var(--rose-gold);
  width: 20px;
}

/* Footer contact links: keep original color, show underline on hover */
.footer .contact-info a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer .contact-info a:hover,
.footer .contact-info a:focus {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: #ded7c6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  padding: 12px 25px;
  background: #ded7c6;
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 165, 116, 0.3);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: 100%;
    top: 65px;
    flex-direction: column;
    background-color: var(--ivory);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  /* Brand logo responsive */
  .brand img {
    height: 35px;
    max-width: 100px;
  }

  .career-text {
    font-size: 0.5rem;
    bottom: -1px;
    right: -6px;
  }

  /* Hero responsive adjustments */
  .hero {
    min-height: 60vh;
  }

  .hero-background-image {
    object-position: center 30%;
    opacity: 0.4;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .positions-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .testimonial-content {
    padding: 30px 20px;
  }

  .testimonial-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Hero adjustments for small mobile */
  .hero {
    min-height: 50vh;
  }

  .hero-background-image {
    object-position: center 25%;
    opacity: 0.5;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .position-card,
  .benefit-item {
    padding: 30px 20px;
  }

  .testimonial-author {
    flex-direction: column;
    gap: 15px;
  }
}

/* Brand section responsiveness */
@media (max-width: 1024px) {
  .brand-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .brand-image {
    height: 460px;
  }
}

@media (max-width: 768px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .brand-image {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .brand-content {
    padding: 24px 18px;
  }
  .brand-title {
    font-size: 2rem;
  }
  .brand-image {
    height: 280px;
  }
}

/* Additional responsive breakpoints for better image handling */
@media (max-width: 1024px) {
  .hero {
    min-height: 65vh;
  }

  .hero-background-image {
    object-position: center 20%;
  }
}

@media (max-width: 1200px) {
  .hero {
    min-height: 70vh;
  }

  .hero-background-image {
    object-position: center 15%;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 45vh;
  }

  .hero-background-image {
    object-position: center 40%;
    opacity: 0.3;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.cta-button:focus,
.apply-button:focus,
.carousel-btn:focus,
.newsletter-form button:focus {
  outline: 2px solid #55434b;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --text-dark: #000000;
    --text-light: #333333;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 20px;
  left: 21px;
  width: 100%;
  height: 100%;
  /* use native backdrop for full-viewport overlay */
  background: transparent;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
}

/* Full viewport overlay for dialog */
.modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.modal[open] {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal[open] .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--warm-beige);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.icon-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover {
  background: var(--blush-pink);
  color: var(--text-dark);
}

.modal-body {
  padding: 30px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.field label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  padding: 12px 15px;
  border: 2px solid var(--warm-beige);
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

.modal-footer {
  padding: 20px 30px 30px;
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  border-top: 1px solid var(--warm-beige);
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  font-size: 1rem;
}

.btn.primary {
  background: #55434b;
  color: white;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
}

.btn.ghost {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--warm-beige);
}

.btn.ghost:hover {
  background: var(--warm-beige);
  color: var(--text-dark);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background: var(SUCCESS-GREEN, #30f783);
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* File Upload Container */
.file-upload-container {
  position: relative;
}

.file-upload-area {
  border: 2px dashed var(--warm-beige);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: var(--ivory);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.file-upload-area:hover {
  border-color: var(--rose-gold);
  background: var(--blush-pink);
  transform: translateY(-2px);
}

.file-upload-area.dragover {
  border-color: var(--rose-gold);
  background: var(--blush-pink);
  transform: scale(1.02);
}

.upload-icon {
  font-size: 2.5rem;
  color: #55434b;
  margin-bottom: 15px;
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.upload-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.upload-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.file-preview {
  border: 2px solid var(--rose-gold);
  border-radius: 12px;
  padding: 20px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  animation: slideIn 0.3s ease;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-info i {
  font-size: 1.5rem;
  color: var(--rose-gold);
}

.file-name {
  font-weight: 600;
  color: var(--text-dark);
}

.file-size {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 8px;
}

.remove-file {
  background: var(--dusty-rose);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-file:hover {
  background: #e74c3c;
  transform: scale(1.1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Phone input container */
.phone-input-container {
  display: flex;
  align-items: center;
  border: 2px solid var(--warm-beige);
  border-radius: 10px;
  background: white;
  transition: all 0.3s ease;
}

.phone-input-container:focus-within {
  border-color: var(--rose-gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.country-code {
  padding: 12px 15px;
  background: var(--warm-beige);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 8px 0 0 8px;
  border-right: 1px solid var(--warm-beige);
}

#apply-phone {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 15px;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 1rem;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-header h3 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 15px;
  }

  .field input,
  .field textarea {
    padding: 10px 12px;
  }

  .phone-input-container {
    flex-direction: row;
  }

  .file-upload-area {
    padding: 30px 15px;
  }

  .upload-icon {
    font-size: 2rem;
  }

  .upload-title {
    font-size: 1rem;
  }

  .upload-subtitle {
    font-size: 0.8rem;
  }
}

/* Multi-link input styles */
.multi-link-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.link-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}
.extra-link-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.5rem;
}
.remove-link-btn {
  background: none;
  border: none;
  color: #c00;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: 0.25rem;
}
.add-link-btn {
  width: max-content;
  margin-top: 0.25rem;
  background: #f5f5f5;
  border: 1px solid #ccc;
  color: #333;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.add-link-btn:hover {
  background: #e0e0e0;
}
.multi-link-stack {
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 600px) {
  .multi-link-inputs,
  .multi-link-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .extra-link-input {
    width: 100%;
  }
}
