/* Capture Panel Plugin Styles */
.capture-panel-login-form, .capture-panel-forgot-form, .capture-panel-reset-form {
  max-width: 350px;
  margin: 2em auto;
  padding: 2em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  font-family: inherit;
  box-sizing: border-box;
  width: 100%;
}
.capture-panel-login-form label,
.capture-panel-forgot-form label,
.capture-panel-reset-form label {
  display: block;
  margin-bottom: 0.5em;
}
.capture-panel-login-form input,
.capture-panel-forgot-form input,
.capture-panel-reset-form input {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.capture-panel-login-form button,
.capture-panel-forgot-form button,
.capture-panel-reset-form button {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 0.7em 1.5em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}
.capture-panel-login-form button:hover,
.capture-panel-forgot-form button:hover,
.capture-panel-reset-form button:hover {
  background: #005177;
}
.cp-error {
  color: #b32d2e;
  background: #fbeaea;
  padding: 0.5em 1em;
  border-radius: 4px;
  margin-bottom: 1em;
}
.cp-msg {
  color: #0073aa;
  background: #e7f5ff;
  padding: 0.5em 1em;
  border-radius: 4px;
  margin-bottom: 1em;
}
@media (max-width: 500px) {
  .capture-panel-login-form, .capture-panel-forgot-form, .capture-panel-reset-form {
    padding: 1em;
    max-width: 100%;
    margin: 1em 0;
  }
}
.capture-panel-portal h2, .capture-panel-portal h3 {
  margin-top: 1.5em;
}
.capture-panel-file-list {
  list-style: none;
  padding: 0;
}
.capture-panel-file-list li {
  margin-bottom: 0.5em;
}

/* --- Modernized Capture Panel Login Styles --- */
body .capture-panel-login-form, body .capture-panel-forgot-form, body .capture-panel-reset-form {
  max-width: 440px;
  width: 100%;
  margin: 3vh auto;
  padding: 3em 2.5em 2.5em 2.5em;
  background: #fff;
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(153,51,0,0.08), 
    0 8px 24px rgba(198,176,121,0.12),
    0 2px 8px rgba(0,0,0,0.04);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(198,176,121,0.15);
  box-sizing: border-box;
}

body .capture-panel-login-form:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(249,247,243,0.95) 100%);
  border-radius: 24px;
  z-index: -1;
}

body .capture-panel-login-form label,
body .capture-panel-forgot-form label,
body .capture-panel-reset-form label {
  display: block;
  margin-bottom: 0.8em;
  font-weight: 600;
  color: #993300;
  letter-spacing: 0.02em;
  font-size: 0.95em;
  text-transform: uppercase;
}

body .capture-panel-login-form input,
body .capture-panel-forgot-form input,
body .capture-panel-reset-form input {
  width: 100%;
  padding: 1.2em 1.4em;
  margin-bottom: 1.5em;
  border: 2px solid rgba(198,176,121,0.3);
  border-radius: 12px;
  font-size: 1.1em;
  background: rgba(249,247,243,0.6);
  color: #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  font-family: inherit;
}

body .capture-panel-login-form input:focus,
body .capture-panel-forgot-form input:focus,
body .capture-panel-reset-form input:focus {
  border-color: #993300;
  outline: none;
  background: rgba(255,251,230,0.9);
  box-shadow: 
    0 0 0 3px rgba(153,51,0,0.1),
    0 4px 12px rgba(153,51,0,0.08);
  transform: translateY(-1px);
}

body .capture-panel-login-form input::placeholder,
body .capture-panel-forgot-form input::placeholder,
body .capture-panel-reset-form input::placeholder {
  color: rgba(153,51,0,0.5);
  font-style: italic;
}

/* Modern Button Design */
body .capture-panel-login-form button,
body .capture-panel-forgot-form button,
body .capture-panel-reset-form button {
  position: relative;
  background: linear-gradient(135deg, #993300 0%, #C6B079 50%, #993300 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  padding: 1.2em 2.5em;
  border-radius: 16px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 
    0 8px 32px rgba(153,51,0,0.25),
    0 4px 16px rgba(198,176,121,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 0.5em;
  overflow: hidden;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

body .capture-panel-login-form button:before,
body .capture-panel-forgot-form button:before,
body .capture-panel-reset-form button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

body .capture-panel-login-form button:hover,
body .capture-panel-forgot-form button:hover,
body .capture-panel-reset-form button:hover {
  background-position: 100% 100%;
  box-shadow: 
    0 12px 40px rgba(153,51,0,0.35),
    0 6px 20px rgba(198,176,121,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px) scale(1.02);
}

body .capture-panel-login-form button:hover:before,
body .capture-panel-forgot-form button:hover:before,
body .capture-panel-reset-form button:hover:before {
  left: 100%;
}

body .capture-panel-login-form button:active,
body .capture-panel-forgot-form button:active,
body .capture-panel-reset-form button:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s;
}

body .capture-panel-login-form a,
body .capture-panel-forgot-form a,
body .capture-panel-reset-form a {
  color: #993300;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

body .capture-panel-login-form a:hover,
body .capture-panel-forgot-form a:hover,
body .capture-panel-reset-form a:hover {
  color: #C6B079;
  text-decoration: none;
}

body .capture-panel-login-form a:after,
body .capture-panel-forgot-form a:after,
body .capture-panel-reset-form a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #993300, #C6B079);
  transition: width 0.3s ease;
}

body .capture-panel-login-form a:hover:after,
body .capture-panel-forgot-form a:hover:after,
body .capture-panel-reset-form a:hover:after {
  width: 100%;
}

body .cp-error {
  color: #fff;
  background: linear-gradient(135deg, #993300, #b32d2e);
  padding: 1em 1.5em;
  border-radius: 12px;
  margin-bottom: 1.5em;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(153,51,0,0.15);
  border-left: 4px solid rgba(255,255,255,0.3);
}

body .cp-msg {
  color: #fff;
  background: linear-gradient(135deg, #C6B079, #93a058);
  padding: 1em 1.5em;
  border-radius: 12px;
  margin-bottom: 1.5em;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(198,176,121,0.15);
  border-left: 4px solid rgba(255,255,255,0.3);
}

/* Full-width and mobile friendliness */
@media (max-width: 700px) {
  body .capture-panel-login-form, body .capture-panel-forgot-form, body .capture-panel-reset-form {
    max-width: calc(100% - 30px);
    width: calc(100% - 30px);
    padding: 2em 1.5em 2em 1.5em;
    border-radius: 16px;
    margin: 2vh 15px;
  }
  
  body .capture-panel-login-form input,
  body .capture-panel-forgot-form input,
  body .capture-panel-reset-form input {
    padding: 1em 1.2em;
    font-size: 1em;
  }
  
  body .capture-panel-login-form button,
  body .capture-panel-forgot-form button,
  body .capture-panel-reset-form button {
    padding: 1em 2em;
    font-size: 1em;
  }
}

/* Extra mobile safety for containers with padding */
@media (max-width: 500px) {
  body .capture-panel-login-form, body .capture-panel-forgot-form, body .capture-panel-reset-form {
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
    margin: 1vh 10px;
    padding: 1.5em 1em;
  }
}

/* Branded background for login page area */
body .capture-panel-login-form:after {
  content: '';
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -10;
  background: linear-gradient(135deg, #C6B079 0%, rgba(255,255,255,0.9) 50%, #f9f7f3 100%);
  opacity: 0.3;
  pointer-events: none;
}

/* Extra specificity to override Elementor Pro */
body .elementor-widget .capture-panel-login-form,
body .elementor-widget .capture-panel-forgot-form,
body .elementor-widget .capture-panel-reset-form {
  all: unset;
  display: block;
  max-width: 440px;
  width: 100%;
  margin: 3vh auto;
  padding: 3em 2.5em 2.5em 2.5em;
  background: #fff;
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(153,51,0,0.08), 
    0 8px 24px rgba(198,176,121,0.12),
    0 2px 8px rgba(0,0,0,0.04);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(198,176,121,0.15);
  box-sizing: border-box;
}

/* Elementor container responsive fixes */
@media (max-width: 700px) {
  body .elementor-widget .capture-panel-login-form,
  body .elementor-widget .capture-panel-forgot-form,
  body .elementor-widget .capture-panel-reset-form {
    max-width: calc(100% - 30px);
    width: calc(100% - 30px);
    padding: 2em 1.5em;
    margin: 2vh 15px;
  }
}

@media (max-width: 500px) {
  body .elementor-widget .capture-panel-login-form,
  body .elementor-widget .capture-panel-forgot-form,
  body .elementor-widget .capture-panel-reset-form {
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
    padding: 1.5em 1em;
    margin: 1vh 10px;
  }
}

/* Fix for Remember me alignment */
body .cp-form-row label[for="cp_remember"] {
  display: flex !important;
  align-items: center;
  white-space: nowrap;
  gap: 10px;
  margin: 0;
  font-weight: 500;
  font-size: 0.95em;
  text-transform: none;
  letter-spacing: normal;
}

body .cp-form-row input#cp_remember {
  margin: 0;
  min-width: 20px;
  min-height: 20px;
  accent-color: #993300;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Responsive login logo */
body .cp-login-logo-wrap img {
  max-width: 95%;
  max-height: 140px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 8px rgba(153,51,0,0.1));
}

body .cp-login-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 0 0.8em 0;
  background: linear-gradient(135deg, rgba(34,34,34,0.95), rgba(34,34,34,0.9));
  border-radius: 16px 16px 0 0;
  margin: -3em -2.5em 2em -2.5em;
  position: relative;
}

body .cp-login-logo-wrap:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198,176,121,0.5), transparent);
}

@media (max-width: 600px) {
  body .cp-login-logo-wrap img {
    max-width: 90%;
    max-height: 100px;
  }
  body .cp-login-logo-wrap {
    padding: 0.4em 0 0.6em 0;
    margin: -2em -1.5em 1.5em -1.5em;
  }
}

@media (max-width: 500px) {
  body .cp-login-logo-wrap {
    margin: -1.5em -1em 1em -1em;
  }
}

/* Additional modern touches */
body .cp-login-title {
  background: linear-gradient(135deg, #993300, #C6B079);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.8em;
  letter-spacing: 0.02em;
  margin-bottom: 1.5em !important;
  text-align: center;
}

/* Animation for form appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body .capture-panel-login-form {
  animation: fadeInUp 0.6s ease-out;
}

/* Home button under login form */
body .cp-home-btn {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 0.8em 1.5em !important;
  font-size: 0.9em !important;
  margin-top: 0.8em !important;
  text-decoration: none !important;
  color: #993300 !important;
  background: rgba(198,176,121,0.1) !important;
  border: 1.5px solid rgba(198,176,121,0.3) !important;
  border-radius: 10px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body .cp-home-btn:hover {
  background: rgba(198,176,121,0.2) !important;
  border-color: #C6B079 !important;
  color: #993300 !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

body .cp-home-btn:hover,
body .cp-home-btn:focus,
body .cp-home-btn:active {
  text-decoration: none !important;
  outline: none !important;
}

@media (max-width: 700px) {
  body .cp-home-btn {
    padding: 0.7em 1.2em !important;
    font-size: 0.85em !important;
  }
}

/* Centered logout button for client portal */
.cp-logout-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.2em;
  margin-bottom: 1em;
}
.cp-logout-btn-wrap .button {
  min-width: 120px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(153,51,0,0.08);
}
@media (max-width: 600px) {
  .cp-logout-btn-wrap {
    margin-bottom: 1em;
    margin-top: 0.5em;
  }
  .cp-logout-btn-wrap .button {
    width: calc(100% - 40px);
    max-width: 320px;
    font-size: 1.05em;
  }
}

/* --- Modernized Capture Panel Client Portal Styles --- */
body .capture-panel-portal {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(120deg, #fff 60%, #C6B07922 100%);
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 80vh;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
body .elementor-widget .capture-panel-portal {
  all: unset;
  display: block;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 2.5em 0 3em 0 !important;
  background: linear-gradient(120deg, #fff 60%, #C6B07922 100%);
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 80vh;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.capture-panel-portal h2 {
  color: #993300;
  font-size: 2.2em;
  font-weight: 700;
  margin: 0 0 1.2em 0;
  letter-spacing: 0.01em;
  text-align: left;
}
.capture-panel-portal h3 {
  color: #C6B079;
  font-size: 1.3em;
  font-weight: 600;
  margin: 2em 0 1em 0;
  letter-spacing: 0.01em;
  text-align: left;
}
body .capture-panel-portal .button,
body .capture-panel-portal .button-primary,
body .capture-panel-portal .button-secondary {
  background: #993300 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 7px !important;
  font-weight: 600;
  font-size: 1em;
  padding: 0.6em 1.5em !important;
  margin-bottom: 0.5em;
  box-shadow: 0 2px 8px rgba(153,51,0,0.08);
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
body .capture-panel-portal .button-secondary {
  background: #fff !important;
  color: #993300 !important;
  border: 1.5px solid #993300 !important;
}
body .capture-panel-portal .button:hover,
body .capture-panel-portal .button-primary:hover {
  background: #7a2600 !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(153,51,0,0.13);
}
body .capture-panel-portal .button-secondary:hover {
  background: #993300 !important;
  color: #fff !important;
}
.capture-panel-portal form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  align-items: center;
  margin-bottom: 1em;
}
.capture-panel-portal input[type="text"],
.capture-panel-portal select {
  padding: 0.5em 1em;
  border: 1.5px solid #C6B079;
  border-radius: 6px;
  font-size: 1em;
  background: #f9f7f3;
  color: #222;
  margin-right: 0.5em;
  transition: border 0.2s;
  box-sizing: border-box;
}
.capture-panel-portal input[type="text"]:focus,
.capture-panel-portal select:focus {
  border-color: #993300;
  outline: none;
  background: #fffbe6;
}
.capture-panel-portal .capture-panel-file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 1.5em;
}
.capture-panel-portal .capture-panel-file-grid > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #C6B07933;
  padding: 1em 0.5em 0.7em 0.5em;
  width: 140px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  box-sizing: border-box;
}
.capture-panel-portal .capture-panel-file-grid > div:hover {
  box-shadow: 0 6px 24px #99330022;
  transform: translateY(-3px) scale(1.03);
}
.capture-panel-portal .capture-panel-file-grid img,
.capture-panel-portal .capture-panel-file-grid video {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 1px 4px #C6B07944;
  margin-bottom: 0.5em;
}
.capture-panel-portal .capture-panel-file-grid a {
  color: #993300;
  font-size: 0.98em;
  font-weight: 500;
  word-break: break-all;
  text-decoration: none;
  transition: color 0.2s;
}
.capture-panel-portal .capture-panel-file-grid a:hover {
  color: #C6B079;
  text-decoration: underline;
}
.capture-panel-portal .capture-panel-file-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5em;
}
.capture-panel-portal .capture-panel-file-list li {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 4px #C6B07933;
  margin-bottom: 0.7em;
  padding: 0.7em 1em;
  font-size: 1em;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}
.capture-panel-portal .capture-panel-file-list li:hover {
  box-shadow: 0 4px 12px #99330022;
}
.capture-panel-portal .capture-panel-file-list img,
.capture-panel-portal .capture-panel-file-list video {
  max-width: 60px;
  max-height: 60px;
  border-radius: 6px;
  margin-right: 12px;
  box-shadow: 0 1px 4px #C6B07944;
  flex-shrink: 0;
}
.capture-panel-portal .capture-panel-file-list a {
  color: #993300;
  font-weight: 500;
  word-break: break-all;
  text-decoration: none;
  transition: color 0.2s;
}
.capture-panel-portal .capture-panel-file-list a:hover {
  color: #C6B079;
  text-decoration: underline;
}
.capture-panel-portal .capture-panel-file-list span {
  font-size: 2em;
  margin-right: 12px;
  flex-shrink: 0;
}
/* Tab bar styles */
.cp-tab-bar {
  display: flex;
  gap: 0.7em;
  margin-bottom: 2em;
  flex-wrap: wrap;
}
.capture-panel-portal-inner {
  display: block;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  padding-top: 0.5em !important;
}
/* Responsive styles */
@media (max-width: 900px) {
  .capture-panel-portal .capture-panel-file-grid {
    gap: 14px;
  }
  .capture-panel-portal .capture-panel-file-grid > div {
    width: calc(50% - 7px);
    min-width: 120px;
    max-width: 180px;
  }
}
@media (max-width: 600px) {
  body .capture-panel-portal {
    padding: 0 !important;
  }
  body .elementor-widget .capture-panel-portal {
    padding: 1em 0 2em 0 !important;
  }
  .capture-panel-portal-inner {
    padding: 10px !important;
    max-width: calc(100% - 20px);
  }
  .capture-panel-portal h2 {
    font-size: 1.3em;
    margin-bottom: 0.7em;
  }
  .capture-panel-portal h3 {
    font-size: 1.1em;
    margin: 1.2em 0 0.7em 0;
  }
  .capture-panel-portal .capture-panel-file-grid {
    gap: 8px;
  }
  .capture-panel-portal .capture-panel-file-grid > div {
    width: calc(100% - 16px);
    min-width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    padding: 0.7em 0.2em 0.5em 0.2em;
  }
  .capture-panel-portal .capture-panel-file-grid img,
  .capture-panel-portal .capture-panel-file-grid video {
    width: calc(100% - 20px);
    height: auto;
    max-width: 320px;
    max-height: 320px;
  }
  .capture-panel-portal .capture-panel-file-list li {
    font-size: 0.98em;
    padding: 0.5em;
  }
  .cp-tab-bar {
    gap: 0.3em;
  }
  .cp-tab-bar .button {
    font-size: 0.9em;
    padding: 0.5em 1em !important;
  }
}
@media (max-width: 1700px) {
  .capture-panel-portal-inner {
    max-width: calc(100% - 40px);
    padding: 10px 20px;
  }
} 