@font-face {
  font-family: "MyLocalFont";
  src: url("../fonts/font.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
      --sidebar-brown: #ce9f77; /* change this hex to any brown you like */
      --main-font: "MyLocalFont", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* remove default gutter spacing and ensure full viewport height */
.row.full-vh {
    min-height: 100vh; /* ensures the row is at least viewport height */
}

.container-fluid.p-0 { padding: 0; }

/* sidebar styling */
.sidebar {
    background: var(--sidebar-brown);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;      /* vertical center */
    justify-content: center;  /* horizontal center */
    padding: 2rem;
    box-sizing: border-box;
}
/* optional: ensure main area is at least viewport height as well */
.main-area {
    min-height: 100vh;
    padding: 2rem;
    background-color: #ebebeb;
}

/* optional small tweak: remove horizontal scroll on small devices */
html, body {
    height: 100%;
    margin: 0;
    font-family: var(--main-font);
}

.sidebar .center-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px; /* prevents very wide layout on large screens */
}

/* profile / logo image */


/* adjust image on bigger screens (optional) */
@media (min-width: 100px) {
    .sidebar .center-stack img { width: 400px; height: 292px; }
    .main-area .center-content img { width: 150px; }
    .registration-form {
        width: 92%;
        height: auto;
        padding: 1rem;
    }

    #success-div {
        width: 92%;
        height: auto;
        padding: 1rem;
    }    
}

/* caption / text */
.sidebar .center-stack .caption {
    font-size: 1rem;
    line-height: 1.3;
}

.center-content {
    text-align: center;
    align-items: center; /* no effect unless it's a flex container, but fine to keep */
    margin-bottom: 1rem;
}
.center-content img {
    width: 140px;
    height: auto;
    max-width: 100%;
}

/* the area that takes the remaining height and centers the form */
.form-area {
    flex: 1 1 auto;                 /* grow to fill remaining space */
    display: flex;
    align-items: center;            /* vertical centering */
    justify-content: center;        /* horizontal centering */
    padding: 1rem 0;
}

/* the form itself */
.registration-form {
    display: flex;
    flex-direction: column;
    align-items: right;
    justify-content: center;
    width: 600px;           /* fixed preferred width */
    max-width: 100%;        /* responsive fallback */
    height: 500px;
    padding: 1.25rem;
    box-sizing: border-box;
}

#success-div {
    display: block;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 600px;           /* fixed preferred width */
    max-width: 100%;        /* responsive fallback */
    height: 500px;
    padding: 1.25rem;
    box-sizing: border-box;
}

.event-title {
    font-weight: bold;
}

.btn-style {
    background-color: #223c65;
    height: 50px;
    border: 0px;
}

.btn-style:hover {
    background-color: #ce9f77;
}

#nameError {
    display: none;
}

#phoneError {
    display: none;
}

#mainError {
    display: none;
}

.loading{
    display: none;
}