/* =========================
   Stripe Payment Form Styles
   ========================= */

#hsf-form {
   max-width: 560px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Inputs */
#hsf-form p { margin-bottom: 16px; }
#hsf-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.hsf_additional_information {
    width:100%;
}
.hsf-closed{
	text-align:center;
	font-size:22px;
}
/* All inputs + selects */
#hsf-form input[type="text"],
#hsf-form input[type="email"],
#hsf-form input[type="date"],
#hsf-form input[type="tel"],
#hsf-form select,
#hsf-form textarea {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #fff;
}
#hsf-form textarea { height: auto; min-height: 50px; resize: vertical; /* allow user to resize */ }


/* Stripe Card Element */
#card-element {
    width: 100%;
    padding: 12px;
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    margin-bottom: 10px;
}

/* Stripe iframe fix */
#card-element iframe {
    height: 20px !important;
}

/* Focus state */
#hsf-form input:focus,
#hsf-form select:focus,
#card-element.StripeElement--focus {
    border-color: #4f46e5;
    outline: none;
}

/* Error state */
#card-element.StripeElement--invalid {
    border-color: #dc2626;
}

/* Submit button */
#hsf-submit {
    width: 100%;
    height: 48px;
    background: #0b1a8a;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

#hsf-submit.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Spinner */
#hsf-submit .btn-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hsf-spin 0.8s linear infinite;
}

/* Loading state */
#hsf-submit.loading .btn-spinner {
    display: block;
}

#hsf-submit.loading .btn-text {
    visibility: hidden;
}

/* FIXED animation (translate + rotate together) */
@keyframes hsf-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Error message */
#hsf-message .hsf-error {
    color: #dc2626;
    margin-top: 12px;
}
