/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #0e1340;
}

/* Full-page background */
.bg {
    inset: 0;
    background: url("/static/images/bg.jpg") center/cover no-repeat fixed;
    z-index: -1;
    filter: none;
}

/* Top bar with dropdown */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0));
    backdrop-filter: blur(2px);
}

.topbar .menu-user-btn{
    border: 0;
    background: transparent;
    font-weight: 800;
    letter-spacing: .5px;
    color: #0e1340;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
}

.dropdown {
    position: relative;
}

.menu-btn {
    border: 0;
    background: transparent;
    font-weight: 800;
    letter-spacing: .5px;
    color: #0e1340;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
}

.menu {
    position: absolute;
    right: 0;
    top: 44px;
    display: none;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(14, 19, 64, .15);
}

.menu a,
.menu button {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #0e1340;
    font-weight: 600;
}

.menu a:hover {
    background: #f3f3f7;
}

/* Hero */
.hero {
    max-width: 980px;
    margin: 24px auto 8px;
    text-align: center;
    padding: 12px 16px;
}

.hero .logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 8px auto 6px;
    padding-bottom: 20px;
}



.hero h1 {
    margin: 8px 0 6px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.15;
    padding-bottom: 20px;
}

.hero .sub {
    margin: 6px 0 14px;
    font-size: clamp(16px, 2.6vw, 20px);
    padding-bottom: 20px;
}



.primary-btn {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 800;
    background: #ff2b77;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 43, 119, .3);
    border-color: transparent;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 1rem;
}

.secondary-btn {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 800;
    background: #fff;
    color: #ff2b77;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(255, 43, 119, .3);
    border-color: transparent;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

footer {
    text-align: center;
    padding: 20px;
}

/* Form */
.form {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.form .form-group input,
.form input,
.form select,
.form .form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    padding-top: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: all 0.2s ease;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.form .form-group input:focus,
.form input:focus,
.form select:focus,
.form .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.4);
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px 12px 8px;
    /* extra top padding for label */
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
}

.floating-label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #666;
    pointer-events: none;
    /* allow click-through */
    transition: 0.2s ease all;
}

/* When input has value or focus, float the label up */
.form-group input:focus+.floating-label,
.form-group input:not(:placeholder-shown)+.floating-label {
    top: 8px;
    font-size: 0.75rem;
    color: #333;
}

.styled-input {
  width: 100%;
  padding: 16px 12px 8px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  background-color: #fff;
  appearance: none;        /* Remove default styles (Chrome, Safari, iOS) */
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Force consistent size */
  height: 48px;           /* matches your other inputs */
  line-height: 1.5rem;
}

/* iOS Safari date input fix */
.styled-input::-webkit-date-and-time-value {
  text-align: left;
  font-family: inherit;
  padding-left: 4px;
}

/* Calendar icon styling (optional) */
.styled-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  filter: invert(0.5);
  margin-right: 6px;
}
.styled-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.styled-input:invalid {
  min-height: 48px;
}

.form-row.w100p .form-group{
    width: 100%
}


@media (min-width: 600px) {
    .hero .logo {
        width: 250px;
    }
}

@media (min-width: 768px) {
    .hero .logo {
        width: 300px;
    }
}

/* Desktop: side-by-side */
@media (min-width: 550px) {
    .form-row {
        display: flex;
        justify-content: space-between;
    }

    .form-group {
        width: 48%;
    }
}
