/**
Author: Civicopilot
Author URI: https://civicopilot.com/
Version:1.0.0
**/
    
/* headings container */
 .crm-container .crm-accordion-wrapper .crm-master-accordion-header, #crm-container .widget-content .crm-accordion-header, .crm-container .header-dark {
	background-color:var(--ast-global-color-1);
	color:#fff;
	padding:10px;
}

/* field labels */
#crm-container.crm-public .label,.crm-container .crm-section .label label {
        font-size:1rem;
        color:var(--ast-global-color-1);
}

#crm-container.crm-public .label {
	padding-right:10px;
}

/* checkboxes */
.crm-container .crm-multiple-checkbox-radio-options {
  --checkbox-width: 2em;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* required marker */
.crm-container .crm-marker {
  color:var(--ast-global-color-0);
}

/* larger radio and checkbox fields */
.crm-section input[type="radio"] {
  border: 1px solid #eee !important;
  width: 20px !important;
  height: 20px;
  margin-right: 5px;
  border-radius: 50px !important;
}

.crm-section input[type="checkbox"] {
  border: 1px solid #eee !important;
  width: 20px !important;
  height: 20px;
  margin-right:5px;
}
    
/* 100% WIDTH for profile search textfields  */
#crm-container.crm-public .CRM_Profile_Form_Search .crm-block input[type="text"],
#crm-container.crm-public .CRM_Profile_Form_Search .crm-block input[type="password"],
#crm-container.crm-public .CRM_Profile_Form_Search .crm-block input[type="email"],
#crm-container.crm-public .CRM_Profile_Form_Search .crm-block select {
	width: 100%;
    }
    
/* 25% WIDTH for textfields  */
#crm-container.crm-public .crm-block input[type="text"],
#crm-container.crm-public .crm-block input[type="password"],
#crm-container.crm-public .crm-block input[type="email"] {
	width: 30%;
    }
    
@media (min-width:501px){
/* 25% WIDTH for textfields  */
#crm-container.crm-public .crm-block input[type="text"],
#crm-container.crm-public .crm-block input[type="password"],
#crm-container.crm-public .crm-block input[type="email"],
#crm-container.crm-public .crm-block select {
	width: 30%;
		}
	}
    
/*-----------------------------------------------------------------------------------*/
/* Start Mobile */
/*-----------------------------------------------------------------------------------*/ 
 
@media (max-width:768px){
  /* Mobile view for profiles  */
  #crm-container.crm-public .crm-block input[type="text"],
  #crm-container.crm-public .crm-block input[type="password"],
  #crm-container.crm-public .crm-block input[type="email"],
  #crm-container.crm-public .crm-block select 
   #crm-container.crm-public .crm-block select2 {
    width: 95%;
  }
  
/* mobile profile fields on own line */  
  #crm-container.crm-public .label {
	display: block;
	float: none;
	text-align:left;
	width: 100%;	
}

/* field labels */
#crm-container.crm-public .label {
 font-size:17px;
 padding:0px; 
}

.crm-container .crm-section .content {margin-left:0% !important;}

.crm-container .crm-button {
	width: 98%;
	line-height:220%;
	}
}

/*-----------------------------------------------------------------------------------*/
/* End Mobile */
/*-----------------------------------------------------------------------------------*/ 
#crm-container.crm-public .price-set-row .highlight .crm-price-amount-label, #crm-container.crm-public .price-set-row .highlight .crm-price-amount-amount {
}

#pricevalue {
	color:#545454;
	font-weight:900;
}

/* select2 fix */
.crm-container.crm-public .select2-container .select2-choice {padding: 0px 10px !important;}

/* padding to price label */
.crm-price-amount-label {padding:5px;}

fieldset legend {
	margin-bottom:0px;
	font-weight:900 !important;
}

.crm-container fieldset legend {
	font-size:17px;
	font-weight:inherit;
}	

/* No CRM title */
#crm-container .crm-title {display:none;}

/* margin between fields */
#crm-container.crm-public .crm-section,
div.crm-section {
  margin-bottom: 5px;
}

#crm-container.crm-public .crm-container input.crm-form-text {padding:5px;}

/* price values */
span.price-set-option-content {font-size:16px;}

.content.description, .crm-container .description {
	font-weight: inherit;
	clear: both;
	display:block;
	color:#666;
}

/* confirmation page buttons */
#crm-container.crm-public #crm-submit-buttons {
	margin: 0px 0px 50px 0px;
	}
	
/* labels */
div.crm-container label {
	font-size:16px;
}

/* Submit Button */
.crm-container .crm-button, .crm-container a.button {
	background:#000;
	text-shadow:none;
	font-size: 16px;
	font-weight:900;
	border: none;
	line-height:200%;
	text-transform:uppercase;
	border-radius: 50px;
 	padding: 10px 30px;
}

/* submit button hover */
.crm-container .crm-button:hover,.crm-container .crm-button:focus, #_qf_Main_upload-bottom:focus, .crm-contribute-button-inner:hover {
	background:#0066a4;
	color:#fff;
	transition:all .5s ease;
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);

}

/* checkmark */
.crm-i.fa-check {display: none;}

/* transition  civi button */
.crm-container .crm-button:hover, .crm-container .crm-button:active {
	transition: all .5s ease;
}

/* message status */ 
.crm-container .status, .messages.help, .crm-container .help, .crm-container #help, .messages.status.no-popup {
	box-shadow: 0px 0px 3px 1px rgba(39,68,114,0.3);
	padding:.75em;
	background-color:transparent;
	border:none;
	margin:1em 0em;
	background: #fafafa;
	font-weight: inherit;
	font-size: 15px;
	border-left: 4px solid #0c456f;
}

/* help messages */
.messages.help p {font-size:15px;} 

/* hr */
.crm-container hr {
    background-color: #0c456f;
}

#crm-profile-block.crm-container.crm-public h5 {
border-bottom: 1px solid #0c456f; 
font-size: 17px;
font-weight:900;
}

/* field inputs */
#crm-container.crm-public input[type="text"], #crm-container.crm-public input[type="password"], #crm-container.crm-public input[type="email"], #crm-container.crm-public select, .crm-container textarea, .crm-container .select2-container .select2-choice > .select2-chosen, .crm-container input.crm-form-text {
	background:#d9d9d9 !important;
	border:none;
	font-size:16px;
}

/* field inputs focus */
#crm-container.crm-public input[type="text"]:focus, #crm-container.crm-public input[type="password"]:focus, #crm-container.crm-public input[type="email"]:focus, #crm-container.crm-public select:focus, .crm-container textarea:focus {
	background: #f2f2f2 !important;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#crm-container.crm-public .price-set-row .crm-price-amount-amount, #crm-container.crm-public .price-set-row .crm-price-amount-label {
	font-size: 16px;
	line-height:150%;
	font-weight:normal;
	}

/* fieldset as divider */
.crm-container fieldset legend, #crm-profile-block.crm-container.crm-public legend  {
  display: block;
  font-size: 18px;
  font-weight: 500;
  padding: 20px 10px 20px 25px;
  margin: 3% 0%;
  background-image: linear-gradient(135deg, #0d4873 0%, #0d4988 45%, #0065a4 80%);
  color:white;
  position: relative;
  text-indent: 0;
  width: 100% !important;
  border-radius:5px;
}

/* civi button */
.crm-container input[type="button"] {
	background:#0c456f;
	border:none;
	text-shadow: none;
	color:#0c456f;
	font-weight:900;
  }
 
/* stripe */
#card-element {
	background-color:#d9d9d9 !important;
}

/* total amount */
#crm-container.crm-public .calc-value {
	font-size:1.2rem;
	color:inherit;
}

/* spread the word */
.crm-container .status.crm-ok {
  border-color: inherit;
  background-color: inherit;
  color:var(--ast-global-color-0);
}

#civicrm-footer {
	border:none;
}

/*-----------------------------------------------------------------------------------*/
/* Form Builder */
/*-----------------------------------------------------------------------------------*/

/* items gap */
#bootstrap-theme .af-container.af-layout-cols {
  gap: 30px;
  margin-bottom: 20px;
}

/* fieldset gap */
#bootstrap-theme fieldset {
	margin-top:30px;
}

/* container title */
#bootstrap-theme .af-container legend.af-title {
  padding: 10px;
  color: white;
  border-radius:0px;
}

/* checkbox fields */
#bootstrap-theme ul.crm-checkbox-list {
  border: none !important;
  width: 100% !important;
  background: transparent;
  max-width: 100%;
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
}

.crm-container ul.crm-checkbox-list li label {
	word-break:normal;
}

 @media only screen and (min-width: 544px) {
#bootstrap-theme ul.crm-checkbox-list li {
  display: inline-block;
  box-sizing: border-box; /* Ensures padding doesn't affect the width */
}
}

#bootstrap-theme ul.crm-checkbox-list li:nth-child(2n) label {
  background-color: inherit !important;
}

#bootstrap-theme ul.crm-checkbox-list li input:checked + label {
  background-color: inherit !important;
}


/* form inputs */
#bootstrap-theme .crm-af-field-label.ng-binding.ng-scope {
  font-size:1.1rem;
}

#bootstrap-theme label {
	font-weight:inherit;
	padding-right:10px;
	font-size:1rem;
}

/* toggle switch */
#bootstrap-theme .crm-form-toggle-container {
  & input[type="checkbox"].crm-form-toggle:checked {
    border:none;
    background-color: var(--ast-global-color-1);
  }
}


#bootstrap-theme .form-control,
#bootstrap-theme .form-control .select2-search-field,
#bootstrap-theme textarea {
	background:#d9d9d9;
 	border-width:0px;
  	-webkit-box-shadow: none;
  	border-bottom-style: solid;
  	border-radius:0px;
}

#bootstrap-theme .form-control,
#bootstrap-theme .form-control .select2-search-field {
	height: 40px;
}

#bootstrap-theme .form-control:focus, #bootstrap-theme textarea:focus {
	background:#f2f2f2;
	box-shadow: none;
 	transition: all 0.3s ease-in-out;
}

#bootstrap-theme .form-control::placeholder {
	color: var(--ast-global-color-3);
}

/* buttons */
#bootstrap-theme .btn:not(.dropdown-toggle) {
	padding: 10px 25px;
	text-transform:uppercase;
  	text-shadow:none;
  	font-size: 0.9375rem;
  	font-weight:700;
  	border: none;
  	border-radius:50px;
}

#bootstrap-theme .btn-primary, #bootstrap-theme .btn-default {
 	background:var(--ast-global-color-1);
	color:white;
}

/* buttons hover */
#bootstrap-theme .btn-primary:hover, #bootstrap-theme .btn-primary:active, #bootstrap-theme .btn-default:hover, #bootstrap-theme .btn-primary:focus {
	background:var(--ast-global-color-0);
  color:#fff;
  transition:all .5s ease;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
}

#bootstrap-theme button, #bootstrap-theme .btn {
	margin-top:10px;
	margin-bottom:10px;
}

#bootstrap-theme .table > tbody > tr > td {
	font-size:0.9rem;
}

/* afform */
#bootstrap-theme .af-container.af-layout-inline {
    margin-bottom: 2%;
}

/* field label */
#bootstrap-theme label.crm-af-field-label.ng-binding.ng-scope {
	font-size: 1rem;
	color: var(--ast-global-color-3);
}

/* mobile afform */
@media only screen and (max-width:544px) {
#bootstrap-theme .af-container.af-layout-cols, #bootstrap-theme ul.crm-checkbox-list {
  flex-direction: column;
	}
}

/* event time as row */
#bootstrap-theme.crm-container .crm-form-date-wrapper {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

/* confirmation message */
#bootstrap-theme .afform-confirmation {
  background-color: var(--ast-global-color-6);
  padding: 1%;
  border-radius:3px;
}

/* Keep your Astra link color inside CiviCRM if desired */
#bootstrap-theme a {
  color: var(--ast-global-color-0);
}

