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

html {
    scroll-behavior: smooth;
}

html, body {
    font-size: 4vw;
}

.table {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: stacked */
  gap: 1.25rem; /* 10px → 0.625rem */
}

.spacer {
    height: 5.5rem;
}

.spacer-small {
    height: 1.5rem;
}

.spacer-tiny {
    height: 0.8rem;
}

.row {
  display: contents;
}

.review {
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 30rem;
    max-width: 100%;
}

#contact-error {
    display: none;
}

#error-message {
    display: inherit;
    color: rgb(14, 37, 94);
    width: 21rem;
}

p, input, textarea {
    font-size: 1rem;
}

input, textarea {
    max-width: 100%;
}

small {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

button {
    font-size: 0.8rem;
    font-family: "Roboto", sans-serif;
    font-weight: bold;
}

#profilepic {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

#profilepiccover {
  position: relative; /* ← needed so ::before positions relative to this */
  width: 6rem; /* shrink-wraps to the image size */
  height: 6rem;
}

#profilepiccover::before {
    display: block;
    position: absolute;
    border-radius: 50%;
    inset: 0;
    content: '';
    box-shadow: 0 0 0 0.1875rem #facc15, 0 0 0.9375rem 0.3125rem rgba(250, 204, 21, 0.6);
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none; /* so it doesn't block clicks on the real element */
}

.top-label {
    padding-top: 0rem;
    margin-top: 0rem;
    color: #3e3e3e;
    font-family: "Philosopher", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.image-caption {
    padding-top: 0.8rem;
}

.profile-section {
    margin-bottom: 1.6rem;
}

.profile-section td {
    vertical-align: middle;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0.1875rem #facc15, 0 0 0.9375rem 0.3125rem rgba(250, 204, 21, 0.6); }
  50%       { box-shadow: 0 0 0 0.1875rem #facc15, 0 0 1.25rem 0.4375rem rgba(250, 204, 21, 0.75); }
}

html, body, * {
    font-family: "Karla", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 1rem;
}

i {
    font-style: italic;
}

p, ul {
    padding-bottom: 1rem;
}

p:last-child, ul:last-child {
    padding-bottom: 0;
}

h2, h3, h4 {
    color: rgb(14, 37, 94);
    margin-bottom: 1rem;
}

li {
    margin-left: 2rem;
    margin-bottom: 0.1rem;
}

table {
    border-collapse: collapse;
}

td + td {
    padding-left: 2rem;
}

td {
    vertical-align: top;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.05rem;
}

h4 {
    font-size: 1rem;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    20% { transform: translateX(350%); }
    100% { transform: translateX(350%); }
}

.cta {
  cursor: pointer;
  border-radius: 2rem;
  padding: 1rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background-color: #BC5BC1;
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
}

.spin-once {
  animation: spin-once-anim 4s ease-out;
}

@keyframes spin-once-anim {
  from { transform: rotate(0deg); }
  to   { transform: rotate(359deg); }
}

.cta::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.1),
    transparent
  );
  animation: shimmer 4s ease-in infinite;
}

input, textarea, select {
    border-color: grey;
    border-radius: 0.275rem;
    border-width: 0.1rem;
    background-color: white;
    padding: 0.2rem;
    margin-top: 0.28rem;
    margin-bottom: 0.28rem;
}

select {
    border-radius: 0.5rem;
    background-color: rgb(230, 230, 230);
}

#name, #contact {
    height: auto;
}

#message {
    width: 20rem;
    height: 5rem;
}

.wrapper {
    width: 100%;
    height: 100%;
    justify-content: center;
    display: flex;
}

.wrapper-contents {
    width: 37rem;
    max-width: calc(100% - 2rem);
    margin: 1rem;
    margin-top: 2rem;
    margin-bottom: 17rem;
}

.right-on-desktop {
    display: block;
}

@media (min-width: 68rem) {
    .wrapper {
        justify-content: left;
    }

    .table {
        grid-template-columns: repeat(2, 1fr);
    }

    .wrapper-contents {
        margin-left: 10vw;
        margin-bottom: 15rem;
    }

    .phoneOnly {
        display: none;
    }

    .right-on-desktop {
        position: fixed;
        top: 2rem;
        right: 5vw;
        width: auto;
    }
}

.container {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end; /* button hugs the right */
  gap: 1rem;
}

#submit {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #BC5BC1, #9b3fa0);
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 0.3rem 0.6rem rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

/* Hover = lift + brighten */
#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #c86cd0, #a64bb0);
}

/* Click = press down */
#submit:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.15);
}

/* Disabled = softer, not dead */
#submit:disabled {
    cursor: not-allowed;
    background: #aaa;
    color: #eee;
    box-shadow: none;
    opacity: 0.7;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.3rem;
}

.nav-btn {
    cursor: pointer;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    background-color: rgb(227, 226, 226);
    color: rgb(14, 37, 94);
    border: 0.1rem solid;
    border-radius: 0.8rem;
    border-color: rgb(168, 168, 168);
    height: 2.4rem;
    padding-left: 1rem;
    padding-right: 1rem;
    transition: background-color 0.19s;
}

.nav-btn-selected {
    background-color: rgb(186, 186, 186);
}

hr {
    color: #ccc;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.page {
    display: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.page.visible {
    display: block;
}

.page.active {
    opacity: 1;
}
