/* Base form styles */
.wpbn-form {
  max-width: 560px;
  margin: 1em 0;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Field styles */
.wpbn-field {
  margin-bottom: 15px;
}

.wpbn-label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.wpbn-input,
.wpbn-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.wpbn-input:focus,
.wpbn-select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wpbn-checkbox {
  margin-right: 8px;
}

.wpbn-required {
  color: #cc0000;
}

/* Button styles */
.wpbn-button,
.wpbn-button:link,
.wpbn-button:visited,
.wpbn-button:hover,
.wpbn-button:active,
.wpbn-button:focus {
  background: #0073aa;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
}

.wpbn-button:hover,
.wpbn-button:focus {
  background: #005a87;
  text-decoration: none !important;
}

.wpbn-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  text-decoration: none !important;
}

/* Link styles */
.wpbn-link {
  color: #0073aa;
  text-decoration: underline;
}

.wpbn-link:hover {
  color: #005a87;
}

/* Layout styles */
.wpbn-layout-horizontal .wpbn-field {
  display: inline-block;
  margin-right: 15px;
  vertical-align: top;
}

.wpbn-layout-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.wpbn-centered {
  margin: 0 auto;
}

/* Button style variations */
.wpbn-button-rounded .wpbn-button,
.wpbn-button-rounded .wpbn-button:link,
.wpbn-button-rounded .wpbn-button:visited,
.wpbn-button-rounded .wpbn-button:hover,
.wpbn-button-rounded .wpbn-button:active,
.wpbn-button-rounded .wpbn-button:focus {
  border-radius: 25px;
  text-decoration: none !important;
}

.wpbn-button-minimal .wpbn-button,
.wpbn-button-minimal .wpbn-button:link,
.wpbn-button-minimal .wpbn-button:visited,
.wpbn-button-minimal .wpbn-button:hover,
.wpbn-button-minimal .wpbn-button:active,
.wpbn-button-minimal .wpbn-button:focus {
  background: transparent;
  border: 2px solid #0073aa;
  color: #0073aa;
  text-decoration: none !important;
}

.wpbn-button-minimal .wpbn-button:hover,
.wpbn-button-minimal .wpbn-button:focus {
  background: #0073aa;
  color: white;
  text-decoration: none !important;
}

.wpbn-button-gradient .wpbn-button,
.wpbn-button-gradient .wpbn-button:link,
.wpbn-button-gradient .wpbn-button:visited,
.wpbn-button-gradient .wpbn-button:hover,
.wpbn-button-gradient .wpbn-button:active,
.wpbn-button-gradient .wpbn-button:focus {
  background: linear-gradient(45deg, #0073aa, #005a87);
  text-decoration: none !important;
}

/* GDPR field */
.wpbn-gdpr {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.wpbn-gdpr .wpbn-label {
  font-weight: normal;
  font-size: 14px;
  line-height: 1.4;
}

/* Submit field */
.wpbn-submit-field {
  margin-top: 20px;
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  .wpbn-layout-horizontal .wpbn-field {
    display: block;
    margin-right: 0;
  }
  
  .wpbn-layout-two-column {
    grid-template-columns: 1fr;
  }
  
  .wpbn-form {
    margin: 1em 0;
  }
  
  /* Mobile modal adjustments */
  .wpbn-modal {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  
  .wpbn-modal-backdrop {
    padding: 0;
  }
}

/* Modal */
.wpbn-modal-backdrop { 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.6); 
  display: none; 
  align-items: center; 
  justify-content: center; 
  z-index: 10000; 
}
.wpbn-modal {
  background: #fff;
  max-width: 420px;
  width: 92%;
  height: 850px;
  max-height: 850px;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wpbn-payment-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  flex: 1;
}
.wpbn-hide { display: none !important; }

/* Mobile responsive styles for modal */
@media (max-width: 768px) {
  .wpbn-modal {
    width: 100%;
    max-width: 100%;
    height: 850px;
    border-radius: 0;
    margin: 0;
  }
  .wpbn-modal-backdrop {
    padding: 0;
  }
}
