/* =======================
   Typography
======================= */
body {
  font-family: "OMVProgress", "Arial", sans-serif;
  font-size: 16px;
  color: #052759;
  line-height: 1.5;
  background: #fff;
  margin: 0;
  padding: 0;
}

body.petrom{
color: #002855;
}

h5 {
  font-size: 1.57rem;
  line-height: 100%;
}



/* =======================
   Layout
======================= */
.row {
  margin-bottom: 0;
}

.row.two-cols .col:first-child {
  padding-right: 20px;
  padding-left: 0;
}

.row.two-cols .col:last-child {
  padding-left: 20px;
  padding-right: 0;
}

.mt-30 {
margin-top:30px;
}

.mb-30 {
margin-bottom:30px !important;
}
.mb-15 {
margin-bottom:15px !important;
}

/* =======================
   Form Container
======================= */
#form-container.card {
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  box-shadow: none;
}

#form-container .card-content {
  padding: 0;
}

/* =======================
   Inputs & Textareas
======================= */
input,
.input-field input,
.input-field textarea {
  font-family: "OMVProgress", "Arial", sans-serif !important;
  width: 100%;
  padding: 12px 6px !important;
  border-radius: 8px;
  background: none !important;
  border-bottom: 1px solid #CCD6ED !important;
  font-size: 14px !important;
  line-height: 130%;
  height: 18px !important;
  color: #052759;
  box-sizing: border-box;
}
.petrom input,
.petrom .input-field input,
.petrom .input-field textarea{
  color: #002855;
}
/* Labels: permanently active */
.input-field label {
  top: -16px !important;
  font-weight: 400;
  color: #052759;
  font-size: 16px !important;
  transition: none !important;
  transform: none !important;
}
.petrom .input-field label {
   color: #002855;
}

.input-field.col label {
  left: 0;
}

.row.two-cols .input-field.col:last-child label {
  left: 20px;
}
.desktop-2line {
  margin-top:52px !important;
}
.desktop-2line label {
   top: -38px !important;
}
/* Input focus */
.input-field input:focus,
.input-field textarea:focus {
  border-color: #052759 !important;
  box-shadow: none !important;
}
.petrom .input-field input:focus,
.petrom .input-field textarea:focus {
  border-color: #002855 !important;
}


/* Placeholder color */
.input-field input::placeholder,
.input-field textarea::placeholder {
  color: #4E6588;
  opacity: 1;
}

/* Focused label color for text inputs */
input:not([type]):focus:not([readonly]) + label,
input[type=text]:not(.browser-default):focus:not([readonly]) + label,
input[type=password]:not(.browser-default):focus:not([readonly]) + label,
input[type=email]:not(.browser-default):focus:not([readonly]) + label,
input[type=url]:not(.browser-default):focus:not([readonly]) + label,
input[type=time]:not(.browser-default):focus:not([readonly]) + label,
input[type=date]:not(.browser-default):focus:not([readonly]) + label,
input[type=datetime]:not(.browser-default):focus:not([readonly]) + label,
input[type=datetime-local]:not(.browser-default):focus:not([readonly]) + label,
input[type=tel]:not(.browser-default):focus:not([readonly]) + label,
input[type=number]:not(.browser-default):focus:not([readonly]) + label,
input[type=search]:not(.browser-default):focus:not([readonly]) + label,
textarea.materialize-textarea:focus:not([readonly]) + label {
  color: #052759;
}

.petrom input:not([type]):focus:not([readonly]) + label,
.petrom input[type=text]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=password]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=email]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=url]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=time]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=date]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=datetime]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=datetime-local]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=tel]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=number]:not(.browser-default):focus:not([readonly]) + label,
.petrom input[type=search]:not(.browser-default):focus:not([readonly]) + label,
.petrom textarea.materialize-textarea:focus:not([readonly]) + label {
  color: #002855;
}

/* =======================
   Materialize Select
======================= */
.select-wrapper input.select-dropdown {
  padding: 12px 6px !important;
  color: #4E6588 !important;
  padding-right: 40px; /* space for custom chevron */
}

.select-wrapper input.select-dropdown:focus {
  border-color: #052759 !important;
  box-shadow: none !important;
}

.petrom .select-wrapper input.select-dropdown:focus {
  border-color: #002855 !important;
}

.dropdown-content {
  background-color: #F0F2F7;
  box-shadow: 0px 10px 20px 0px #0000001A;
  font-size: 14px;
  margin-top: 30px;
  overflow-x: hidden;
}

.dropdown-content li:hover,
.dropdown-content li.active,
.select-dropdown.dropdown-content li:hover {
  background-color: #CCD6ED;
}

.dropdown-content li>a,
.dropdown-content li>span {
  font-size: 14px;
  color: #052759;
  display: block;
  line-height: 130%;
  padding: 8px;
}

.petrom .dropdown-content li>a,
.petrom .dropdown-content li>span {
  color: #002855;
}

.dropdown-content li {
  min-height: 35px;
}

/* First li label span */
.dropdown-content li:first-child label span {
  background-color: #F0F2F7;
  color: #3C5986;
  display: inline-block;
  padding: 0.5rem;
}

/* Remove pseudo-elements from first li */
.dropdown-content li:first-child label::before,
.dropdown-content li:first-child label::after,
.dropdown-content li:first-child label span::before,
.dropdown-content li:first-child label span::after {
  content: none !important;
}

.dropdown-content li.selected,
.dropdown-content li.selected > a,
.dropdown-content li.selected > span,
.dropdown-content li.selected label span {
  background-color: #CCD6ED !important;
}

/* Disabled & optgroup */
.select-dropdown li.disabled,
.select-dropdown li.disabled > span,
.select-dropdown li.optgroup {
  background-color: #F0F2F7 !important;
  color: #4E6588;
}

/* Custom chevron */
.caret path {
  fill: transparent; /* hide it visually */
}

.select-wrapper .caret {
  display: block;
  background-image: url('https://image.marketing.omv.com/lib/fe2d11737364047e721175/m/1/Chevron-down.jpg') !important;
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  top: 14px;
  right: 10px;
  z-index: 0;
  pointer-events: auto;
}

/* =======================
   Checkboxes & Radio
======================= */
input[type="checkbox"] + span,
input[type="radio"] + span {
  color: #052759;
  font-weight: 400;
}

.petrom input[type="checkbox"] + span,
.petrom input[type="radio"] + span {
  color: #002855;
}

[type="checkbox"]:not(:checked) + span:not(.lever):after,
[type="checkbox"].filled-in:not(:checked) + span:not(.lever):after{
  border: 2px solid #052759;
  border-radius: 4px;
}

.petrom [type="checkbox"]:not(:checked) + span:not(.lever):after,
.petrom [type="checkbox"].filled-in:not(:checked) + span:not(.lever):after{
  border: 2px solid #002855;
}

[type="checkbox"]:not(:checked):hover + span:not(.lever):after,
[type="checkbox"]:not(:checked):focus + span:not(.lever):after,
[type="checkbox"].filled-in:not(:checked):hover + span:not(.lever):after,
[type="checkbox"].filled-in:not(:checked):focus + span:not(.lever):after {
  border: 2px solid #1FFF5A;
}

.petrom [type="checkbox"]:not(:checked):hover + span:not(.lever):after,
.petrom [type="checkbox"]:not(:checked):focus + span:not(.lever):after,
.petrom [type="checkbox"].filled-in:not(:checked):hover + span:not(.lever):after,
.petrom [type="checkbox"].filled-in:not(:checked):focus + span:not(.lever):after {
  border: 2px solid #FFD500;
}

[type="checkbox"]:checked + span:not(.lever):after,
[type="checkbox"].filled-in:checked + span:not(.lever):after{
  border: 2px solid #052759;
  background-color: #052759;
  border-radius: 4px;
}

.petrom [type="checkbox"]:checked + span:not(.lever):after,
.petrom [type="checkbox"].filled-in:checked + span:not(.lever):after{
  border: 2px solid #002855;
  background-color: #002855;
}

[type="checkbox"]:checked:hover + span:not(.lever):after,
[type="checkbox"].filled-in:checked:hover + span:not(.lever):after {
  border: 2px solid #1FFF5A;
  background-color: #1FFF5A;
}

.petrom [type="checkbox"]:checked:hover + span:not(.lever):after,
.petrom [type="checkbox"].filled-in:checked:hover + span:not(.lever):after {
  border: 2px solid #FFD500;
  background-color: #FFD500;
}

[type="checkbox"]+span:not(.lever):before, 
[type="checkbox"]:not(.filled-in)+span:not(.lever):after {
  border: 2px solid #052759;
  border-radius: 4px;
}

.petrom [type="checkbox"]+span:not(.lever):before, 
.petrom [type="checkbox"]:not(.filled-in)+span:not(.lever):after {
  border: 2px solid #002855;
}

[type="checkbox"]:hover+span:not(.lever):before, 
[type="checkbox"]:not(.filled-in):hover+span:not(.lever):after,
.dropdown-content li:hover [type="checkbox"]:not(.filled-in):not(:checked)+span:not(.lever):before{
  border: 2px solid #1FFF5A;
}

.petrom .dropdown-content li:hover [type="checkbox"]:not(.filled-in):not(:checked)+span:not(.lever):before{
  border: 2px solid #FFD500;
}


[type="checkbox"]:not(.filled-in):checked+span:not(.lever):before {
    top: 2px;
    left: 1px;
    width: 8px;
    height: 13px;
    border-top: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    -webkit-transform: rotateZ(37deg);
    transform: rotateZ(37deg);
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
    z-index:1;
}

.petrom [type="checkbox"]:hover:checked+span:not(.lever):before{
  border-right: 2px solid #002855 !important;
  border-bottom: 2px solid #002855 !important;
}

[type="checkbox"]:not(.filled-in):checked+span:not(.lever):after{
    border: 2px solid #052759;
    background-color: #052759;
    border-radius: 4px;
    transform:none;
    z-index:0;
    width: 20px;
    height: 20px;
}

.petrom [type="checkbox"]:not(.filled-in):checked+span:not(.lever):after{
    border: 2px solid #002855;
    background-color: #002855;
}

.dropdown-content li:hover [type="checkbox"]:not(.filled-in):checked+span:not(.lever):after{
    border: 2px solid #1FFF5A;
    background-color: #1FFF5A;
}
.petrom .dropdown-content li:hover [type="checkbox"]:not(.filled-in):checked+span:not(.lever):after{
    border: 2px solid #FFD500;
    background-color: #FFD500;
}
.petrom .dropdown-content li:hover [type="checkbox"]:not(.filled-in):checked+span:not(.lever):before{
    border-right: 2px solid #002855;
    border-bottom: 2px solid #002855;
}
.p-checkbox [type="checkbox"] + span:not(.lever) {
  height: 100px;
}

/* =======================
   Buttons
======================= */
.btn,
.btn.waves-effect {
  border-radius: 24px;
  height: 44px;
  font-size: 16px;
  line-height: 130%;
  padding: 0 32px;
  text-transform: none;
  box-shadow: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn.waves-effect {
  background-color: #052759;
  border: 1px solid #052759;
  color: #fff;
}
.petrom .btn.waves-effect {
  background-color: #002855;
  border: 1px solid #002855;
  color: #fff;
}

.btn.waves-effect:hover {
  color: #052759 !important;
  background: #1FFF5A;
  border: 1px solid #1FFF5A;
}
.petrom .btn.waves-effect:hover {
  color: #002855 !important;
  background: #FFD500;
  border: 1px solid #FFD500;
}
.btn.white {
  background: transparent;
  border: 1px solid #052759;
  color: #052759 !important;
}
.petrom .btn.white {
  border: 1px solid #002855;
  color: #002855 !important;
}
.btn.white:hover {
  background: #1FFF5A !important;
  border: 1px solid #1FFF5A;
}

.petrom .btn.white:hover {
  background: #FFD500 !important;
  border: 1px solid #FFD500;
}
.z-depth-1-half,
.btn:hover,
.btn-large:hover,
.btn-small:hover,
.btn-floating:hover {
  box-shadow: none;
}

.row.center-align {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =======================
   Errors
======================= */
label .required,
.required.mark {
  color: #7F1000;
  font-weight: bold;
}

.helper-text.red-text {
  display: block;
  font-size: 0.8rem;
  margin-top: 4px;
}

input.invalid,
select.invalid ~ .select-dropdown {
  border-bottom: 1px solid #7F1000 !important;
  box-shadow: 0 1px 0 0 #7F1000 !important;
}

.red-text {
  color: #7F1000 !important;
}

/* =======================
   Responsive
======================= */
@media (max-width: 768px) {
  #form-container.card {
    padding: 16px;
  }

  .row.center-align {
    flex-direction: column;
  }
  .info-text{
  font-size: 14px
  }
}

@media (max-width: 620px) {
  #form-container.card {
    width: calc(100% - 20px);
    margin: 20px 10px;
  }

  .row.two-cols .col {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .row.two-cols .input-field.col:last-child label {
    left: 0;
  }
.p-checkbox [type="checkbox"] + span:not(.lever) {
    height: 200px;
}
.mobile-2line {
  margin-top:52px !important;
}
.mobile-2line label {
   top: -38px !important;
}
}