html {
  font-size: 14px;
}

:root {
    --google-blue: #1a73e8;
    --google-blue-dark: #1558b0;
    --google-grey-100: #f8f9fa;
    --google-grey-200: #f1f3f4;
    --google-grey-300: #e8eaed;
    --google-grey-500: #bdc1c6;
    --google-grey-700: #5f6368;
    --google-grey-800: #3c4043;
    --google-grey-900: #202124;
    --text-primary: var(--google-grey-900);
    --text-secondary: var(--google-grey-700);
    --surface-background: #fff;
    --app-background: var(--google-grey-100);
    --border-color: var(--google-grey-300);
    --font-family-primary: 'Google Sans', 'Roboto', Arial, sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 28px;
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
    --shadow-md: 0 1px 3px 0 rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--app-background);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--google-blue);
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 1em;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 0.9em;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 8px;
    }

.form-link {
    display: block;
    text-align: center;
    color: var(--google-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1em;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--google-grey-100);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', sans-serif;
}

    .form-control:focus {
        outline: none;
        border-color: var(--google-blue);
        box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
    }

.modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    padding: 20px;
    color: black;
}

    .modal-content.survey {
        width: 90%;
        max-width: 800px;
        padding-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .modal-content.survey iframe {
            width: 100%;
            height: 600px;
            border: none;
        }

    .modal-content.small {
        width: 400px;
        max-width: 90%;
        padding: 20px 30px;
        text-align: center;
    }

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--google-blue-dark);
    box-shadow: var(--shadow-sm);
}

.btn-primary:disabled {
    background-color: var(--google-grey-300);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-link:hover {
    background-color: var(--google-grey-200);
    text-decoration: none;
}

.error-message {
    color: red;
    margin-top: 10px;
    font-size: 0.95em;
    text-align: center !important;
}

.success-message {
    color: green;
    margin-top: 5px;
    font-size: 0.95em;
    text-align: center !important;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}