/* reset default styles */
legend {
    float: initial;
}

/* main */

@font-face {
    font-family: 'nunito';
    src: url('https://cdn-azure.searix.net/searixcdn/2025/09-ccheartstrings/vsh/fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nunito';
    src: url('https://cdn-azure.searix.net/searixcdn/2025/09-ccheartstrings/vsh/fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

body {
  background: #f8f9fa;
  font-family: 'nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: #212529;
  /* min-height: 100vh; */

  /* theme colors */
  --brand-black: #000;
  --brand-white: #fff;
  --brand-accent: #f48221; /* Bootstrap primary */
  --brand-accent-dark: #2d308b;
  --brand-accent-light: #044ea1;

  --gray-1: #1a1a1a;
  --gray-2: #333333;
  --gray-3: #4c4c4c;
  --gray-4: #666666;
  --gray-5: #808080;
  --gray-6: #999999;
  --gray-7: #b3b3b3;
  --gray-8: #cccccc;
  --gray-9: #d9d9d9;
  --gray-10: #e5e5e5;
  --gray-11: #f2f2f2;
  --gray-transparent: rgba(204, 204, 204, 0.7);
  --black-transparent: rgba(0, 0, 0, 0.5);
  --bs-border-radius: 1.375rem;
  --input-border-radius: 0.375rem;

}

/* custom bgs and font colors */
.bg-purple{
    background-color: var(--brand-accent-dark) !important;
}

.bg-success{
    background-color: var(--brand-accent) !important;
}

.btn-primary{
    background-color: var(--brand-accent-light) !important;
}

.bg-orange{
    background-color: var(--brand-accent) !important;
}

.text-purple{
    color: var(--brand-accent-dark) !important;
}

.text-orange{
    color: var(--brand-accent) !important;
}

.main-container {
    padding: 0 0px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.primary-button {
    text-transform: uppercase;
    font-size: 0.75em;
    background: var(--gray-transparent);
    color: #212529;
    border-radius: 24px;
    border: 1px solid #ced4da;
}

/* defaults */

/* input {
    background: none;
    border: none;
    color: inherit;
    padding: 0 12px;
}

input::placeholder {
    color: #6c757d;
}

input:focus {
    background: none;
    color: #212529;
    border-radius: 0;
    outline:none;
    border:none;
}

input[type="checkbox"] {
    background: none;
    border: none;
    color: white;
    padding: 0;
} */

.btn, .form-select, .form-control {
    border-radius: var(--input-border-radius);
}

/* 
HEADER / BANNER
*/

.site-banner-container{
    display:flex;
    justify-content: center;
    padding-top: 20px;
}

.site-banner{
    padding-bottom: 10px;
}

/* large banner is controlled via html w-100 */

/* 
DASHBOARD
*/

.welcome-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:4px;
}

.welcome {
    font-size: 0.5em;
    color: var(--gray-8);
}

.welcome-username {
    text-transform: uppercase;
    font-size: 1.25em;
}

.dashboard-container {
    display:flex;
    flex-direction:column;
    gap:16px;
}

.progress-bar-container {
    margin-top:40px;
    border-radius: 16px;
    background: #fff;
    padding: 16px 12px;
    display:flex;
    flex-direction: column;
    gap: 8px;
    border: 2px solid var(--brand-accent);
}

/* .progress-bar-container.red-border{
    border: 2px solid var(--brand-accent);
} */

.progress-bar-label {
    font-size: 0.75em;
}

.progress-bar {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    height: 8px;
    background: rgba(128, 128, 128, 0.476);
}

.progress-bar > .red {
    background: var(--brand-accent);
    border-radius: 4px;
}

.home-instruction {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--gray-5);
}

.activities-container {
  /* display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px; */
}

.activity-card {
  display: block;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  color: white;
  transition: all 0.3s ease;
}



.activity-complete-cover {
    position:absolute;
    background: linear-gradient( var(--black-transparent), #000);
    display:flex;
    width: 100%;
    height:100%;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

.activity-complete-tick {
    width: 50%;
    height: 50%;
}

.activity-foreground {
  position: absolute;
  display: flex;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%); */
  border: 2px solid white;
  border-radius: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.activity-text {
  padding: 16px 12px;
  align-self: flex-end;
  font-size: 0.75em;
  max-width: 90%;
  text-shadow: black 1px 1px 5px;
}

.activity-img {
  width: 100%;
  /* border: 1px solid #dee2e6; */
  transition: transform 0.3s ease;
}

/* 
REGISTRATION
*/

.reg-welcome-container {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:12px;
}

.reg-welcome {
    font-size: 0.75em;
    letter-spacing: 0.1em;
}

.reg-welcome-title {
    text-transform: uppercase;
    max-width: 85%;
}

.reg-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 0 72px 0;
}

.reg-box-container {
    width: 75%;
    border-radius: 24px;
    /* border: 1px solid var(--brand-accent); */
    display: flex;
    flex-direction: column;
    background: black;
}

.reg-box-label {
    text-transform: uppercase;
    font-size: 0.75em;
    color: var(--gray-8);
    padding: 12px;
    text-align: center;
}

.registration-fields {
    display:flex;
    flex-direction: column;
    /* border: 1px solid var(--brand-accent); */
    border-radius: 24px;
}

.registration-row-and-error {
    display:flex;
    flex-direction:column;
    gap: 8px;
    padding: 12px;
}

.form-error {
    font-size: 0.5em;
    color: var(--brand-accent);
}

.registration-row {
    display: flex;
    align-items: center;
    font-size: 0.75em;  
}

.registration-row > label {
    text-transform: uppercase;
    width: max-content;
    flex-shrink:0;
}

.divider {
    height: 1px;
    width: 100%;
    background: var(--gray-6);
}

.reg-new-section {
    text-align:center;
    padding:40px 0 24px 0;
    color: var(--gray-11);
}

.questions-container-background {
    padding: 24px 0;
    border-radius: 12px;
    background: var(--black-transparent);
    background-filter:blur;
    width: 100%;
}

.questions-container {
    font-size: 0.75em;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Special case: The text box following "others" checkbox */
#others_textinput {
    border-bottom: 1px solid white;
    padding: 2px 0;
}

#others_textinput:disabled{
    border:none;
}

#client-side-others_textinput-error {
    margin-top: 8px;
}

.car-model-input-container {
    padding-right:12px;
}

#car-model-input {
    background: black;
    border-radius: 4px;
    border:none;
    padding: 4px 8px;
    border: 1px solid white;
    width: 100%;
    color: white;
}

.consent-text {
    font-size:0.6em;
    
    padding: 12px;
}

.consent-container {
    display:flex;
    gap:12px;
    align-items: flex-start;
    padding: 12px;
    font-size: 0.75em;
    width: 100%;
}

#consent-checkbox {
    margin-top:4px;
}

.reg-submit {
    padding: 8px 28px;
    margin-top: 12px;
}

/* 
PHOTO ACTIVITY
*/

.activity-page-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items:center;
    padding-top: 18px;
}

.activity-title-container {
    max-width:75%;
}

.activity-title {
    font-size:1.5em;
    text-align:center;
    line-height:1.1em;
}

.activity-description {
    font-size: 0.75em;
    text-align: center;
    text-shadow: var(--gray-6) 1px 1px 5px;
}

.activity-cta {
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: var(--gray-6) 1px 1px 5px;
    font-size: 0.8em;
    text-transform: uppercase;
}

.camera-preview {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--gray-6) 1px 1px 5px;
    border-radius: 20px;
    background:black;
}

.camera-container{
    position:relative;
    width: 300px;
    height: 300px;
}

#camera-toggle{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
    width: 40px;
    cursor: pointer;
}

.file-preview {
    width: auto;
    height: auto;
    max-width: 300px;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: var(--gray-6) 1px 1px 5px;
    border-radius: 20px;
    background:black;
}

.buttons-container-before {
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 12px;
    width:300px;
}

.buttons-container-after {
    display:grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 12px;
    width:300px;
}

.photo-btn {
    padding: 12px;   
}

#upload-media-btn {
    position:relative;
}

.hidden-file-input {
    opacity: 0;
    width: 100%;
    height: 100%;
    padding:0;
    margin: 0;
    position: absolute;
    top:0;
    left:0;
    z-index: 2;
}

.hidden-input-replacement {
    width: 100%;
    height: 100%;
    display:flex;
}

.upload-error {
    font-size: 0.6em;
    color: var(--brand-accent);
}

/* 
TEST DRIVE ACTIVITY
*/

.testdrive-img {
    width: 200px;
    border-radius: 20px;
    border: 2px solid white;
}

.testdrive-form {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:36px;
}

.testdrive-form-rows {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}

.testdrive-form-row {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 8px;
}

.testdrive-form-error {
    color: var(--brand-accent);
    font-size: 0.6em;
    margin-top: -2px;
}

.testdrive-form-row > input {
    text-align:center;
    border-bottom: 1px solid var(--gray-8);
}



/* 
SUCCESS SCREENS
*/

.success-page-container {
    display:flex;
    flex-direction:column;
    gap: 24px;
    align-items:center;
    padding-top: 18px;
    padding-bottom: 40px;
}

.submitted-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.success-text-container {
    display:flex;
    flex-direction:column;
    gap: 12px;
    align-items:center;
    padding: 48px 0;
}

.success-text-title{
    font-size: 1.5em;
    text-align:center;
}

.success-text-subtitle{
    text-align:center;
}

.back-to-dashboard-btn {
    padding: 12px;
    /* undo <a> default styles */
    display:block;
    width: max-content;
    text-decoration:none;
    text-align:center;
}
/* 
REDEMPTION
*/

.redemption-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:8px;
}

.thanks-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:4px;
}

.thanks {
    font-size: 0.75em;
    letter-spacing: 0.2em;
}

.thanks-username {
    text-transform: uppercase;
    font-size: 2em;
}

.redemption-instruction {
    text-align: center;
    font-size: 0.75em;
    max-width: 75%;
}

.redemption-code-container {
    width: 75%;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    margin-top:12px;
}

.redemption-code-label {
    text-transform: uppercase;
    font-size: 0.75em;
    padding: 12px;
    text-align: center;
}

.redemption-code {
    text-align: center;
    border-radius: 24px;
    font-size: 2.4em;
}

.redemption-code-thanks {
    padding: 48px 0 24px 0;
}

/* 
FOOTER
*/

.footer-container{
    display:flex;
    justify-content: center;
    padding: 40px 0;
}

.footer-capsule{
    text-transform: uppercase;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 0.75em;
    background: #ffffff;
}

.hidden {
    display:none;
}

input[type="range"] {
    width: 95%;
    /* max-width: 250px; */
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 40px 0 20px 0;
    transition: filter 0.2s ease-in-out;
    padding:0;
    
}

/* if screen goes up above mobile */
@media (min-width: 768px) {
    input[type="range"] {
        max-width: 150px;
        width: 100%;
    }

    .questions-container-background {
        width: unset !important;
    }

    .activity-card {
        border-radius: 2.2rem;
    }
}

/* range track */
input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: var(--gray-4);
    border-radius: 4px;
    /* transition: left 0.15s ease-in-out; */
    background: linear-gradient(to right, var(--gray-4) var(--progress), #ddd var(--progress));
}

input[type="range"]::-moz-range-track {
    height: 8px;
    background: var(--gray-4);
    border-radius: 4px;
    /* transition: left 0.15s ease-in-out; */
    background: linear-gradient(to right, var(--gray-4) var(--progress), #ddd var(--progress));
}

/* range thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--gray-4);
    border-radius: 50%;
    position: relative;
    margin-top: -5px;
    cursor: pointer;
    /* transition: left 0.15s ease-in-out; */
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--gray-4);
    border-radius: 50%;
    cursor: pointer;
    /* transition: left 0.15s ease-in-out; */
}

#h4-container {
    width: 400px;
    max-width: 100%;
    position: relative;
    text-align: center;
}

/* teardrop label */
#range-label {
    position: absolute;
    top: -4.5rem;
    width: 30px;
    height: 30px;
    background: var(--gray-4);
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 2rem;
    border-radius: 50%;
    transform: translateX(-50%);
    /* transition: left 0.2s ease-in-out, transform 0.2s ease-in-out; */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* teardrop label pointy thing */
#range-label::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--gray-4);
    transform: translateX(-50%);
}

/* message modal */
#mcq-container .form-check-input[type="radio"] {
    width: 1.15em;
    height: 1.15em;
    border-radius: 50%;
}
.message-modal { 
    position: fixed; 
    inset: 0; 
    z-index: 1055; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.message-modal.d-none { 
    display: none !important; 
}
.message-modal .message-modal-backdrop { 
    position: absolute; 
    inset: 0; background: rgba(0,0,0,0.4); 
}
.message-modal .message-modal-dialog { 
    position: relative; 
    background: #ffffff; 
    border-radius: .5rem; 
    padding: 1rem 1.25rem; 
    width: min(90vw, 360px); 
    box-shadow: 0 6px 30px rgba(0,0,0,.2); 
    z-index: 1; 
}

/* menu modal */

.modal-open{
    padding:0 !important;
}

#vsh-menu-btn{
    right: 1rem; 
    bottom: 1rem; 
    width: 5rem; 
    height: 5rem; 
    z-index: 1050; 
    opacity: 0.9;
    transition: all 0.2s ease-in-out;
    background: transparent;
    border: none;
}

#vsh-menu-btn:hover, #vsh-menu-btn:active{
    transform: scale(1.05);
}

@keyframes highlightCheckbox {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 0, 0, 0); }
    50% { transform: scale(1.1); box-shadow: 0 0 4px rgba(255, 0, 0, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 0, 0, 0); }
}

.checkbox-error-highlight .form-check-input {
    animation: highlightCheckbox 0.2s ease-in-out;
}

.countdown-timer{
    font-weight: bold;
    color: var(--brand-accent) !important;
    font-size: 5rem !important;
}






