/**
 * AGV Air Conditioning Estimator
 * Styled to match the AGV Plumbing (Underscores) Theme
 */

:root {
  /* AGV Theme Colors */
  --agv-primary: #1f88e2;
  --agv-primary-dark: #156dbb;
  --agv-accent: #92d700;
  --agv-text: #0d0d0d;
  --agv-text-muted: #666666;
  --agv-bg-light: #f8f9fa;
  --agv-border: #cccccc;
  --agv-error: #d9534f;
  --agv-radius: 4px;
  --agv-max-width: 100%;
}

.agv-estimator * {
  box-sizing: border-box;
}

.agv-estimator {
  width: 100%;
  max-width: var(--agv-max-width);
  margin: 20px 0;
  color: var(--agv-text);
  font-family: 'Saira Semi Condensed', sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

.agv-branding {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.agv-logo {
  display: block;
  max-width: 350px;
  width: 100%;
  height: auto;
}

.agv-estimator h1,
.agv-estimator h2,
.agv-estimator h3 {
  clear: both;
  color: var(--agv-primary);
  font-family: 'Saira Semi Condensed', sans-serif;
  line-height: 1.2;
  margin-top: 0;
}

.agv-estimator h1 {
  margin-bottom: 12px;
  font-size: 2.2rem;
  text-align: center;
}

.agv-estimator h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.agv-estimator h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.agv-intro,
.agv-panel,
.agv-result,
.agv-booking {
  position: relative;
  border: 1px solid var(--agv-border);
  border-radius: var(--agv-radius);
  padding: 24px;
  margin-bottom: 24px;
  background: #ffffff;
}

.agv-intro {
  text-align: center;
  background: var(--agv-bg-light);
  border-left: 4px solid var(--agv-primary);
}

.agv-intro p {
  margin-bottom: 1em;
}

.agv-room {
  border-top: 1px solid var(--agv-border);
  padding-top: 20px;
  margin-top: 20px;
}

.agv-room:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.agv-room h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.agv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.agv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agv-field--full {
  grid-column: 1 / -1;
}

.agv-estimator label {
  color: var(--agv-text);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Matching Theme Input Styles */
.agv-estimator input[type="text"],
.agv-estimator input[type="tel"],
.agv-estimator input[type="email"],
.agv-estimator input[type="number"],
.agv-estimator select,
.agv-estimator textarea {
  color: #666;
  border: 1px solid var(--agv-border);
  border-radius: 3px;
  padding: 8px 10px;
  width: 100%;
  font-family: 'Saira Semi Condensed', sans-serif;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out;
}

.agv-estimator input:focus,
.agv-estimator select:focus,
.agv-estimator textarea:focus {
  color: #111;
  border-color: var(--agv-primary);
  outline: none;
}

.agv-estimator textarea {
  min-height: 100px;
  resize: vertical;
}

.agv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Matching Theme Primary Buttons (.vc_btn3-size-md / .largebutton) */
.agv-button {
  display: inline-block;
  background: var(--agv-primary);
  color: #ffffff !important;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  letter-spacing: 1px;
  transition: background 0.2s ease-in-out;
}

.agv-button:hover,
.agv-button:focus {
  background: var(--agv-primary-dark);
  color: #ffffff;
}

/* Secondary Button Styling */
.agv-button--secondary {
  background: #e6e6e6;
  color: #333333 !important;
  border: 1px solid var(--agv-border);
  text-transform: none;
}

.agv-button--secondary:hover {
  background: #ccc;
  color: #000000 !important;
}

.agv-note {
  color: var(--agv-text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.agv-error {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--agv-error);
  border-radius: 3px;
  background: #fdf7f7;
  color: var(--agv-error);
  font-size: 0.95rem;
}

.agv-error.is-visible {
  display: block;
}

.agv-result {
  display: none;
  background: #ffffff;
  border: 2px solid var(--agv-primary);
}

.agv-result.is-visible {
  display: block;
}

.agv-result-list {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.agv-result-list li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--agv-border);
}

.agv-result-list strong {
  color: var(--agv-primary);
}

/* Price Highlight using the theme's Pay-Online accent color (#92d700) */
.agv-price {
  display: inline-block;
  margin: 16px 0;
  padding: 10px 20px;
  background: var(--agv-accent);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 3px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.agv-booking {
  display: none;
  background: var(--agv-bg-light);
}

.agv-booking.is-visible {
  display: block;
}

.agv-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.agv-checkbox input {
  width: auto;
  margin-top: 4px;
}

.agv-form-response {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 3px;
  display: none;
  font-weight: 600;
}

.agv-form-response.success {
  display: block;
  background: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.agv-form-response.error {
  display: block;
  background: #ffebee;
  border: 1px solid #ef5350;
  color: #c62828;
}

/* Responsive adjustments */
@media screen and (max-width: 680px) {
  .agv-grid {
    grid-template-columns: 1fr;
  }

  .agv-actions,
  .agv-button {
    width: 100%;
  }
}