:root {
    --primary: #3b82f6;
    --bg: #f9fafb;
    --text: #111827;
    --radius: 8px;
}

body {
    font-family: sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--text);
    position: relative;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    margin-top: 0;
}

label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius);
    font-size: 1rem;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2563eb;
}

.terms-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.terms-container input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: auto;
    margin-left: 0;
}

.error-message, .phone-error-message {
    color: red;
}

p {
    margin-top: 0;
}

#logo-container {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

#logo-container p {
    margin-left: auto;
    margin-bottom: 0;
    margin-right: 5px;
}

#logo-container img {
    width: 180px;
}

#message {
    margin: 0;
}

#message-counter {
    font-size: 14px;
    color: grey;
}

.iti {
    margin-bottom: 1rem;
    width: 100%;
}

#g-recaptcha {
    text-align: center;
    margin-bottom: 1rem;
}

#g-recaptcha > div {
    display: inline;
}
.terms-container label {
    margin-top: 0;
}
.overlay {
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 100vw;
    height: 100%;
    z-index: 2;
    text-align: center;
}
.overlay-message-wrapper {
    display: inline-block;
    background-color: white;
    top: 30vh;
    position: relative;
    margin: 0 auto;
    padding: 30px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 5px;
}
.overlay-message-wrapper p {
    margin: 0;
}

/* spinner */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #646363;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: auto;
    position: relative;
    top: 30vh;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* success tick */
.checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position:relative;
    top: 5px;
    right: 5px;
    margin: auto;
    margin-bottom: 1em;
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: #fff;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb71b;
    }
}

/* hide situational objects */
.overlay, .overlay-message-wrapper, .overlay-message, .success-message, .loader {
    display: none;
}