

.f_modal {
  /* Не обязательно  block */
  display: block;
  overflow: visible;

  width: 90%;
  max-width: 420px;
  padding: 15px;
  /*height: 365px;*/
  max-height: 100%;

  position: fixed;

  z-index: 100;

  left: 50%;
  top: 50%;

  /* Центруем */
  transform: translate(-50%, -50%);

background: #fff;
/*border-radius: 20px;*/
padding-bottom: 20px;


 /* padding-top: 50px;*/

}

.f_modal .upload_f{
  margin-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.closed {
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;

  background: rgba(0, 0, 0, 0.6);
}


.f_modal .close-button {
	position: absolute;
	z-index: 1;
	top: 10px;
	right: 10px;
	cursor: pointer;
	border: 0;
	background: url('../img/close.png') no-repeat;
	color: white;
	padding: 5px 10px;
	font-size: 1.3rem;
	width: 35px;
	height: 37px;
}


.f_modal #s_close{
    margin-top: 20px;
}


.f_modal h2 {
	font-size: 30px;
	text-align: center;
	padding-top: 25px;
	text-transform: uppercase;
	color: #0f3359;
        font-weight: bold;
}
.f_modal p{

font-size: 18px;
padding-top: 30px;
text-align: center;
padding-bottom: 0px;
 color: #000;
font-weight: normal;
}

.f_modal .btn2{
    margin-left: auto;
    margin-right: auto;
    width: 240px;
   margin-top: 20px;
   padding-top: 15px;
   padding-bottom: 15px;
}


.f_modal p a{
    font-size: 14px;
}
/*
.f_modal .f_input{
   background: none;
   width: 100%;
   max-width: 360px;
   margin-left: auto;
   margin-right: auto;
}


*/

.f_modal .bname{
    background: url('../img/name.png') no-repeat 10px center;
}
.f_modal .btel{
    background: url('../img/tel.png') no-repeat 10px center;
}
/*
.f_modal input {
	background: none;
	color: #000;
	display: block;
	border: 2px solid #2e98ed;
	font-size: 17px;
	font-weight: 300;
	width: 100%;
        max-width: 300px;
	text-align: left;
	margin-top: 20px;
	margin-left: auto;
        margin-right: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 48px;
        padding-right: 10px;
}
*/
.f_modal .f_input {
	background: #fff;
	width: 100%;
	padding-left: 25px;
	padding-right: 25px;
	padding-top: 16px;
	padding-bottom: 16px;
	border-radius: 7px;
}

.f_modal .razmetka1 {
	border: 3px solid #2fa0f6;
	margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
}

.f_modal  input::-webkit-input-placeholder {
	color: #999;
	opacity: 1;
}
.f_modal  input:-moz-placeholder {
	color: #999;
	opacity: 1;
}
.f_modal  input::-moz-placeholder {
	color: #999;
	opacity: 1;
}
.f_modal  input:-ms-input-placeholder {
	color: #999;
	opacity: 1;
}

.f_modal .btn1{
    margin-left: auto;
    margin-right: auto;
}

.f_modal .agree{
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}


.f_modal .sender{
    display: none;
}

.f_modal .l_btn{
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 30px;
}

.f_spasibo{
    padding-left: 30px;
padding-bottom: 30px;
padding-right: 30px;
}


.f_spasibo p {
	font-size: 20px;
	text-align: center;
	font-style: normal;
	line-height: normal;
	padding-top: 15px;
	text-transform: none;
	color: #000;
}

.f_spasibo .btn2{
    margin-left: auto;
    margin-right: auto;
    width: 240px;
}

.f_modal.f_spasibo .close-button {
	position: relative;
	background: #fc2600;
	right: auto;
	top: auto;
	width: 224px;
	margin-left: auto;
	margin-right: auto;
	height: 42px;
	text-align: center;
	border-radius: 20px;
}
