html{
    font-family: 'Inter', sans-serif;
    font-size: 12px;

}
html,body{
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}
body {
    overflow-x: hidden;
}

a{
    text-decoration: none;
    color: #047FDF;
}
a:hover{
    text-decoration: underline;
}

h2{
    font-size: 4rem;
    font-weight: 700;
}
h2 a{
    color: #000;
    text-decoration: none;
}
h2 a:hover{
    color: #555;
}
.gradient-bg{
    background: linear-gradient(220.93deg, #80E6FC 9.2%, #047FDF 50.15%, #033B66 100%);
}
.rounded-10{
    border-radius: 10px;
}
.mt-10{
    margin-top: 10rem;
}
.mt-8{
    margin-top: 8rem;
}
.mb-8{
    margin-bottom: 8rem;
}
.mt-6{
    margin-top: 6rem;
}
.mb-6{
    margin-bottom: 6rem;
}
.mt-5{
    margin-top: 5rem;
}
.mt-md-8{
    margin-top: 8rem;
}
.mt-sm-4{
    margin-top: 4rem;
}
.x-icon{
    stroke: #666666;
    width: 20px;
    height: 20px;
}
.x-icon:hover{
    stroke: #000;
}
.light-grey{
	background: #f3f3f3;
    color: #000;
}
.light-pastel-green{
	background: #D8FFEA !important;
    color: #000;
}
.dark-pastel-green{
    background: #A3E5E1;
    color: #000;
}
.light-pastel-blue{
	background: #DEF0FF;
    color: #000;
}
.light-pastel-blue a{
    color: #1A2D3B;
}
.light-pastel-red{
    background: #FFD5CC !important;
    color: #000;
}
.light-pastel-red:hover{
    background: #FF7558 !important;
}
.light-pastel-red:hover .lozenge{
    background: #FFD5CC !important;
    color: #000;
}
a.light-pastel-red:hover .warning-indicator{
    fill: #FFD5CC;
}
.light-pastel-red a{
    color: #000;
}
.dark-pastel-blue{
    background: #9BD2FF;
    color: #000;
}
.dark-pastel-blue a{
    color: #1A2D3B;
}
.mid-pastel-green{
    background: #CCEFED;
    color: #000;
}
.light-teal{
    background: #E5F5F4;
    color: #000;
}
.dark-navy{
    background: #1A2D3B;
    color: #fff;
}
.dark-navy a{
    color: #fff;
}
.dark-blue{
    background: #334A5B;
    color: #fff;
}
.dark-blue a{
    color: #fff;
}
.card{
    padding: 30px;
    font-size: 1.25rem;
}
.card-title{
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.maintenance-banner{
    background: #FEF2CC;
    color: #000;
}
.maintenance-banner p{
    margin-bottom: 0;
}

/* Modal */
.modal-content{
    border-radius: 10px;
    background: #F3F3F3;
}
.modal-header{
    border-bottom: none;
}
.modal-title{
    font-size: 1.75rem;
    font-weight: 700;
}
/* End Modal */

.message-container{
    display: none;
    position: absolute;
    width: 100%;
    z-index: 1000;
}
.message{
    border: solid 1px #000;
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #FEF2CC;
    border: solid 1px #FFC501;
    font-size: 1.25rem;
}
.message.success{
    background: #A6F4C9;
    color: #003D01;
    border-color: #003D01;
}
.message.success a{
    color: #003D01;
}
.message.success a:hover{
    color:#000;
}
.message.error{
    background: #FFB9B9;
    color: #AD1616;
    border-color: #AD1616;
}
.message.warn{
    background: #FEF2CC;
    color: #937614;
    border-color: #937614;
}
.message .login-link{
    font-weight: 700;
}
.rounded-green-btn{
    background: #A6F4C9;
    color: #000;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
}
.rounded-green-btn:hover{
    background: #00C559;
    color: #fff;
    text-decoration: none;
}
.rounded-green-btn svg{
    margin-left: 10px;
    margin-right: 5px;
    display: inline-block;
}
.rounded-green-btn svg path{
    fill: #000;
}
.rounded-green-btn:hover svg path{
    fill: #fff;
}
.rounded-teal-btn{
    background: #A3E5E1;
    color: #000;
    padding: 12px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
}
.rounded-teal-btn:hover{
    background: #67D4CE;
    text-decoration: none;
}
.outline-btn{
    border: solid 1px #000;
    background: none;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
}
.outline-btn:hover{
    background: #000;
    color: #fff;
    text-decoration: none;
}
.outline-btn.blue-bg-hover:hover{
    background: #047FDF;
    border-color: #047FDF;
    color: #fff;
}
.outline-btn .arrow{
    stroke: #000;
    fill: none;
    margin-right: 10px;
}
.outline-btn:hover .arrow{
    stroke: #fff;
    fill: none;
}
.outline-btn.rounded-ends{
    border-radius: 9999px; /* or 50% */
    padding: 10px 20px; /* Adjust padding as needed */
}
.outline-btn-blue{
    border: solid 1px #047FDF;
    background: none;
    color: #047FDF;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
}
.outline-btn-blue:hover{
    background: #047FDF;
    color: #fff;
}
.utility-nav{
    padding-left: 0px;
}
.powered-by-logo{
    height: 40px;
    padding: 10px;
}
.login-actions{
    color: #fff;
    font-size: 1rem;
}
.login-actions a{
    text-decoration: none;
    color: #fff;
    padding: 0 10px;
    font-weight: 700;
}
.login-actions a:hover{
    text-decoration: underline;
}
.login-actions .outline-btn{
    border: solid 1px #fff;
    padding: 8px 24px;
    text-decoration: none;
    margin-left: 10px;
}
.login-actions .outline-btn:hover{
    text-decoration: none !important;
}
.login-actions .register-btn{
    background: #047FDF;
    border-color: #047FDF;
    color: #fff;
}
.login-actions .register-btn:hover{
    background: none;
    color: #fff;
    border-color: #fff;
}

.login-register-dropdown {
    max-height: 0;
    transition: max-height 0.5s ease-out;
    padding: 0 0;
    position: relative;
}
.login-register-dropdown .login-form, .login-register-dropdown .register-form{
    display: none;
}
.login-register-dropdown .login-form.show, .login-register-dropdown .register-form.show{
    display: block;
}
.login-register-dropdown.show {
    max-height: 800px; /* A very large value */
    padding: 30px 0;
}
.login-register-dropdown label{
    color: #fff;
}
.login-register-dropdown .sign-up-text{
    color: #fff;
    display: block;
    margin-top: 15px;
}
.login-register-dropdown .forgotpass{
    display: block;
    margin-bottom: 15px;
}
.login-register-dropdown .terms{
    display: block;
}

.login-register-dropdown h2{
    margin-bottom: 10px;
    font-size: 2.5rem;
}
.login-register-dropdown p{
    margin-bottom: 20px;
}
.close-login-register-dropdown{
    position: absolute;
    top: 0px;
    right: 0px;
    display: none;
}
.close-login-register-dropdown.show{
    display: block;
}
.close-icon {
    stroke: #334A5B;
    background: #fff;
    padding: 10px;
}
.close-icon:hover {
    stroke: #fff;
    background: #1A2D3B;
}

.navbar-toggler:focus{
    box-shadow: none;
}
.bin-icon{
    fill: #999;
}
a:hover .bin-icon{
    fill: #000;
}

.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}

h1.club-name {
    font-size: 3rem;
    font-weight: 700;
}
h1.club-name a{
    color: #fff;
    text-decoration: none;
}
h1.club-name a:hover{
    color: #ccc;
}
.club-bio{
    font-size: 1.25rem;
    font-weight: 300;
    color: #fff;
}
.club-logo-container{
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.club-logo{
    padding: 15px;
    height: auto;
    position: relative;
}
.club-save-button a{
    text-decoration: none;
    color: #fff;
    font-size: 1.25rem;
}
.club-save-button a span:hover{
    text-decoration: underline;
}
.club-save-button .favourite-icon{
    fill: none;
    height: 18px;
    margin-right: 5px;
    margin-top: -4px;
}
.club-save-button a.added .favourite-icon{
    fill: #fff;
}
.club-save-button a:hover .favourite-icon{
    fill: #fff;
}
.page-heading{
    font-size: 2rem;
    font-weight: 600;
}
.page-heading a{
    text-decoration: none;
    color: #000;
    font-weight: 300;
}
.page-heading a:hover{
    text-decoration: underline;
}
.butt{
    border: solid 1px #000;
    padding: 12px 40px;
    border-radius: 24px;
    text-decoration: none;
    color: #000;
    font-size: 1.25rem;
    display: inline-block;
}
.butt:hover{
    border-color: #047FDF;
    background: #047FDF;
    color: #fff;
}
.butt::after{
    content: "⟶";
    margin-left: 10px;
}

.header-container{
    margin-top: 8rem !important;
}

.championships-list{
    
}

.event-card, .championship-card{
    background: #DFDFDF;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 1.5rem;
}
.event-card.past-event, 
.championship-card.past-championship{
    background: transparent;
    border: solid 1px #ccc;
}
.event-card.past-event:hover, 
.championship-card.past-championship:hover{
    background: #DFDFDF;
}
.event-card:last-child, 
.championship-card:last-child{
    margin-bottom: 0;
}
.championship-card{
    padding: 30px 20px;
}
.event-card:hover, .championship-card:hover{
    text-decoration: none;
    background: #DEF0FF;
    color: #000;
}
.event-date{
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    background: #fff;
    padding: 14px 10px;
    border-radius: 10px;
    color: #000;
    text-transform: uppercase;
    aspect-ratio: 1/1;
    max-height: 80px;
}
.event-card .championship-name{
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.2;
}
.event-card .event-name{
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}
.event-card .arrow, .championship-card .arrow{
    transform: rotate(-90deg);
    margin-left: 20px;
}
.past-event.event-card{
    color: #999;
}
.past-event .event-date{
    color: #999;
}
.lozenge{
    padding: 10px 10px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}
.light-pastel-green .lozenge{
    background: #A6F4C9;
    color: #000;
}
.light-pastel-red .lozenge{
    background: #FF7558;
    color: #fff;
}
.championships-list .championship-card:hover{
    background: #9BD2FF;
}
.events-list .event-card:hover{
    background: #DEF0FF;
}
.championships-list .championship-card:hover .event-date{
    background: #A3E5E1;
}
.events-list .event-card:hover .event-date{
    background: #fff;
}
.events-list .event-card .cta, .championships-list .championship-card .cta{
    font-weight: 400;
}
.events-list .event-card .cta .outline-btn, .championships-list .championship-card .cta .outline-btn{
    /*background: #A6F4C9;
    border-color: #A6F4C9;*/
    background: #999;
    border-color: #999;
    font-size: 1rem;
}
.events-list .event-card .cta .outline-btn:hover, .championships-list .championship-card .cta .outline-btn:hover{
    color: #000;
}
.events-list .event-card:hover .arrow, .championships-list .championship-card:hover .arrow{
    transform: rotate(-90deg) translateY(10px);
    transition: transform 0.3s ease;
}
.events-list .event-card .cta .outline-btn.entered{
    background: #A6F4C9;
    border-color: #A6F4C9;
}
.events-list-item .event-date{
    max-width: 100px;
    padding: 20px 10px;
}
.light-pastel-blue .event-card, .light-pastel-blue .championship-card{
    background: #C1E3FF;
}

.entry-form-container:has(.already-entered) {
    background: #D8FFEA !important;
}
.entry-form-container .already-entered{
    font-size: 4rem;
    font-weight: 200;
    margin-top: 50px;
    margin-bottom: 50px;
    line-height: 1;
}

.footer{
    flex: 1;
}
.footer a{
    text-decoration: none;
    color: #fff;
}
.footer a:hover{
    text-decoration: underline;
}
.footer-logo{
    height: 50px;
    padding: 10px 0;
}
.footer-social-links a img{
    height: 20px;
    margin: 4px;
}

.social-icon {
    height: 20px;
    margin: 4px;
}

.sign-on-form{
    font-size: 14px;
    margin-bottom: 14px;
}

/* Form Fields */
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    border: none;
    padding: 12px 24px;
    font-size: 1.25rem;
    margin: 0px;
    margin-bottom: 8px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible{
    outline: 1px solid #ccc;
}
input[type="text"].invalid, input[type="email"].invalid, select.invalid, textarea.invalid {
    outline: solid 1px #AD1616;
    background: #FFE2E2;
}
input:disabled, input[readonly] {
    color: #999;
}
textarea{
    min-height: 10rem;
}
.input-field{
    position: relative;
    padding-top: 30px;
}
select option:disabled{
    color: #999;
}
label{
    color: #999;
}
/*input[type="password"].login_input{
    position: relative;
}
input[type="password"].login_input::after{
    content: "g";
    position: absolute;
    right: 10px;
    top: 0px;
    color: #000;
    cursor: pointer;
}*/
.input-field label{
    position: absolute;
    top: 10px;
    left: 5px;
    padding-left: calc(var(--bs-gutter-x)* .5);
    font-size: 1rem;
    font-weight: 200;
}
.form-container .text{
    margin: 30px 0;
}
.form-container .divider{
    margin: 30px 0;
    height: 1px;
    width: 100%;
    line-height: 0;
    font-size: 0;
    border-bottom: dotted 1px #000;
}
.terms, .addToMyClubs, .additional-purchase-options {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 1.25rem;
    user-select: none;
}

.terms input, .addToMyClubs input, .additional-purchase-options input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.terms .checkmark, 
.addToMyClubs .checkmark,
.additional-purchase-options .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 2px solid #047FDF;
    border-radius: 5px;
}

.terms:hover input ~ .checkmark, 
.addToMyClubs:hover input ~ .checkmark,
.additional-purchase-options:hover input ~ .checkmark {
    background-color: #E0FAF9;
}

.terms input:checked ~ .checkmark, 
.addToMyClubs input:checked ~ .checkmark,
.additional-purchase-options input:checked ~ .checkmark {
    background-color: #047FDF;
}

.terms .checkmark:after, 
.addToMyClubs .checkmark:after,
.additional-purchase-options .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.terms input:checked ~ .checkmark:after, 
.addToMyClubs input:checked ~ .checkmark:after,
.additional-purchase-options input:checked ~ .checkmark:after {
    display: block;
}

.terms .checkmark:after, 
.addToMyClubs .checkmark:after,
.additional-purchase-options .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.terms.invalid .checkmark, 
.addToMyClubs.invalid .checkmark,
.additional-purchase-options.invalid .checkmark {
    border-color: #AD1616;
    background-color: #FFE2E2;
}

.additional-purchase-options{
    margin-bottom: 10px;
    color: #000;
}

.form-section-title{
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.co-driver-details{
    
}

.staff-indemnity-container{
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-height: 300px;
    overflow-y: auto;
}
select {
    /* ... existing styles ... */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    padding-right: 40px; /* Increase this value to add more space on the right */
}

/* Remove default arrow in IE */
select::-ms-expand {
    display: none;
}

/* Adjust styles for focus state if needed */
select:focus {
    /* ... existing focus styles ... */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23000000' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
}
/* Adjust the invalid state for select */
select.invalid {
    outline: solid 1px #AD1616;
    background-color: #FFE2E2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23AD1616' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"), linear-gradient(to bottom, #FFE2E2 0%, #FFE2E2 100%);
    background-repeat: no-repeat, repeat;
    background-position: calc(100% - 20px) center, 0 0;
    background-size: 12px 12px, 100% 100%;
}
/* END FORM FIELDS */

.accordion-btn{
    background: none;
    border: none;
    padding: 0;
    position: absolute;
    right: 30px;
    top: 20px;
    width: 50px;
}
.accordion-btn:hover{
    background: none;
}
.accordion-btn[aria-expanded="true"] .accordion-arrow{
    transform: rotate(180deg);
}

.accordion-arrow{
    transform: rotate(0deg);
}
.indemnity{
    margin-bottom: 20px;
}

/* Bootstrap Overrides */
.btn{
    padding: 10px 24px;
}
.btn-primary{
    background: #047FDF;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    font-size: 1.25rem;
}
.btn-primary:hover{
    background: #1062A1;
}
.btn-secondary{
    background: #aaa;
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    border: 0;
    font-size: 1.25rem;
}
.btn-secondary:hover{
    background: #ccc;
    color: #000;
}
.right-arrow-icon{
    fill: #fff;
}
.modal-header .btn-close{
    width: 15px;
    height: 15px;
    background-size: cover;
}
.membership-types-list li{
    margin-bottom: 20px;
}
.class-link{
    font-size: 1.25rem;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    background: #C1E3FF;
    padding: 10px 24px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.class-link:hover{
    text-decoration: none;
    background: #9BD2FF;
}
.flag-icon{
    max-height: 15px;
}
.entry-headers{
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}
.entry-row{
    margin-bottom: 6px;
    font-size: 1.25rem;
}
.white-bg{
    background: #fff;
    border-radius: 4px;
}
.entry-row .entry-name{
    text-transform: capitalize;
}
.alert-info a{
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}
.alert-info a:hover{
    color: #047FDF;
    text-decoration: none;
}

/* Front-end */
.social-links{
    position: absolute;
    bottom: 5%;
    left: 8.3333333%;
    width: 400px;
    padding: 0 0.75rem;
}
.social-links img{
    margin-right: 10px;
}
.social-links a:hover img{
    opacity: 0.7;
}



/* Up to sm breakpoint */
@media (max-width: 390px) {
    .event-card .championship-name {
        font-size: 1rem;
    }
}

/* Up to md breakpoint */
@media (max-width: 768px) {
    .header-container{
        margin-top: 0rem !important;
    }
    .card {
        padding: 20px 15px;
    }
    .club-logo {
        padding: 10px;
    }
}

/* Target screens with a DPR of 3 (like iPhone 12) */
@media only screen and (max-width: 391px) {
  body {
    font-size: 10px; /* Increase font size for high-DPI screens */
  }
}

@media (max-width: 992px) {  /* lg breakpoint */
    .login-left, .login-right, .login-left-inner, .login-right-inner {
        height: auto !important;
    }
    .login-left-inner{
        padding-top: 12rem;
    }
}
@media (min-width: 992px) {
    .login-right{
        margin: auto;
        min-height: 540px;
    }
}

/* Club selector styling */
#clubSelector {
    border: 1px solid #047FDF;
    border-radius: 20px;
    padding: 9px 30px 9px 15px;
    color: #047FDF;
    font-weight: 400;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23047FDF' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

#clubSelector:hover, #clubSelector:focus {
    border-color: #035aa0;
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    outline: none;
}

#clubSelector option {
    background-color: #fff;
    color: #333;
    padding: 10px;
}