/* Professional Modal Styles */
.helloasso-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: helloassoModalFadeIn 0.3s ease-out forwards;
}

@keyframes helloassoModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.helloasso-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.helloasso-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  animation: helloassoModalSlideIn 0.3s ease-out 0.1s forwards;
}

@keyframes helloassoModalSlideIn {
  from {
    transform: scale(0.95) translateY(20px);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

.helloasso-modal-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.helloasso-modal-header h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
}

.helloasso-modal-header p {
  margin: 0;
  color: #6b7280;
  font-size: 1rem;
}

.helloasso-modal-icon {
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: helloassoIconPulse 0.6s ease-out;
}

@keyframes helloassoIconPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.helloasso-modal-body {
  padding: 1.5rem 2rem;
}

.helloasso-donation-details {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.helloasso-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.helloasso-detail-row:first-child {
  padding-top: 0;
}

.helloasso-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.helloasso-detail-row.helloasso-amount-row {
  background: linear-gradient(
    135deg,
    var(--e-global-color-secondary),
    var(--e-global-color-primary)
  );
  margin: 0 -1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: none;
  color: white;
}

.helloasso-detail-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.helloasso-amount-row .helloasso-detail-label {
  color: rgba(255, 255, 255, 0.9);
}

.helloasso-detail-value {
  font-weight: 500;
  color: #1f2937;
  text-align: right;
}

.helloasso-amount-row .helloasso-detail-value {
  color: white;
}

.helloasso-amount {
  font-size: 1.25rem;
  font-weight: 800;
}

.helloasso-confirmation-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #effbff;
  border: 1px solid #bfe5fe;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.helloasso-info-icon {
  flex-shrink: 0;
}

.helloasso-confirmation-note p {
  margin: 0;
  font-size: 0.875rem;
  color: #1e40af;
  line-height: 1.5;
}

.helloasso-error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.helloasso-error-message p {
  margin: 0;
  color: #991b1b;
  font-weight: 500;
}

.helloasso-error-help {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
}

.helloasso-error-help p {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #374151;
}

.helloasso-error-help ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #6b7280;
}

.helloasso-error-help li {
  margin-bottom: 0.25rem;
}

.helloasso-cancelled-message {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem;
}

.helloasso-cancelled-message p {
  margin: 0 0 0.5rem;
  color: #92400e;
}

.helloasso-cancelled-message p:last-child {
  margin-bottom: 0;
}

.helloasso-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #f3f4f6;
  text-align: center;
}

.helloasso-modal-close-btn {
  background: #4b5563;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.helloasso-modal-close-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(107, 114, 128, 0.3);
}

.helloasso-modal-close-btn:active {
  transform: translateY(0);
}

.helloasso-error-header h2 {
  color: #dc2626;
}

.helloasso-cancelled-header h2 {
  color: #d97706;
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
  .helloasso-modal-content {
    width: 95%;
    margin: 1rem;
  }

  .helloasso-modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .helloasso-modal-header h2 {
    font-size: 1.25rem;
  }

  .helloasso-modal-body {
    padding: 1rem 1.5rem;
  }

  .helloasso-modal-footer {
    padding: 1rem 1.5rem;
  }

  .helloasso-donation-details {
    padding: 1rem;
  }

  .helloasso-detail-row.helloasso-amount-row {
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
  }

  .helloasso-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .helloasso-amount-row.helloasso-detail-row {
    flex-direction: row;
    align-items: center;
  }

  .helloasso-detail-value {
    text-align: left;
  }

  .helloasso-amount-row .helloasso-detail-value {
    text-align: right;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .helloasso-modal,
  .helloasso-modal-content,
  .helloasso-modal-icon {
    animation: none;
  }

  .helloasso-modal {
    opacity: 1;
  }

  .helloasso-modal-content {
    transform: none;
  }
}




/* --- HELLO ASSO FORM --- */

.sr-only {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	-webkit-clip-path: inset(50%) !important;
			clip-path: inset(50%) !important;
	height: 1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	white-space: nowrap !important;
}

.helloasso-donation-form input,
.helloasso-donation-form select {
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	appearance: none;
	background: white;
	border: 1px solid #D2D6DE;
}

.helloasso-donation-form select {
	font-weight: 800;
}

.helloasso-donation-form input {
}

.helloasso-donation-form .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 1rem;
}

.helloasso-donation-form .form-row .form-group:first-child input {
	border-bottom-right-radius: 0;
	border-top-right-radius: 0;
}

.helloasso-donation-form .form-row .form-group:last-child input {
	border-bottom-left-radius: 0;
	border-top-left-radius: 0;
	border-left: none;
}

.helloasso-donation-form .form-vos-infos {
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--e-global-color-e5d952e);
	text-align: center;
}

.helloasso-donation-form .form-group.btn {
	display: flex;
}


.form-group.paypal-btn{
	display: flex!important;
    justify-content: center!important;
}

.donation-submit-btn-paypal {
  background-color: #FFC439;  
  color: black;                
  border: transparent;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;       
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
	border: transparent;
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	margin-inline: auto;
}

.donation-submit-btn-paypal:hover {
  background-color:black;
	color:#FFC439:
}

.donation-submit-btn-paypal:active {
  background-color:black;
	color:#FFC439:
}


.helloasso-donation-form button[type="submit"] {
	background: linear-gradient(
    135deg,
    var(--e-global-color-secondary),
    var(--e-global-color-primary)
  );
	padding: 12px 45px;
  	font-size: 16px;
  	font-weight: 600;
	border: transparent;
	border-radius: 30px;
	color: var(--e-global-color-92e094b);
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	margin-inline: auto;

}

.helloasso-donation-form .security-note {
  color: #6b7280;
	text-align: center;
}

.helloasso-donation-form .amount-input-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.quick-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.5rem;
	width: 100%;
}

.input-wrapper {
	position: relative;
	flex-grow: 1;
}

.input-wrapper input::-webkit-outer-spin-button,
.input-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-wrapper input[type=number] {
  -moz-appearance: textfield;
}

.input-wrapper::after {
	content: "€";
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: black;
}

.input-wrapper input {
	font-weight: 600;
	font-size: 1.5rem;
}

.quick-amount {
  color: black;
 text-align: center;
	border: 1px solid #6b7280;
}

.quick-amount:hover, .quick-amount:active {
  color: white;
	border-color: transparent;
    background: var(--e-global-color-primary);
}

@media (min-width: 1024px) {
	.helloasso-donation-form .amount-input-wrapper {
		flex-direction: row;
	}
	
	.quick-amounts {
		grid-template-columns: 1fr 1fr;
		width: auto;
		min-width: 10rem;
	}
	
	.input-wrapper input {
		font-size: 3rem;
	}
	
	.input-wrapper::after {
		font-size: 3rem;
		right: 1.5rem;
	}
}