/*
Theme Name: Forms Only
Author: David Ross
Description: Minimal theme for serving forms only.
Version: 1.0
*/



/* Base reset */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  margin: 0;
  padding: 0;
  background: #fff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 1.5rem 0 1rem;
  font-family: inherit;
}

/* Links */
a {
  color: #005ea5;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Buttons (WordPress + Fluent Forms) */
button,
input[type="submit"],
.wp-block-button__link {
  background: #005ea5;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: #004b82;
}

/* Form fields */
input, select, textarea {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

/* Standalone view (direct URL) */
html.standalone body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f9f9f9;
}
/* Standalone view (direct URL) */
html.standalone main#site-content {
  max-width: 800px;
  width: 100%;
  margin: auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Embedded view (iframe) */
html.embedded main#site-content {
  max-width: 800px;     /* so it doesn't stretch across full width */
  width: 100%;
  margin: 40px auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

h2.form-title { margin: 0 0 50px 0; text-align: center;}

@media (width <= 500px) {
	html.standalone main#site-content { padding: 2rem 0.75rem 2rem 0.75rem;	}
	html.embedded main#site-content { padding: 0; }
}
	
html.embedded .form-header {
  display: none;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header img {
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

	