/* Flexbox for equal height columns */
#the-countdown .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center columns if they don't fill row */
}

/* Add margin bottom for stacked columns on mobile */
@media (max-width: 991px) {
  .mb-30 {
    margin-bottom: 30px;
  }
}

/* Combined Widget Container */
.combined-wedding-widget {
  background: #fff5f8;
  background: linear-gradient(135deg, #fff5f8 0%, #f0e6ff 100%);
  border-radius: 0; /* Square corners to match image if needed, or keep rounded */
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%; /* Fill the column height */
  position: relative;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Inner border effect for Combined Widget to match Save Date card */
.combined-wedding-widget::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 30px;
  right: 30px;
  bottom: 40px;
  border: 5px solid #e0c0c0;
  pointer-events: none;
}

/* Save The Date Card */
.save-the-date-card {
  background: #fff5f8;
  background: linear-gradient(135deg, #fff5f8 0%, #f0e6ff 100%);
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%; /* Fill the column height */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #eee;
}

.save-the-date-card::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 30px;
  right: 30px;
  bottom: 40px;
  border: 5px solid #e0c0c0;
  pointer-events: none;
}

/* Responsive padding + inner border offsets for cards */
@media (max-width: 992px) {
  .save-the-date-card,
  .combined-wedding-widget {
    padding: 30px;
  }
  .save-the-date-card::before,
  .combined-wedding-widget::before {
    top: 30px;
    bottom: 30px;
    left: 22px;
    right: 22px;
    border-width: 4px;
  }
}

@media (max-width: 768px) {
  .save-the-date-card,
  .combined-wedding-widget {
    padding: 24px;
  }
  .save-the-date-card::before,
  .combined-wedding-widget::before {
    top: 24px;
    bottom: 24px;
    left: 18px;
    right: 18px;
    border-width: 4px;
  }
}

@media (max-width: 576px) {
  .save-the-date-card,
  .combined-wedding-widget {
    padding: 18px;
  }
  .save-the-date-card::before,
  .combined-wedding-widget::before {
    top: 18px;
    bottom: 18px;
    left: 14px;
    right: 14px;
    border-width: 3px;
  }
}

.save-the-date-card h3 {
  font-family: "Lobster", cursive;
  font-size: 36px;
  color: #333;
  margin-bottom: 5px;
  margin-top: 10px;
}

.save-the-date-card .sub-title {
  font-family: "Farsan", cursive;
  font-weight: 550;
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}

.save-the-date-card .couple-names {
  font-family: "Playwrite NO", cursive;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
}

.save-the-date-card .message {
  font-family: "Farsan", cursive;
  font-weight: 550;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin-bottom: 15px;
  max-width: 90%;
}

.save-the-date-card .actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.save-the-date-card .btn-wishes {
  background: #de4659;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-family: "Farsan", cursive;
  font-weight: 550;
  font-size: 18px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(222, 70, 89, 0.25);
  border: none;
}

.save-the-date-card .btn-wishes:hover {
  background: #c0394b;
  box-shadow: 0 6px 16px rgba(222, 70, 89, 0.4);
  transform: translateY(-2px);
}

.save-the-date-card .btn-wishes:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(222, 70, 89, 0.3);
}

.save-the-date-card .heart-icon {
  color: #ff4d4d;
  font-size: 20px;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Calendar adjustments within widget */
.combined-wedding-widget #wedding-calendar {
  margin-bottom: 1px;
  border-bottom: 1px solid #be85b8;
  padding-bottom: 10px;
  position: relative;
  z-index: 2; /* Above the border */
  margin-top: 10px;
}

/* Countdown overrides to make it cleaner */
.combined-wedding-widget #clock {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 5px;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.combined-wedding-widget #clock .box {
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.combined-wedding-widget #clock .box .time {
  font-size: 54px !important;
  font-family: "Farsan", cursive;
  font-weight: 600;
  color: #de4659; /* Match button color */
  line-height: 1;
  background: none !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
}

.combined-wedding-widget #clock .box span {
  font-family: "Farsan", cursive;
  font-weight: 550;
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* Hide the circles/borders from original theme if they are pseudo-elements */
.combined-wedding-widget #clock .box:before,
.combined-wedding-widget #clock .box:after {
  display: none !important;
}

/* Adjust title */
.combined-wedding-widget .count-titles h2 {
  display: none; /* Hide "The big day" title as it's redundant or maybe keep it? Image doesn't show it. */
}

/* Remove background from section */
#the-countdown {
  background-image: none !important;
  background-color: #f9f9f9; /* Light gray fallback */
}

.mouse-scroll-on-mobile {
  display: none;
}

@media screen and (max-width: 576px) {
  .mouse-scroll-on-mobile {
    width: 95px;
    height: 30px;
    margin: 0 0 0 -30px;
    position: fixed;
    right: calc(50% - 52px);
    bottom: 80px;
    -webkit-animation: arrow 0.5s 1s infinite ease-in-out alternate;
    animation: arrow 0.5s 1s infinite ease-in-out alternate;
    z-index: 999;
    display: block !important;
    visibility: hidden;
  }

  .mouse-scroll-on-mobile:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
  }

  .mouse-scroll-on-mobile .mouse-scroll-on-mobile-text {
    text-align: center;
    bottom: 120px;
    position: absolute;
    left: 1px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 15px;
    color: #000;
  }

  .mouse-scroll-on-mobile .mouse-scroll-on-mobile-left {
    position: absolute;
    height: 5px;
    width: 30px;
    background: #de4659;
    -webkit-transform: rotate(240deg);
    transform: rotate(240deg);
    bottom: 80px;
    left: 42px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-transform-origin: 5px 50%;
    transform-origin: 5px 50%;
    -webkit-animation: leftArrow 0.5s 1s infinite ease-out alternate;
    animation: leftArrow 0.5s 1s infinite ease-out alternate;
  }

  .mouse-scroll-on-mobile .mouse-scroll-on-mobile-right {
    position: absolute;
    height: 5px;
    width: 30px;
    background: #de4659;
    -webkit-transform: rotate(-60deg);
    transform: rotate(-60deg);
    bottom: 80px;
    left: 46px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-transform-origin: 5px 50%;
    transform-origin: 5px 50%;
    -webkit-animation: rightArrow 0.5s 1s infinite ease-out alternate;
    animation: rightArrow 0.5s 1s infinite ease-out alternate;
  }
}

@-webkit-keyframes arrow {
  0% {
    bottom: 0;
  }

  100% {
    bottom: 40px;
  }
}

@keyframes arrow {
  0% {
    bottom: 0;
  }

  100% {
    bottom: 40px;
  }
}

@-webkit-keyframes leftArrow {
  100% {
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
  }
}

@keyframes leftArrow {
  100% {
    transform: rotate(225deg);
  }
}

@-webkit-keyframes rightArrow {
  100% {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
}

@keyframes rightArrow {
  100% {
    transform: rotate(-45deg);
  }
}
