/*
 Theme Name:     The 25 Initiative
 Theme URI:      https://the25initiative.com/
 Description:    Child Theme for GeneratePress
 Author:         ATM Digital
 Author URI:     https://www.alexistmyers.com/
 Template:       generatepress
 Version:        1.0.0
*/


/* =Theme customization starts here
------------------------------------------------------- */

/*
 * HEADER
 * 
 */

/* Header Main Nav */

.header-menu__main .current-menu-item a {
	font-weight: bold;
}

/* Account Dropdown */
.account-nav {
	position: relative;
}

.account-nav #account-nav-toggle {
    display: flex;
    flex-direction: row;
    background: #fff;
    color: var(--base);
    gap: var(--space-xs);
    padding: 8px 12px;
    border-radius: var(--radius-d);
    border: 1px solid var(--base-200);
    align-items: center;
	transition: .3s all ease-in-out;
}

.account-nav #account-nav-toggle:hover, {
    border: 1px solid var(--base-600);
    box-shadow: var(--shadow-200-2);
}

.account-nav #account-nav-toggle:focus,
.account-nav #account-nav-toggle[aria-expanded="true"] {
    box-shadow: var(--shadow-200-2);
}

.account-nav #account-nav-toggle[aria-expanded="true"] {
	border-bottom-right-radius: 0;
}

.account-nav .account-nav-toggle__profile {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}
.account-nav .account-nav-toggle__profile--label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2rem;
}

.account-nav .account-nav-toggle__profile--heading {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--base-700);
}

.account-nav .account-nav-toggle__profile--avatar {
    width: 35px;
    height: 35px;
    background: var(--primary);
    color: #fff;
    display: flex;
    line-height: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-pill);
	box-shadow: inset 0px 0px 0px 2px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.account-nav #account-nav-dropdown {
	position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--white);
    padding: var(--space-xs) 0;
    box-shadow: var(--shadow-200-2);
    border: 1px solid var(--base-200);
    border-radius: var(--radius-d) 0 var(--radius-d) var(--radius-d);
    min-width: 240px;
	z-index: 9;
}

.account-nav #account-nav-dropdown .dropdown-menu {
	margin: 0;
	list-style: none;
}

.account-nav #account-nav-dropdown .dropdown-menu a {
    text-decoration: none;
    padding: 8px var(--space-xs);
    width: 100%;
    display: block;
    color: var(--base);
	transition: .3s all ease-in-out;
	border-left: 3px solid var(--white);
}

.account-nav #account-nav-dropdown .dropdown-menu .current-menu-item a,
.account-nav #account-nav-dropdown .dropdown-menu a:is(:hover, :focus) {
    background: var(--primary-100);
	border-left-color: var(--primary);
}

.account-nav #account-nav-dropdown .dropdown-menu .current-menu-item a {
	font-weight: 700;
}

.account-nav #account-nav-dropdown .dropdown-menu .menu-line-top:before {
    content: '';
    display: block;
    height: 2px;
    margin: 8px 16px;
    background: var(--base-100);
}

/*
 * MAIN
 * 
 */

/* H1 Highlight */
.headline-gradient {
    background: -webkit-linear-gradient(270deg, var(--primary-400) 50%, var(--primary-500) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Structured Forms */
#main .account-update fieldset legend,
#main .user-registration fieldset legend,
#main .user-registration .gfield--has-description label,
#main .company-registration fieldset legend {
    margin-bottom: 4px!important;
}

#main .account-update fieldset legend + .ginput_complex .gform-field-label,
#main .user-registration fieldset legend + .ginput_complex .gform-field-label,
#main .user-registration .gfield--has-description label + .gfield_description,
#main .company-registration fieldset legend + .ginput_complex .gform-field-label {
    padding-top: 0px!important;
    margin-bottom: 4px;
}

#main .account-update .account-section__profile,
#main .account-update .account-section__login,
#main .user-registration .user-section__personal,
#main .user-registration .user-section__account,
#main .user-registration .user-section__preferences,
#main .company-registration .company-section__details,
#main .pledge-submission .pledge-section__details{
    grid-column: span 4;
}

#main .account-update .account-section__login,
#main .account-update:has([data-conditional-logic="hidden"]) .account-section__profile{
	grid-row: span 2;
}

#main .user-registration:has([data-conditional-logic="hidden"]) .user-section__personal,
#main .account-update:not(:has([data-conditional-logic="hidden"])) .account-section__profile { 
    grid-row: span 3;
}

#main .user-registration:not(:has([data-conditional-logic="hidden"])) .user-section__personal { 
    grid-row: span 4;
}

#main .user-registration .user-section__account { 
    grid-row: span 5;
}

#main .company-registration .company-section__details { 
    grid-row: span 3;
}

#main .pledge-submission .pledge-section__details { 
    grid-row: span 4;
}

#main .user-registration .user-section__preferences { 
    grid-row: span 1;
}

#main .account-update .gform_fields > *:not(.gfield--type-section):not(.gfield--type-honeypot):not(.gfield--type-html),
#main .user-registration .gform_fields > *:not(.gfield--type-section):not(.gfield--type-honeypot):not(.gfield--type-html),
#main .company-registration .gform_fields > *:not(.gfield--type-section):not(.gfield--type-honeypot):not(.gfield--type-html),
#main .pledge-submission .gform_fields > *:not(.gfield--type-section):not(.gfield--type-honeypot):not(.gfield--type-html){
    grid-column: span 8;
}

@media (max-width: 768px) {
    #main .account-update .gform_fields > *,
	#main .user-registration .gform_fields > *,
	#main .company-registration .gform_fields > *,
	#main .pledge-submission .gform_fields > *{
        grid-column: 1 / -1;
    }
}

#main .account-update .gfield--type-section,
#main .user-registration .gfield--type-section,
#main .company-registration .gfield--type-section,
#main .pledge-submission .gfield--type-section {
    border-bottom: 0;
    position: relative;
}

#main .account-update .gfield--type-section .gsection_title,
#main .user-registration .gfield--type-section .gsection_title,
#main .company-registration .gfield--type-section .gsection_title,
#main .pledge-submission .gfield--type-section .gsection_title {
    margin-bottom: 11px;
    font-size: var(--fs-headline-h4);
    color: var(--base);
	line-height: 1;
	text-wrap: pretty;
    max-width: 35ch;
}

#main .account-update .gfield--type-section .gsection_description,
#main .user-registration .gfield--type-section .gsection_description,
#main .company-registration .gfield--type-section .gsection_description,
#main .pledge-submission .gfield--type-section .gsection_description{
    margin: 0;
    padding: 0;
    color: var(--base-800);
	text-wrap: pretty;
}

/* Submit */
.gform_wrapper.gravity-theme .gform_footer {
    justify-content: flex-end;
}

.gform_footer input[type=submit].btn--primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--base);
	min-width: 240px;
}

.gform_footer  input[type=submit].btn--primary:is(:hover, :focus) {
    background-color: var(--primary-alt);
    border-color: var(--primary-alt);
    color: var(--base);
}


/* Mobile Submit Line Height */
@media only screen and (max-width: 641px) {
    #main .gform_footer input[type="submit"] {
        line-height: 1.5em;
    }
}

/* Strength Meter */
.gform_wrapper.gravity-theme .gfield_password_strength.gfield_password_strength {
    background-color: transparent!important;
    border: none!important;
    border-radius: var(--radius-pill);
    margin-top: 8px;
    padding: 4px 8px;
    text-align: center;
    font-size: 14px;
    width: calc(50% - 12px);
    position: relative;
    border-width: 2px!important;
    font-weight: bold;
    z-index: 1;
    border: 2px solid var(--base-400)!important;
}

.gform_wrapper.gravity-theme .gfield_password_strength.gfield_password_strength:after {
    content: '';
    height: 29px;
    width: 0;
    background: #e0e0e0;
    position: absolute;
    left: 0px;
    top: 0px;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    z-index: -1;
}

.gform_wrapper.gravity-theme .gfield_password_strength.short:after {
    width: 25%;
    background: darkred;
}

.gform_wrapper.gravity-theme .gfield_password_strength.bad:after {
    width: 50%;
    background: orange;
}

.gform_wrapper.gravity-theme .gfield_password_strength.good:after {
    width: 75%;
    background: yellow;
}

.gform_wrapper.gravity-theme .gfield_password_strength.strong {
    color: #fff;
}
.gform_wrapper.gravity-theme .gfield_password_strength.strong:after {
    background: green;
    width: 100%;
    border-radius: var(--radius-pill);
}

@media (max-width: 768px) {
    .gform_wrapper.gravity-theme .gfield_password_strength {
        width: 100%;
    }
}

/* Radio Buttons */
@media (min-width: 769px) {
    .user-registration .gfield_radio,
	.account-update .gfield_radio{
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
	
	.user-registration .gfield_radio .gchoice,
	.account-update .gfield_radio .gchoice {
        flex-basis: calc(33% - 10.66px);
		margin-bottom: 0px;
	}	
}

.user-registration .gchoice,
.account-update .gchoice{
    z-index:1;
    position:relative;
    margin:0 0 10px 0;
    padding:0;
    height:56px;
    width: 100%!important;
}

.user-registration .gchoice.gfield--type-radio legend,
.account-update .gchoice.gfield--type-radio legend {
	margin-bottom: 16px!important;
}

.user-registration .gchoice input.gfield-choice-input,
.account-update .gchoice input.gfield-choice-input {
    z-index:2;
    appearance:none;
    margin:0;
    padding:0;
    width: 100%;
    border-radius: 5px;
    height:100%;
    background: white;
    transition: .3s all ease-in-out;
    position:absolute;
	border: 2px solid var(--base-400);
    position:absolute;
}

.user-registration .gchoice input.gfield-choice-input:is(:hover, :focus),
.account-update .gchoice input.gfield-choice-input:is(:hover, :focus) {
	background:var(--base-200);
	border-color:var(--base-200);
}

.user-registration .gchoice input.gfield-choice-input:checked,
.account-update .gchoice input.gfield-choice-input:checked {
	border: 2px solid var(--primary);
    background:var(--primary);
}

.user-registration .gchoice input.gfield-choice-input:checked + label,
.account-update .gchoice input.gfield-choice-input:checked + label {
    color:white;
}

.user-registration .gchoice label,
.account-update .gchoice label {
    z-index:3;
    font-weight:700;
    color: var(--base);
    display:block;
    position: absolute;
    padding: 0 0 0 30px;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    width:100%;
    overflow:visible;
}

.user-registration .gchoice input.gfield-choice-input + label:before,
.account-update .gchoice input.gfield-choice-input + label:before {
    content: "";
    position: absolute;
    left: -20px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--base-400);
    z-index: 2;
    top: 50%;
    transition: .3s all ease-in-out;
    color: white;
    font-size: 25px;
    text-align: center;
    line-height: 25px;
    font-weight: 500;
}

.user-registration .gchoice input.gfield-choice-input:is(:hover, :focus) + label:before,
.account-update .gchoice input.gfield-choice-input:is(:hover, :focus) + label:before { 
	border-color: var(--base-700);
}

.user-registration .gchoice input[type="checkbox"].gfield-choice-input + label:before,
.account-update .gchoice input[type="checkbox"].gfield-choice-input + label:before { 
    border-radius: 5px;
}

.user-registration .gchoice input[type="radio"].gfield-choice-input + label:before,
.account-update .gchoice input[type="radio"].gfield-choice-input + label:before {
    border-radius: 50px;
}

.user-registration .gchoice input.gfield-choice-input:checked + label:before,
.account-update .gchoice input.gfield-choice-input:checked + label:before {
    border: none;
	top: calc(50% + 3px);
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M12,24a1,1,0,0,1,0-2A10,10,0,0,0,12,2a1,1,0,0,1,0-2,12,12,0,0,1,0,24Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M1.045,13.913a1,1,0,0,1-1-.919C.022,12.665,0,12.336,0,12s.022-.665.049-.994a1,1,0,1,1,1.993.162C2.021,11.442,2,11.719,2,12s.021.558.042.832a1,1,0,0,1-.916,1.078Q1.086,13.913,1.045,13.913Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M6.243,3.641a1,1,0,0,1-.526-1.852,12.022,12.022,0,0,1,1.774-.9,1,1,0,1,1,.754,1.851,10.133,10.133,0,0,0-1.478.757A.993.993,0,0,1,6.243,3.641Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M2.188,8.044a.988.988,0,0,1-.451-.108A1,1,0,0,1,1.3,6.592,12.131,12.131,0,0,1,2.342,4.9,1,1,0,0,1,3.953,6.083,10.1,10.1,0,0,0,3.081,7.5,1,1,0,0,1,2.188,8.044Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M3.128,19.482a1,1,0,0,1-.808-.409,12.049,12.049,0,0,1-1.041-1.7,1,1,0,1,1,1.787-.9,10.047,10.047,0,0,0,.868,1.418,1,1,0,0,1-.217,1.4A.986.986,0,0,1,3.128,19.482Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M7.853,23.185a.983.983,0,0,1-.377-.075A11.879,11.879,0,0,1,5.7,22.2,1,1,0,0,1,6.75,20.5a10.041,10.041,0,0,0,1.48.761,1,1,0,0,1-.377,1.926Z' fill='%23ffffff'%3E%3C/path%3E%3Cpath d='M10,17a1,1,0,0,1-.707-.293l-4-4a1,1,0,0,1,1.414-1.414L10,14.586l7.293-7.293a1,1,0,1,1,1.414,1.414l-8,8A1,1,0,0,1,10,17Z' fill='%23ffffff'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}

/*** [Dashboard] ***/

/* Main Table Styles */
#main .gridjs-container {
	padding: 0px;
}

#main .gridjs-wrapper {
	box-shadow: none;
	border: 1px solid var(--base-200);
	border-radius: 0.25rem;
}

#main table.gridjs-table {
	border: none;
}

#main .gridjs-footer {
    box-shadow: none;
    padding: 0;
    padding-top: 1rem;
	border-top: 0px;
}

#main .gridjs-search {
    float: right;
}

/* Table Content */
#main .gridjs-th {
    background-color: var(--primary-100);
    border-color: var(--base-200);
    color: var(--primary-700);
}
#main .gridjs-tr:nth-child(even) td {
    background: var(--base-50);
}
#main .gridjs-tr:last-child td {
	border-bottom: none!important;
}

/* Pagination */
#main button.gridjs-pagination-button,
#main button.gridjs-pagination-button[disabled]:is(:hover, :focus){
    background: var(--secondary-50);
    color: var(--secondary-700);
    border-color: var(--secondary-200);
}

#main button.gridjs-pagination-button:is(:hover, :focus),
#main button.gridjs-pagination-button.gridjs-currentPage{
    background: var(--secondary-600);
    color: var(--white);
    border-color: var(--secondary-600);
}

#main button.gridjs-pagination-button[disabled] {
    opacity: 0.5;
}