@font-face {
  font-family: "Macklin Slab";
  src: url(/assets/MacklinSlab-Medium-3335340cf67b7a40e9e06cefc53e587e082698730f1d01d6d5ce39a4b254eab5.woff2) format("woff2"),
       url(/assets/MacklinSlab-Medium-e1e58982dad7d60f85fe352e85b094743c6f54005af4d5747427040f0ccb9854.woff) format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Macklin Variable";
    src: url(/MacklinVariable.woff.woff2) format("woff2"),
       url(/MacklinVariable.woff.woff) format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

* {
  box-sizing: border-box;
}

body {
  font-family: Georgia, "Times New Roman", Times, serif;
  background-color: #f9f1eb;
  color: #4a3b35;
  margin: 0;
  padding: 0;
}

.flower {
  height: clamp(130px, 30vh, 260px);
  width: auto;
  max-width: 300px;
}

.container {
  display: grid;
  grid-template-columns:
    clamp(3.125rem, 1.75rem + 6.88vw, 4.5rem)
    1fr
    clamp(3.125rem, 1.75rem + 6.88vw, 4.5rem);
  grid-template-rows: auto 1fr auto;
  margin-block: 1rem;
  border-radius: 0.5rem;
  margin-inline: auto;
  width: min(100%, 42rem);
  padding: 0 1rem;
}

.backyard-container {
  display: flex;
  justify-content: center;
}

.backyard-content {
  width: 90vw;
}

.what-to-expect {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

ul li {
  position: relative;
}

ul li span {
  color: #31377b;
  font-family: "Macklin Slab";
  font-size: 1rem;
}

.event-title {
  font-family: "Macklin Slab";
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2rem);
  display: block;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

li:not(:last-child) .event-title::after {
  position: absolute;
  bottom: -1rem;
  content: "";
  display: block;
  width: 0.75rem;
  height: 2px;
  background-color: #31377b;
}

@media (width > 540px) {
  .container {
    width: min(100% - 2rem, 42rem);
    border: 1px solid #cd7145;
    padding-block: 1rem;
  }
}

.content svg:nth-child(3),
.content svg:nth-last-child(1) {
  align-self: flex-end;
}

.content {
  padding: 0;
  border-radius: 8px;
  grid-column: 1 / 4;
  max-width: 550px;
  justify-self: center;
  margin: 0 clamp(0rem, -1.5rem + 7.5vw, 1.5rem);
  margin-top: -1rem;
}

.justify-end {
  justify-self: flex-end;
}

.flower-corner-end {
  transform: rotate(180deg);
  align-self: flex-end;
}

.corner-top-right {
  grid-column: 3/4;
}

.center {
  justify-self: center;
}

.bottom {
  grid-row: 3;
  grid-column: 1/3;
}

.header img {
  width: 100px;
  margin-bottom: 20px;
}

h1 {
  font-family: "Macklin";
  font-weight: 760;
  font-size: clamp(2.5rem, 2rem + 2.5vw, 3rem);
  margin-bottom: 1.25rem;
  margin-top: 0;
  color: #31377b;
}

h2 {
  font-weight: 760;
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2rem);
  margin-bottom: 3.5rem;
  margin-top: 0;
  color: #31377b;
}

.content p {
  margin: 1.375rem 0;
  line-height: 1.6;
  font-size: clamp(1rem, 0.875rem + 0.63vw, 1.125rem);
}

.intro {
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
  gap: 1.25rem;
}

label {
  font-family: "Macklin Slab";
  display: block;
  white-space: nowrap;
  margin-bottom: 0.3125rem;
}

label.no-margin {
  margin-bottom: 0;
}

.attendance-choise {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.attendance-choise div {
  display: flex;
  flex-basis: 25%;
  align-items: center;
}

.form-double-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #31377b;
  border-radius: 0.25rem;
}

input[type="radio"] {
  margin: 0 0.5rem 0 0;
  padding: 0;
  height: 2.375rem;
  width: 2.375rem;
  /* appearance: none; */
  accent-color: #cd7145;
  border: 1px solid #ccc;
  border-radius: 1.75rem;
  background-color: #fff;
  border-radius: 100%;
}

input[type="submit"] {
  height: 3rem;

  background: transparent;
  border: 2px solid #cd5078;
  border-radius: 0.5rem;
  width: 100%;
  cursor: pointer;
  color: #cd5078;

  &:focus-visible {
    outline: 1px dashed #cd7145;
    outline-offset: 5px;
  }
}

input[type="submit"]:hover {
  background-color: rgb(205, 80, 120, 0.5);
}

.corner {
  width: clamp(3.125rem, 1.75rem + 6.88vw, 4.5rem);
  height: auto;
}

.bottom-flower {
  margin-bottom: min(14vw, 7rem);
  width: 300px;
  max-width: 50vw;
  height: auto;
  margin-top: 2rem;
}

input:focus-visible {
  outline: 1px dashed #cd7145;
  outline-offset: 5px;
}

/* Contacts Table Styles */
.contacts-table {
  margin-top: 2rem;
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.contacts-table thead {
  background-color: #f8f9fa;
}

.contacts-table th,
.contacts-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.contacts-table th {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85em;
  color: #495057;
}

.contacts-table tbody tr:hover {
  background-color: #f1f3f5;
  transition: background-color 0.3s ease;
}

.contacts-table tbody tr:last-child td {
  border-bottom: none;
}

@media screen and (max-width: 600px) {
  .contacts-table {
    font-size: 0.8em;
  }

  .contacts-table th,
  .contacts-table td {
    padding: 8px 10px;
  }
}

.table-action {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin: 0 4px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  background: none;
  color: #31377b;
}

.table-action i {
  margin-right: 6px;
}

.table-action.edit:hover {
  background-color: #e8f0fe;
}

.table-action.delete {
  color: #dc3545;
}

.table-action.delete:hover {
  background-color: #ffebee;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 1.25rem;
}

a {
  color: #cd7145;
  font-size: 1rem;
  cursor: pointer;
}
