﻿/* ============================================================
   FOPIN FORM DIALOG
   ============================================================ */

.fv-form-dialog.e-dialog {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
}


/* Header */

.fv-form-dialog .e-dlg-header-content {
  padding: 22px 28px 14px 28px;
  border-bottom: none;
  background: #ffffff;
}

.fv-form-dialog .e-dlg-header {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.fv-form-dialog .e-dlg-closeicon-btn {
  margin-top: 1px;
}


/* Content */

.fv-form-dialog .e-dlg-content {
  padding: 0 28px 28px 28px !important;
  background: #ffffff;
}


/* ============================================================
   FORM
   ============================================================ */

.fv-form {
  width: 100%;
}


/* ============================================================
   FIELD
   ============================================================ */

.fv-form-field {
  margin-bottom: 18px;
}

  .fv-form-field:last-child {
    margin-bottom: 0;
  }


  /* Label */

  .fv-form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
  }


/* Input */

.fv-form-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  background: #f1f5f9;
  color: #334155;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}


  /* Hover */

  .fv-form-input:hover {
    border-color: #94a3b8;
  }


  /* Focus */

  .fv-form-input:focus {
    border-color: #58a9d0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(88, 169, 208, 0.15);
  }


  /* Readonly */

  .fv-form-input[readonly],
  .fv-form-input:disabled,
  .fv-form-readonly {
    cursor: default;
    color: #64748b;
    background: #f1f5f9;
  }


/* ============================================================
   TEXTAREA
   ============================================================ */

.fv-form-textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  background: #f1f5f9;
  color: #334155;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

  .fv-form-textarea:hover {
    border-color: #94a3b8;
  }

  .fv-form-textarea:focus {
    border-color: #58a9d0;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(88, 169, 208, 0.15);
  }


/* ============================================================
   ROW - 2 COLUMNS
   ============================================================ */

.fv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.fv-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}


/* Primary button */

.fv-form-primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 21px;
  cursor: pointer;
  background: linear-gradient( 180deg, #58b0db 0%, #3496c3 100% );
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(52, 150, 195, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

  .fv-form-primary-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 7px 16px rgba(52, 150, 195, 0.34);
  }

  .fv-form-primary-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(52, 150, 195, 0.25);
  }


/* ============================================================
   SECONDARY BUTTON
   ============================================================ */

.fv-form-secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border: 1px solid #cbd5e1;
  border-radius: 21px;
  cursor: pointer;
  background: #ffffff;
  color: #475569;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

  .fv-form-secondary-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
  }


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

  .fv-form-dialog {
    width: calc(100% - 30px) !important;
  }

    .fv-form-dialog .e-dlg-header-content {
      padding-left: 20px;
      padding-right: 20px;
    }

    .fv-form-dialog .e-dlg-content {
      padding-left: 20px !important;
      padding-right: 20px !important;
    }

  .fv-form-row {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   CHECKBOX
   ============================================================ */

.fv-form-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  cursor: pointer;
}


/* schová pôvodný checkbox */

.fv-form-checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}


/* vlastný checkbox */

.fv-form-checkbox-control {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f1f5f9;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}


/* hover */

.fv-form-checkbox:hover .fv-form-checkbox-control {
  border-color: #94a3b8;
}


/* checked */

.fv-form-checkbox-input:checked + .fv-form-checkbox-control {
  border-color: #3496c3;
  background: #3496c3;
}


  /* checkmark */

  .fv-form-checkbox-input:checked + .fv-form-checkbox-control::after {
    content: "";
    width: 5px;
    height: 10px;
    margin-top: -2px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }


/* focus */

.fv-form-checkbox-input:focus-visible + .fv-form-checkbox-control {
  border-color: #58a9d0;
  box-shadow: 0 0 0 3px rgba(88, 169, 208, 0.15);
}


/* text */

.fv-form-checkbox-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #475569;
}