/* UAESA Financial Year Change — additive styling over uaesa-cipc-ar.css */

/* Use the exact CIPC Material design tokens on this Gravity Forms field scope. */
.gfield_type_uaesa_financial_year_change {
  --md-primary: #00A5A7;
  --md-on-primary: #FFFFFF;
  --md-primary-container: #6FF6FE;
  --md-on-primary-container: #002022;
  --md-secondary: #4A6365;
  --md-on-secondary: #FFFFFF;
  --md-secondary-container: #CCE8E9;
  --md-on-secondary-container: #051F21;
  --md-error: #BA1A1A;
  --md-on-error: #FFFFFF;
  --md-error-container: #FFDAD6;
  --md-on-error-container: #410002;
  --md-success: #2E7D32;
  --md-success-container: #DCFCE7;
  --md-on-success-container: #052E16;
  --md-warning: #8C5000;
  --md-warning-container: #FFDDB3;
  --md-on-warning-container: #2E1500;
  --md-surface: #F4FBFB;
  --md-on-surface: #161D1D;
  --md-surface-variant: #DAE4E4;
  --md-on-surface-variant: #3F4849;
  --md-surface-container-lowest: #FFFFFF;
  --md-surface-container-low: #EEF5F5;
  --md-surface-container: #E9EFEF;
  --md-surface-container-high: #E3E9E9;
  --md-surface-container-highest: #DDE4E4;
  --md-outline: #6F7979;
  --md-outline-variant: #BEC8C8;
  --md-inverse-surface: #2B3232;
  --md-inverse-on-surface: #ECF2F2;
  --md-scrim-bg: rgba(0, 0, 0, .42);
  --md-elev-1: 0 1px 2px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .06);
  --md-elev-2: 0 1px 2px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .08);
  --md-elev-3: 0 4px 8px rgba(0, 0, 0, .10), 0 1px 3px rgba(0, 0, 0, .06);
  --md-elev-5: 0 12px 24px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .08);
  --md-shape-xs: 4px;
  --md-shape-sm: 8px;
  --md-shape-md: 12px;
  --md-shape-lg: 16px;
  --md-shape-xl: 28px;
  --md-shape-full: 9999px;
}
.uaesa-fy-wizard{--uaesa-fy-gap:16px;max-width:100%;position:relative;margin-top:8px}
.uaesa-fy-enterprise-message{margin:10px 0 16px;padding:10px 13px;border-radius:12px;background:rgba(93,105,120,.08);font-size:13px;color:inherit}
.uaesa-fy-form-field{min-width:0;margin-bottom:14px}
.uaesa-fy-form-field em{color:#c62828;font-style:normal}
.uaesa-fy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.uaesa-fy-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:8px 0 14px;font-size:12px;opacity:.75}
.uaesa-fy-help{font-size:13px;line-height:1.6;opacity:.78;margin:0 0 14px}
.uaesa-fy-alert{margin:13px 0;padding:12px 14px;border-radius:12px;background:rgba(80,120,160,.09);font-size:13px;line-height:1.55}
.uaesa-fy-alert--success{background:rgba(34,139,90,.10);border:1px solid rgba(34,139,90,.22)}
.uaesa-fy-alert--info{border:1px solid rgba(100,130,160,.18)}
.uaesa-fy-alert--error{background:rgba(190,50,50,.09);border:1px solid rgba(190,50,50,.2)}
.uaesa-fy-date-result{margin:10px 0}
.uaesa-fy-check{display:flex;align-items:flex-start;gap:10px;margin:15px 0;padding:13px;border:1px solid rgba(120,130,145,.28);border-radius:12px;font-size:13px;line-height:1.5;cursor:pointer}
.uaesa-fy-check input{margin-top:3px;flex:0 0 auto}
.uaesa-fy-upload{display:block;padding:16px;border:1px dashed rgba(110,125,145,.65);border-radius:14px;margin:12px 0}
.uaesa-fy-upload span{display:block;font-weight:650;font-size:13px;margin-bottom:10px}
.uaesa-fy-upload input{max-width:100%;font-size:13px}
.uaesa-fy-upload small{display:block;margin-top:8px;opacity:.68}
.uaesa-fy-upload-status{font-size:12px;padding:8px 0;min-height:28px}
.uaesa-fy-download{display:inline-flex;align-items:center;text-decoration:none!important}
.uaesa-fy-actions{min-width:0}
.uaesa-fy-actions .md-btn{cursor:pointer}
.uaesa-fy-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.uaesa-fy-review-cell{padding:12px;border:1px solid rgba(120,130,145,.22);border-radius:11px;min-width:0}
.uaesa-fy-review-cell small{display:block;font-size:11px;opacity:.68;margin-bottom:5px}
.uaesa-fy-review-cell strong{display:block;font-size:13px;overflow-wrap:anywhere}
.uaesa-fy-notice{display:none;margin:10px 0;padding:12px 14px;border-radius:10px;background:rgba(190,50,50,.1);color:inherit;font-size:13px;border:1px solid rgba(190,50,50,.22)}
@media(max-width:640px){.uaesa-fy-grid,.uaesa-fy-review-grid{grid-template-columns:1fr}}

/* Dropdown and stepper visuals intentionally inherit the unmodified CIPC Annual Return components. */


/* v1.0.8: keep the new wizard's card and controls aligned with the CIPC AR markup
   while containing theme/Gravity Forms overrides to this module only. */
.uaesa-fy-wizard,
.uaesa-fy-wizard * { box-sizing: border-box; }
.uaesa-fy-wizard { width: 100%; min-width: 0; color: var(--md-on-surface, #161D1D); }
.uaesa-fy-wizard .uaesa-fy-card { width: 100%; min-width: 0; overflow: visible; }
.uaesa-fy-wizard .md-card-header { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.uaesa-fy-wizard .md-card-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.uaesa-fy-wizard .uaesa-fy-card-heading { flex: 1 1 auto; min-width: 0; }
.uaesa-fy-wizard .md-card-title { display: block; margin: 0 0 2px; line-height: 1.35; }
.uaesa-fy-wizard .md-card-sub { display: block; margin: 0; line-height: 1.45; white-space: normal; }
.uaesa-fy-wizard .md-field { display: block; width: 100%; min-width: 0; margin: 0 0 14px; }
.uaesa-fy-wizard .md-field label { position: static; display: block; transform: none; margin: 0 0 5px; padding: 0; background: transparent; pointer-events: auto; }
.uaesa-fy-wizard .md-input { display: block; width: 100%; max-width: 100%; min-width: 0; }
.uaesa-fy-wizard .m3-step-panel { width: 100%; min-width: 0; }
.uaesa-fy-wizard .m3-step-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.uaesa-fy-wizard .m3-step-footer .md-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; cursor: pointer; pointer-events: auto; }
/* Enterprise dropdown sits before the wizard, following CIPC's field DOM.
   Choice dropdowns inside the wizard keep the same menu surface and stacking. */
.uaesa-fy-field-shell .uaesa-fy-enterprise-picker { position: relative; z-index: 100000; }
.uaesa-fy-field-shell .uaesa-fy-dropdown { position: relative; z-index: 30; }
.uaesa-fy-field-shell .uaesa-fy-enterprise-field { z-index: 100000; }
.uaesa-fy-field-shell .uaesa-fy-dropdown .md-menu { z-index: 99999; pointer-events: auto; }
.uaesa-fy-field-shell .uaesa-fy-dropdown .md-menu.open { display: block; }
.uaesa-fy-field-shell .uaesa-fy-enterprise-message { position: relative; z-index: 1; }
@media (max-width: 600px) {
  .uaesa-fy-wizard .md-card-header { gap: 10px; }
  .uaesa-fy-wizard .m3-step-footer { flex-direction: column-reverse; align-items: stretch; }
  .uaesa-fy-wizard .m3-step-footer .md-btn { width: 100%; }
}


/* v1.1.0 — final FYE layer is intentionally loaded after the late CIPC stylesheet. */
/* Preserve the shared CIPC field and button typography rather than imposing a theme-specific font. */
.uaesa-fy-wizard .md-card-title,
.uaesa-fy-wizard .md-card-sub,
.uaesa-fy-wizard .md-field,
.uaesa-fy-wizard .md-input,
.uaesa-fy-wizard .md-btn { font-family: inherit; }
/* Keep field cards and panels from being constrained by Gravity Forms column defaults. */
.uaesa-fy-field-container,
.uaesa-fy-field-shell,
.uaesa-fy-wizard,
.uaesa-fy-wizard .m3-step-panel,
.uaesa-fy-wizard .uaesa-fy-card { min-width: 0; max-width: 100%; }
.uaesa-fy-wizard .uaesa-fy-card { box-sizing: border-box; }

/* v1.1.1: outer shell follows the CIPC field wrapper; wizard remains a sibling after the enterprise selector. */
.uaesa-fy-field-shell { width: 100%; min-width: 0; }
.uaesa-fy-field-shell .uaesa-fy-enterprise-picker { margin-bottom: 8px; }
.uaesa-fy-field-shell .uaesa-fy-wizard[style*="display:none"] { display: none !important; }
