
/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    margin-top:2rem;
    display: flex
}
.notification{
  display:flex;
  flex-direction: column;
  gap: 2rem;
  width:100%
}
.notification .actions{
    display: flex;
    height: fit-content;
    margin-top: 3rem;
}
.footer-content{
    padding-inline: 1.5rem;
    padding-block:0.75rem;
}

/* Header */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0;
    text-align: center;
    position:relative;
}

header .logo {
    max-height: 120px;
    margin-bottom: 0.5rem;
}
header button#header-back {
    position: absolute;
    left: 2rem;
    top: 40%;
    background: none;
    border: none;
}
/* Main */
main {
    flex: 1;
    background: #ffffff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

h1, h2 {
    color: #1d3c6e;
}
h1, h2 {
  font-family: 'Inter';
  font-weight: 700;
}
p {
  font-weight: 400;
}
/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    height:100%
}

form label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

form input, form button {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width:100%;
    min-height: 50px;
}

form button, #btn-pagar {
    background-color: #1d3c6e;
    color: white;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 50px
}

form button:hover, #btn-pagar:hover {
    background-color: #17417d;
}
button#info-boletin{
    color: #1d3c6e;
    border: solid 1px #1d3c6e !important;
    background: transparent;
}
.form-group small {
    display: block;
    margin-top: 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
}
.form-group label .required{
  color:#FF3300;
  transform:scale(1.3);
  margin-left:0.2rem;
}
.container ul {
    list-style: none;
}
.step .actions{
  display:flex;
  flex-direction: column;
  gap:1rem;
  order:3;
  height: 100%;
  justify-content: space-between;
}
@media screen and (min-width:768px){
  .step .actions{
    justify-content: flex-start;
  }
}
div#bonificado-message-step2, div#bonificado-message{
    padding: 1rem;
    background: #0972c52b;
    order: 3;
    margin-bottom: 1rem;
    color: #0972c5 !important;
    border-radius: 8px;
}

/* Layout for checkout steps: visible step uses flex to better control spacing */
.step {
  display: flex; /* JS will set visible step to display:flex; this provides defaults */
  flex-direction: column;
  gap: 1rem;
  width:100%;
}
.actions .btn {
    font-family: 'Inter', system-ui, sans-serif;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    border: none;
    min-height: 50px
}
a#recurrir-link, a#pago-multa-inicio {
    text-align: center;
    color: #1e3c6f;
    text-decoration: none;
    border: solid 1px;
    line-height: 1.5;
}
/* Footer */
footer {
    background-color: #333;
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  @media (min-width: 768px) {
    .grid {
      flex-direction: row;
      justify-content: space-between;
    }
  
    .payment-form {
      flex: 2;
      padding-right: 2rem;
    }
  
    .payment-summary {
      flex: 1;
      padding: 1rem;
      background: #f1f1f1;
      border-radius: 8px;
      box-shadow: 0 0 5px rgba(0,0,0,0.05);
    }
  }
  
  .grid-2 {
    display: flex;
    gap: 1rem;
    flex-direction: column;
  }
  
  .grid-2 > div {
    flex: 1;
    width:100%;
  }
  
  .checkbox {
    margin: 1rem 0;
  }
  
  .payment-summary h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #1d3c6e;
  }
  
  .payment-summary p {
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  

/*Footer */
footer a{color:#FFF;}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher .lang-link {
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    color: #1d3c6e;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.language-switcher .lang-link:hover {
    background-color: #f8f9fa;
    border-color: #1d3c6e;
}

.language-switcher .lang-link.active {
    background-color: #1d3c6e;
    color: #ffffff;
    border-color: #1d3c6e;
}

/* Footer Language Switcher */
.footer-language {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-language .lang-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.footer-language .lang-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-language .lang-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.footer-language .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Language Switcher Dropdown */
.language-switcher {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #ffffff;
    color: #212529;
    cursor: pointer;
    min-width: 130px;
}

.language-switcher:hover {
    border-color: #1d3c6e;
    box-shadow: 0 0 3px rgba(29, 60, 110, 0.2);
}

.language-switcher:focus {
    outline: none;
    border-color: #1d3c6e;
    box-shadow: 0 0 5px rgba(29, 60, 110, 0.3);
}

.footer-language {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-language label {
    margin: 0;
    font-weight: normal;
}

.footer-language .language-switcher {
    min-width: 140px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-language .language-switcher:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-language .language-switcher option {
    background-color: #333;
    color: #ffffff;
}

/* Responsive Language Switcher */
@media (max-width: 768px) {
    .language-switcher {
        min-width: 100px;
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
    
    header > div {
        justify-content: center !important;
    }
}

/* Star Rating Component */
.rating-section {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.rating-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.rating-section p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.rating-component {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stars-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.star {
    display: block;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-image: url('/assets/img/star-empty.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.star:hover {
    transform: scale(1.1);
}

.rating-component.submitted .star {
    cursor: default;
}

.rating-component.submitted .star:hover {
    transform: none;
}

.star.filled {
    background-image: url('/assets/img/star-filled.svg');
}

.rating-submit {
    font-family: 'Inter', system-ui, sans-serif;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    border: solid 1px;
    min-height: 50px;
    text-align: center;
    color: #1e3c6f;
    text-decoration: none;
    line-height: 1.5;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
}

.rating-submit:hover:not(:disabled) {
    background: #f8f9fa;
}

.rating-submit:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.rating-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.rating-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rating-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Rating Stats */
.rating-stats {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.rating-stats h3 {
    margin-bottom: 1rem;
    color: #212529;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.stat-card h4 {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.stat-card .subvalue {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.rating-distribution {
    margin-top: 1.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rating-bar-label {
    min-width: 60px;
    font-size: 0.9rem;
    color: #495057;
}

.rating-bar-fill {
    flex: 1;
    height: 24px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

.rating-bar-count {
    min-width: 50px;
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
}
