@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');

/* =============================================================================
  TOKENS
============================================================================= */
:root{
  --white: #f9f9f9;
  --black: #000;
  --blue: #263c8b;
  --gray: #85888C;
  --orange1: #d64414;
  --orange2: #f57a09;

  /* Modern tokens (keep old palette compatible) */
  --surface: #fff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #6b7280;

  --border: rgba(0,0,0,.14);
  --border-strong: rgba(0,0,0,.22);

  --shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,
            rgba(0, 0, 0, 0.30) 0px 8px 16px -8px;

  --ring: rgba(38,60,139,.24);
  --ok: #16a34a;
  --err: #dc2626;
}

/* =============================================================================
  BASE
============================================================================= */
html{
  color-scheme: light;
}

body{
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--surface);
  color: var(--text);
}

/* JS is enabled */
html.js .flash-stack { display: block; }

/* Toasts were actually displayed, so hide the HTML fallback */
html.js-toasts .flash-stack { display: none; }

/* Password info box toggle */
html.js .password-info { display:none; }
html.js .password-info.is-open { display:block; }

/* Links */
a{
  color: var(--gray);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .08s ease;
}

a:visited{
  color: var(--muted);
}

a:hover{
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible{
  outline: none;
  border-radius: 6px;
}

/* Horizontal rule */
hr{
  clear: both;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Utility */
.hide{ display:none; }
.show{ display:block; }
.clearfix::after{
  content: "";
  display: table;
  clear: both;
}

/* =============================================================================
  BUTTONS
============================================================================= */

/* =============================================================================
  FLASH MESSAGES
============================================================================= */

.flash-stack {
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

.flash {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
}

.flash-text {
  white-space: pre-line;
}

.flash-heading {
  font-weight: 600;
  margin-bottom: 4px;
}

.flash-success { background: #e9f7ef; border-color: #b7e1c5; }
.flash-info    { background: #e8f1ff; border-color: #b8d2ff; }
.flash-warning { background: #fff4e5; border-color: #ffd199; }
.flash-error   { background: #fdecea; border-color: #f5b5ae; }

/* =============================================================================
  TOASTS (using jQuery Toast Plugin)
============================================================================= */
.jq-toast-single.toast-success { background-color: #C3F3D7 !important; color: #1f5f3a !important; }
.jq-toast-single.toast-info    { background-color: #e7f3ff !important; color: #1b4d78 !important; }
.jq-toast-single.toast-warning { background-color: #fff2c6 !important; color: #6a4a00 !important; }
.jq-toast-single.toast-error   { background-color: #ffd6d6 !important; color: #7a1f1f !important; }

/* =============================================================================
  LAYOUT WRAPPER
============================================================================= */
.container{
  position: relative;
  max-width: 1300px;
  margin: 20px auto;
  padding: 10px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 1;
}

/* =============================================================================
  HEADER
============================================================================= */

/* =============================================================================
  NAVIGATION
============================================================================= */

/* =============================================================================
  ALERTS
============================================================================= */
.alert{
  clear: both;
  min-height: 55px;
}

.alert p{
  margin-bottom: 0;
}

.password-info { display: none; }
.password-info.is-open { display: block; }

.is-hidden { display: none !important; }

/* =============================================================================
  MAIN CONTENT
============================================================================= */
main .title-page{
  text-align: center;
}
main .title-page h1{
  margin: 0;
  font-size: 2em;
  text-transform: uppercase;
}
main .title-page h2{
  margin: 0;
  font-size: 1.2em;
  font-weight: normal;
  color: var(--muted);
}

/* =============================================================================
  TABS
============================================================================= */

.tabs {
  margin-top: 1rem;
}

.tabs .tabs-panel{
    max-width: 25rem;
    margin: 0 auto;
}

.tabs-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,.12);
  margin-bottom: 1rem;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: .75rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  opacity: .8;
}

.tab.is-active {
  opacity: 1;
  border-bottom-color: currentColor;
  font-weight: 600;
}

.tabs-panel {
  display: none;
}

.tabs-panel.is-active {
  display: block;
}

/* =============================================================================
  PROFILE TABS WIDTH (centered, 40em)
============================================================================= */

/* IMPORTANT: inside tabs, let profile forms be 100% (no extra max-width/margins) */
.tabs[data-tabs] form.profile{
  max-width: none;
}

/* Keep spacing between stacked forms */
.tabs[data-tabs] .card form.profile + form.profile{
  margin-top: 1rem;
}

/* Responsive padding */
@media (max-width: 42em){
  .tabs[data-tabs]{
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* =============================================================================
  FORMS (generic)
============================================================================= */
input,
textarea,
select{
  font: inherit;
}

input[type="text"].input-invalid,
input[type="email"].input-invalid,
input[type="password"].input-invalid,
textarea.input-invalid{
  border: 1px solid var(--err) !important;
}

input[type="checkbox"].input-invalid{
  box-shadow: 0 0 0 1px rgba(255,0,0,1);
}

div.input-block label {
	position: absolute;
	top: -16px;
	left: 10px;
	color: grey;
	font-size: 0.8rem;
	transition: all 0.2s;
	transform-origin: 0% 0%;
	background: none;
	pointer-events: none;
}
div.input-block input::placeholder {
	color: var(--muted);
}
div.input-block input:valid + label,
div.input-block input:focus + label {
	transform: scale(0.8) translateY(-30px);
	background: var(--white);
}
div.input-block label.on {
	transition: all .3s ease-in-out;
	float: right;
}
div.info-link {
  font-size: 0.9rem;
}
div.info-link a {
  float: right;
}

/* =============================================================================
  RADIO PILL OPTIONS (STYLE YOUR RADIO INPUTS AS PILL BUTTONS)
============================================================================= */
.radio-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .6rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}

.radio-pill input {
  margin: 0;
}

.card {
  --bs-card-border-width: 0;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--border);
}

.field-with-pill {
  position: relative;
  display: block;
  overflow: visible; /* IMPORTANT: prevents tooltip clipping */
}

.field-input {
  width: 100%;
  padding-right: 44px; /* room for the pill */
}

.field-pill {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);

  width: 26px;
  height: 26px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.04);
  color: rgba(0,0,0,.75);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: default;
  padding: 0;
}

.field-pill:focus {
  outline: 2px solid rgba(0,0,0,.18);
  outline-offset: 2px;
}

/* =============================================================================
  BADGES
============================================================================= */

.badge-tip {
  overflow: visible; /* safety */
}

.badge-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(360px, calc(100vw - 24px));

  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: rgba(0,0,0,.86);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);

  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 9999;
  white-space: normal;
}

.badge-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.14);
  border-top: 1px solid rgba(0,0,0,.14);
  transform: translateX(-50%) rotate(45deg);

  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
  z-index: 10000;
}

.badge-tip:hover::after,
.badge-tip:hover::before,
.badge-tip:focus::after,
.badge-tip:focus::before,
.badge-tip:focus-visible::after,
.badge-tip:focus-visible::before {
  opacity: 1;
}

.badge-tip:hover::after,
.badge-tip:focus::after,
.badge-tip:focus-visible::after {
  transform: translateX(-50%) translateY(-2px);
}

.help {
  display: block;
  margin-top: 6px;
  opacity: .8;
  font-size: 12px;
}

/* =============================================================================
  HONEYPOT FIELD (for bots)
============================================================================= */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}





/* =============================================================================
  CONTENT / VIEW SWITCHER
============================================================================= */
.view-buttons{
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.view-buttons i{
  font-size: 1.5em;
  cursor: pointer;
}

.content{
  margin-top: 20px;
}

/* Your view modes can stay driven by JS/classes. */
.content.column-view > ul,
.content.list-view > ul{
  width: 100%;
  margin-bottom: 20px;
}

.content.grid-view > ul{
  width: calc(66.66% - 20px);
  margin-right: 20px;
  margin-bottom: 20px;
}

/* =============================================================================
  MISC
============================================================================= */
figure{
  position: relative;
  float: left;
  margin: 1.5em;
}

.cke_textarea_inline{
  border: 1px dashed grey;
}

.img-thumbnail{
  width: 100px;
  height: 100px;
}

.stick{
  width: 219px;
  height: 210px;
  padding: 10px;
  text-align: center;
  box-sizing: content-box;
  background: transparent url(img/note_stick_bg.png) top left no-repeat;
}

a.forgot-link{
  float: right;
}

/* =============================================================================
  SORT TAGS
============================================================================= */
.sort{
  float: right;
  text-align: right;
}

.sort-tag{
  display: inline-block;
  margin: 0;
}

.sort-tag input{
  display: none;
}

.sort-tag label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  line-height: 22px;
  font-size: 14px;
  padding: 0 8px;
  background-color: #c0bfbe;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  user-select: none;
}

.sort-tag.on label{
  background-color: #ff6f2a;
}

.sort-tag i{
  margin-top: 1px;
}

/* =============================================================================
  IMAGE FIELD PREVIEW
============================================================================= */
.preview input[type="file"]{
  display: none;
}

.preview img{
  cursor: pointer;
}

/* =============================================================================
  HEADER (match your template: .logo + .top + .user)
============================================================================= */
.container > header{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.22);
}

/* Logo block */
/*header .logo{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 125px;
}*/

header .logo a.logo{
  display: inline-flex;
  align-items: center;
}

header .logo img{
  display: block;
  max-height: 54px;
  width: auto;
}

/* Middle block */
header .top{
  flex: 1;
  min-width: 0;
}

header .top > h1{
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 18px;
  text-transform: uppercase;
}

/* Right block */
header .user{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Profile (avatar + dropdown) */
header .profile{
  position: absolute;
  top: 0;
  right: 0;
}

header .profile .user-img{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: block;
  object-fit: cover;
  transition: box-shadow .15s ease, transform .08s ease;
}

header .profile .user-img:hover{
  box-shadow: 0 0 0 3px rgba(38,60,139,.18);
}

header .profile .user-img:active{
  transform: translateY(1px);
}

/* Dropdown */
header .profile-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 999;
  display: none;

  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;

  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16);
}

header .profile-menu.open{
  display: block;
}

/* Allow keyboard open if something inside is focusable (nice bonus) */
header .profile:focus-within .profile-menu{
  display: block;
}

header .profile-menu::before{
	content: "";
	position: absolute;
	top: -7px;
	right: 10px;
	display: inline-block;
	border-right: 7px solid transparent;
	border-bottom: 7px solid rgba(152, 166, 173, 0.15);
	border-left: 7px solid transparent;
}

header .profile-menu h5{
  margin: 0;
  padding: 10px 12px;
  background-color: #f3f4f6;
  text-align: center;
  font-size: 1em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

header .profile-menu > li{
  list-style: none;
}

header .profile-menu > li > a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

header .profile-menu > li > a i{
  width: 18px;
  text-align: center;
  color: #6b7280;
}

header .profile-menu > li > a:hover{
  background: rgba(0,0,0,.06);
  color: #111827;
  text-decoration: none;
}

header .profile-menu > li > a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
  border-radius: 8px;
  margin: 0 6px;
}

.logout-form { display: inline; }
.logout-form .btn-logout {
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  color: #b91c1c;
  font: inherit;
  cursor: pointer;
  font-size: 0.9em;
  display: flex;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
/* Special links */
.logout-form:hover{
  background: rgba(0,0,0,.06);
  color: #111827;
}

header .profile-menu a.btn-admin {
  color: #111827;
}

/* Icons */
header .icons{
	position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

header .icons a{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #444;
  text-decoration: none;
}

header .icons a:hover{
  background: rgba(0,0,0,.06);
  color: #111827;
  text-decoration: none;
}

header .icons a:active{
  transform: translateY(1px);
}

/* Cart badge */
header .item-count{
  /* show by default; hide with :empty */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  border-radius: 999px;
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

header .item-count:empty{
  display: none;
}

/* =============================================================================
  MAIN
============================================================================= */
main{
  position: relative;
  margin-bottom: 10px;
}

/* =============================================================================
  AUTH FORMS (login/register/profile/contact/forgot/reset)
============================================================================= */
.login-form{
  max-width: 30em;
  margin: 0 auto;
}

.form-register{
  max-width: 25em;
  margin: 0 auto;
}

/* Core form widths */
form.contact,
form.profile{
  position: relative;
  max-width: 40rem;
  /*margin: 20px auto;  */
}

form.register{
  max-width: 30rem;
  margin: 20px auto;
}

form.sign-in,
form.forgot,
form.reset{
  max-width: 20rem;
  margin: 20px auto;
}

/* Inputs */
form.contact textarea,
form.contact input,
form.sign-in input:not([type="checkbox"]),
form.register input,
form.profile input:not([type="radio"]),
form.forgot input,
form.reset input{
  border-radius: 8px;
  width: 100%;
  height: 40px;
  padding: 10px;
  font-size: 1em;
  outline: none;
  border: 1px solid #aaa;
  transition: border-color .15s ease, box-shadow .15s ease;
}

form.contact textarea{
  height: auto;
  min-height: 180px;
  resize: vertical;
  line-height: 1.3;
}

form.contact input:focus,
form.contact textarea:focus,
form.sign-in input:focus,
form.register input:focus,
form.profile input:focus,
form.forgot input:focus,
form.reset input:focus{
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--ring);
}

form.sign-in input[type="checkbox"],
form.register input[type="checkbox"]{
  width: auto;
  height: auto;
}

/* Submit buttons */
form.sign-in button.submit,
form.forgot button.submit,
form.reset button.submit,
form.profile button.submit,
form.contact button.submit,
form.register button.submit{
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 100%;
  height: 40px;
  margin: 5px 0 0;
  padding: 10px;
  font-size: 1em;
  outline: none;
  cursor: pointer;
}

form.reset button.submit,
form.profile button.submit,
form.contact button.submit,
form.register button.submit{
  background-color: #68c75a;
}

form.forgot button.submit,
form.sign-in button.submit{
  background-color: #f77b94;
}

/* Field blocks */
form.sign-in .input-block,
form.forgot .input-block,
form.reset .input-block,
form.contact .input-block,
form.profile .input-block,
form.register .input-block{
  position: relative;
  margin: 20px 0;
}

/* Contact counter */
#message-contact-char{
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: .8em;
  color: #555;
}

/* Password helper */
i.toggle-password{
  position: absolute;
  right: 12px;
  top: 12px;
  color: grey;
  cursor: pointer;
}

.password-info{
  position: absolute;
  bottom: -160px;
  right: 0;
  width: auto;
  padding: 15px;
  background: #fff;
  font-size: .83em;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  border: 1px solid #ddd;
  display: none;
  z-index: 1;
}

.password-info ul{
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.password-info::before{
  content: "\25B2";
  position: absolute;
  top: -12px;
  left: 45%;
  font-size: 14px;
  line-height: 14px;
  color: #ddd;
}

.invalid{
  background: url(img/pass-invalid.png) no-repeat 0 50%;
  padding-left: 22px;
  line-height: 24px;
  color: #ec3f41;
}

.valid{
  background: url(img/pass-valid.png) no-repeat 0 50%;
  padding-left: 22px;
  line-height: 24px;
  color: #3a7d34;
}

.captcha{
  position: relative;
}
.captcha-reload{
  cursor: pointer;
  position: absolute;
  bottom: 10px;
  right: 12px;
}

/* =============================================================================
  CART
============================================================================= */
#cart .table{
  border: 1px solid #ccc;
  width: 80%;
  margin: auto;
  font-size: 14px;
}

#cart .table th,
#cart .table td{
  padding: 10px;
  vertical-align: middle;
  border-bottom: 1px solid #ccc;
}

#cart .table tr.head{
  text-transform: uppercase;
}

#cart .table tr.total{
  font-weight: bold;
}

#cart .btn-remove{
  background: none;
  border: none;
  color: grey;
  cursor: pointer;
  padding: 0;
}

#cart .btn-remove:hover{ color: #444; }

#cart .btn-empty{
  color: grey;
  cursor: pointer;
}

#cart .btn-empty:hover{ color: #444; }

#cart .empty{
  text-align: center;
}

#cart .empty h3{
  margin-top: 10px;
  font-size: 2em;
  text-transform: uppercase;
  color: #ccc;
}

#paypal-button-container{
  width: 50%;
  margin: 10px auto;
}

/* =============================================================================
  SHOP (audio)
============================================================================= */
#shop ul{ padding-left: 0; }

#shop li.category{
  position: relative;
  text-align: center;
  list-style: none;
}

#shop li.category a{
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

#shop li.category h3{
  line-height: 1.2;
  font: normal 1rem 'Fjalla One', sans-serif;
}

#shop li.category img{
  border-radius: 5px;
  box-shadow: 5px 5px 20px 0px rgb(104 104 104 / 75%);
}

#shop li.audio{
  width: 159px;
  padding: 4px;
  text-align: center;
  list-style: none;
}

#shop li.audio .price{ font-weight: 700; }

#shop li.audio i{
  color: gray;
  cursor: pointer;
}

#shop li.audio i:hover{ color: black; }

#shop #category{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding-left: 0;
}

#cat_parent{
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* =============================================================================
  ABOUT
============================================================================= */
#about{
  line-height: 1.5;
}

/* =============================================================================
  CONTACT PAGE (based on your contact.tpl)
  <form class="contact" id="form-contact">
  .input-block > label + input/textarea + #message-contact-char
  .captcha block + .button-submit (with .loader)
============================================================================= */

:root{
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(0,0,0,.14);
  --border-strong: rgba(0,0,0,.22);
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --ring: rgba(38,60,139,.24); /* uses your --blue vibe */
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #dc2626;
}

/* Explain text */
#contact p {
  max-width: 70ch;
  margin: 0 auto 16px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

/* Alerts */
#contact .alert {
  max-width: 720px;
  margin: 10px auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}

#contact .alert.alert-success { border-color: rgba(22,163,74,.30); background: rgba(22,163,74,.08); }
#contact .alert.alert-warning { border-color: rgba(245,158,11,.30); background: rgba(245,158,11,.10); }
#contact .alert.alert-danger,
#contact .alert.alert-error   { border-color: rgba(220,38,38,.30); background: rgba(220,38,38,.08); }

/* Form card */
#contact form.contact {
  max-width: 720px;
  margin: 18px auto 30px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* Field blocks */
#contact form.contact .input-block {
  position: relative;
  margin: 20px 0;
}

/* Labels (you currently hide some labels globally with di/splay hack in your CSS)
   Here we force them visible inside contact form for accessibility. */


/* Inputs / textarea */
#contact form.contact input[type="text"],
#contact form.contact input[type="email"],
#contact form.contact textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  font-size: 1rem;
  line-height: 1.35;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

#contact form.contact textarea {
  min-height: 180px;
  resize: vertical;
}

/* Placeholder */
#contact form.contact input::placeholder,
#contact form.contact textarea::placeholder {
  color: #9ca3af;
}

/* Focus */
#contact form.contact input:focus,
#contact form.contact textarea:focus {
  border-color: var(--border-strong);
}

/* Keyboard focus only */
#contact form.contact input:focus-visible,
#contact form.contact textarea:focus-visible,
#contact form.contact button:focus-visible,
#contact form.contact input[type="submit"]:focus-visible {
  outline: none;
}

/* Invalid state (works with your existing .input-invalid or .check-invalid logic) */
#contact form.contact .input-invalid,
#contact form.contact input.input-invalid,
#contact form.contact textarea.input-invalid {
  border-color: rgba(220,38,38,.55) !important;
}

/* Message counter */
#message-contact-char {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  font-size: .85rem;
  color: var(--muted);
}

/* Your JS changes parent color; ensure it doesn’t wreck layout */
#contact form.contact .input-block {
  color: inherit;
}

/* CAPTCHA block: clean grid */
#contact form.contact .captcha {
  margin: 16px 0 6px;
  padding: 12px;
  border: 1px dashed rgba(0,0,0,.20);
  border-radius: 12px;
  background: #fff;
}

#contact form.contact .captcha > label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--muted);
  font-size: .95rem;
}

#contact form.contact .captcha img {
  vertical-align: middle;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

#contact form.contact .captcha img#captcha {
  height: 44px;
  width: auto;
  margin-right: 8px;
}

#contact form.contact .captcha img[alt="captcha"][width="20"] {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
  transition: background-color .15s ease;
}

#contact form.contact .captcha img[alt="captcha"][width="20"]:hover {
  background: rgba(0,0,0,.06);
}

#contact form.contact .captcha input[type="text"] {
  margin-top: 10px;
  max-width: 260px;
}

/* Submit area */
#contact form.contact .button-submit {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Submit button (you use input.submit) */
#contact form.contact input.submit {
  appearance: none;
  border: 0 !important;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #68c75a; /* keep your green */
  color: #fff;
  transition: filter .15s ease, transform .08s ease;
}

#contact form.contact input.submit:hover {
  filter: brightness(0.95);
}

#contact form.contact input.submit:active {
  transform: translateY(1px);
}

/* Loader alignment */
#contact form.contact .loader {
  position: static;
  margin: 0;
}

/* Small screens */
@media (max-width: 640px) {
  #contact form.contact {
    padding: 14px;
    border-radius: 12px;
  }

  #contact form.contact .button-submit {
    flex-direction: column;
    align-items: stretch;
  }

  #contact form.contact input.submit {
    width: 100%;
  }

  #contact form.contact .captcha input[type="text"] {
    max-width: 100%;
  }
}

/* =============================================================================
  FOOTER + COOKIE CONSENT + BACK TO TOP
  Bootstrap considered as reset/helpers only.
============================================================================= */

:root{
  --surface: #fff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(0,0,0,.14);
  --shadow: 0 10px 30px rgba(0,0,0,.12);
  --ring: rgba(38,60,139,.24);
}

/* =============================================================================
  FOOTER
============================================================================= */
footer{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding-top: 20px;
  text-align: center;
  line-height: 1.5;
  color: #444;
}

footer > p{
  font-size: .75em;
  margin-bottom: 0;
}

footer > p.stats{
  margin-bottom: 1rem;
}

footer > p.copyright{
  margin-bottom: 1rem;
}

footer > p img{
  vertical-align: bottom;
}

footer .flag{
  position: absolute;
  bottom: 0;
  width: 30px;
  height: 20px;
}

footer .flag.fr{
  background: transparent url(img/flag-fr.png) no-repeat center;
  left: 0;
}

footer .flag.en{
  background: transparent url(img/flag-en.png) no-repeat center;
  right: 0;
}

footer .legal a{
  text-decoration: underline;
}

/* =============================================================================
  TERMS / LEGAL / COOKIE
============================================================================= */
#terms_sales,
#terms_use,
#legal_notice,
#privacy_policy,
#cookies{
  text-align: justify;
  line-height: 1.2;
  font-size: 0.8em;
}

/* Cookie consent */
#cookie-consent{
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 0 8px 30px;
  text-align: left;
  font: normal 14px 'Trebuchet MS', Helvetica, sans-serif;
  line-height: 26px;
  color: #CCC;
  background-color: rgba(20,20,20,0.8);
  z-index: 9999;
}

#cookie-consent {
  display: flex;
  align-items: center;
  gap: 12px;
}

#close-cookie-consent {
  margin-left: auto;
  width: 20px;
  height: 20px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
  text-align: center;
  border-radius: 3px;
}

#close-cookie-consent:hover {
  color: #fff;
}

#cookie-consent a.cookie-consent-ok {
  margin-left: 10px;
  padding: 6px 20px;
  color: #000;
  background-color: #F1D600;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

#cookie-consent a.cookie-consent-ok:hover {
  background-color: #e6cb00;
}

/* =============================================================================
  BACK TO TOP
============================================================================= */
#back-top{
  display: none;
  text-align: center;
  position: fixed;
  cursor: pointer;
  right: 10px;
  bottom: 10px;
  transition: background-color .3s;
  z-index: 1000;
}

#back-top a{
  display: inline-block;
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 1.25rem;
  line-height: 45px;
  text-decoration: none;
}

#back-top a:hover{
  background-color: rgba(0, 0, 0, 0.5);
}

/* =============================================================================
  REDUCED MOTION
============================================================================= */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
