/* Floating Action Buttons Styles */
.floating-action-buttons {
	position: fixed;
	bottom: 5%;
	right: 30px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	z-index: 999;
}

.fab-button {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	background: var(--main-color-1);
	color: #ffffff;
	border: none;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 20px var(--main-color-1);
	transition: all 0.3s ease;
	white-space: nowrap;
}

.fab-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px var(--main-color-1);
}

.fab-button svg {
	width: 22px;
	height: 22px;
	stroke: #ffffff;
	flex-shrink: 0;
}

.fab-button span {
	font-family: inherit;
}

/* Специальные цвета для разных кнопок */
.fab-button.fab-master {
	background-color: #ffae0075;
    	box-shadow: 0 6px 20px var(--main-color-2);
    	border: 2px solid var(--main-color-2);
}

.fab-button.fab-master:hover {
	box-shadow: 0 10px 28px var(--main-color-2);
	background-color: var(--main-color-2);
}

.fab-button.fab-courier {
	background: linear-gradient(135deg, #15437285 0%, #d09b2a82 100%);
    	border: 2px solid var(--main-color-1);
    	box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
}

.fab-button.fab-courier:hover {
	background: var(--main-bg-gradient-1);
	box-shadow: 0 10px 28px rgba(237, 137, 54, 0.5);
}

.fab-button.fab-callback {
	background: #15437280;;
    	border: 2px solid var(--main-color-1);
    	box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
}

.fab-button.fab-callback:hover {
	background: var(--main-color-1);
	box-shadow: 0 10px 28px rgba(237, 137, 54, 0.5);
}

/* Modal Form Content */
.fab-modal-form-content {
	padding: 35px 40px;
}

.fab-modal-form-content .modern-form-wrapper {
	max-width: 100%;
	padding: 0;
}

.fab-modal-form-content .modern-form-header {
	display: none;
}

.fab-modal-form-content .modern-form-fields {
	margin-bottom: 25px;
}

.fab-modal-form-content .modern-form-buttons {
	margin-bottom: 15px;
}

.fab-modal-form-content .modern-form-note {
	font-size: 12px;
	margin-top: 10px;
}

/* Modal Styles */
.fab-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.fab-modal.active {
	opacity: 1;
	visibility: visible;
}

.fab-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.fab-modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 20px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.9) translateY(20px);
	transition: all 0.3s ease;
	z-index: 1;
}

.fab-modal.active .fab-modal-content {
	transform: scale(1) translateY(0);
}

.fab-modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f7fafc;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 10;
}

.fab-modal-close:hover {
	background: #e2e8f0;
	transform: rotate(90deg);
}

.fab-modal-close svg {
	width: 20px;
	height: 20px;
	stroke: #2d3748;
}

/* Modal Header */
.fab-modal-header {
	padding: 40px 40px 30px;
	text-align: center;
	background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
	border-radius: 20px 20px 0 0;
	position: relative;
	overflow: hidden;
}

.fab-modal-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 300px;
	height: 300px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
}

.fab-modal-icon {
	width: 70px;
	height: 70px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	position: relative;
	z-index: 1;
}

.fab-modal-icon svg {
	width: 35px;
	height: 35px;
	stroke: #ffffff;
}

.fab-modal-title {
	font-size: 26px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 10px 0;
	position: relative;
	z-index: 1;
}

.fab-modal-subtitle {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	position: relative;
	z-index: 1;
}

/* Modal Form */
.fab-modal-form {
	padding: 35px 40px;
}

.fab-form-group {
	margin-bottom: 25px;
}

.fab-form-group:last-child {
	margin-bottom: 0;
}

.fab-form-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 10px;
}

.fab-form-label .required {
	color: #e53e3e;
}

.fab-form-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.fab-form-input-wrapper svg {
	position: absolute;
	left: 15px;
	width: 20px;
	height: 20px;
	stroke: #a0aec0;
	pointer-events: none;
	z-index: 1;
}

.fab-form-input,
.fab-form-textarea {
	width: 100%;
	padding: 14px 15px 14px 45px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	font-size: 15px;
	font-family: inherit;
	color: #2d3748;
	transition: all 0.3s ease;
	background: #f7fafc;
}

.fab-form-input:focus,
.fab-form-textarea:focus {
	outline: none;
	border-color: #3182ce;
	background: #ffffff;
	box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}

.fab-form-input::placeholder,
.fab-form-textarea::placeholder {
	color: #a0aec0;
}

.fab-form-textarea {
	resize: vertical;
	min-height: 100px;
	padding-top: 12px;
}

.fab-form-input-wrapper textarea + svg {
	top: 15px;
	align-self: flex-start;
}

.fab-form-error {
	display: block;
	font-size: 13px;
	color: #e53e3e;
	margin-top: 6px;
	min-height: 18px;
}

/* Checkbox */
.fab-form-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	user-select: none;
}

.fab-form-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.fab-checkbox-mark {
	position: relative;
	width: 22px;
	height: 22px;
	border: 2px solid #cbd5e0;
	border-radius: 6px;
	background: #f7fafc;
	flex-shrink: 0;
	transition: all 0.3s ease;
	margin-top: 1px;
}

.fab-checkbox-mark::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 6px;
	height: 10px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform-origin: center;
	transition: all 0.3s ease;
}

.fab-form-checkbox input[type="checkbox"]:checked ~ .fab-checkbox-mark {
	background: #3182ce;
	border-color: #3182ce;
}

.fab-form-checkbox input[type="checkbox"]:checked ~ .fab-checkbox-mark::after {
	transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.fab-checkbox-text {
	font-size: 14px;
	color: #4a5568;
	line-height: 1.5;
}

.fab-checkbox-text a {
	color: #3182ce;
	text-decoration: none;
}

.fab-checkbox-text a:hover {
	text-decoration: underline;
}

/* Submit Button */
.fab-form-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 30px;
	background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
	color: #ffffff;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 6px 16px rgba(49, 130, 206, 0.3);
	margin-top: 30px;
}

.fab-form-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(49, 130, 206, 0.4);
}

.fab-form-submit svg {
	width: 20px;
	height: 20px;
	stroke: #ffffff;
}

/* Success Message */
.fab-modal-success {
	padding: 50px 40px;
	text-align: center;
}

.fab-success-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
	border-radius: 50%;
	box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
	animation: successPulse 0.6s ease-out;
}

.fab-success-icon svg {
	width: 40px;
	height: 40px;
	stroke: #ffffff;
}

@keyframes successPulse {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.fab-success-title {
	font-size: 24px;
	font-weight: 700;
	color: #2d3748;
	margin: 0 0 12px 0;
}

.fab-success-text {
	font-size: 15px;
	color: #718096;
	margin: 0 0 30px 0;
	line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
	.floating-action-buttons {
		bottom: 20px;
		right: 20px;
	}
	
	.fab-button {
		padding: 12px 16px;
		font-size: 14px;
	}
	
	.fab-button svg {
		width: 20px;
		height: 20px;
	}
	
	.fab-modal-content {
		width: 95%;
		border-radius: 16px;
	}
	
	.fab-modal-header {
		padding: 30px 25px 25px;
		border-radius: 16px 16px 0 0;
	}
	
	.fab-modal-icon {
		width: 60px;
		height: 60px;
		margin-bottom: 15px;
	}
	
	.fab-modal-icon svg {
		width: 30px;
		height: 30px;
	}
	
	.fab-modal-title {
		font-size: 22px;
	}
	
	.fab-modal-subtitle {
		font-size: 13px;
	}
	
	.fab-modal-form-content {
		padding: 25px;
	}
	
	.fab-modal-form-content .modern-form-input,
	.fab-modal-form-content .modern-form-textarea {
		font-size: 14px;
		padding: 12px;
	}
	
	.fab-modal-form-content .modern-form-input.has-icon-input,
	.fab-modal-form-content .modern-form-textarea {
		padding-left: 40px;
	}
	
	.fab-form-submit {
		padding: 14px 25px;
		font-size: 15px;
	}
	
	.fab-modal-success {
		padding: 40px 25px;
	}
	
	.fab-success-icon {
		width: 70px;
		height: 70px;
		margin-bottom: 20px;
	}
	
	.fab-success-icon svg {
		width: 35px;
		height: 35px;
	}
	
	.fab-success-title {
		font-size: 20px;
	}
	
	.fab-success-text {
		font-size: 14px;
	}
}

@media (max-width: 576px) {
	.floating-action-buttons {
		bottom: 15px;
		right: 15px;
		gap: 12px;
	}
	
	.fab-button span {
		display: none;
	}
	
	.fab-button {
		width: 50px;
		height: 50px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
	
	.fab-modal-close {
		top: 15px;
		right: 15px;
		width: 36px;
		height: 36px;
	}
	
	.fab-modal-close svg {
		width: 18px;
		height: 18px;
	}
	
	.fab-modal-header {
		padding: 25px 20px 20px;
	}
	
	.fab-modal-icon {
		width: 55px;
		height: 55px;
	}
	
	.fab-modal-title {
		font-size: 20px;
	}
	
	.fab-modal-form-content {
		padding: 20px;
	}
	
	.fab-modal-form-content .modern-form-group {
		margin-bottom: 20px;
	}
	
	.fab-modal-form-content .modern-form-label {
		font-size: 13px;
	}
	
	.fab-modal-form-content .modern-form-input,
	.fab-modal-form-content .modern-form-textarea {
		padding: 11px;
	}
	
	.fab-modal-form-content .modern-form-input.has-icon-input,
	.fab-modal-form-content .modern-form-textarea {
		padding-left: 38px;
	}
	
	.fab-modal-form-content .modern-form-input-wrapper.has-icon svg {
		width: 18px;
		height: 18px;
		left: 12px;
	}
	
	.fab-checkbox-text {
		font-size: 13px;
	}
	
	.fab-form-submit {
		margin-top: 25px;
	}
	
	.fab-modal-success {
		padding: 30px 20px;
	}
}

/* Scrollbar для модального окна */
.fab-modal-content::-webkit-scrollbar {
	width: 8px;
}

.fab-modal-content::-webkit-scrollbar-track {
	background: #f7fafc;
	border-radius: 0 20px 20px 0;
}

.fab-modal-content::-webkit-scrollbar-thumb {
	background: #cbd5e0;
	border-radius: 4px;
}

.fab-modal-content::-webkit-scrollbar-thumb:hover {
	background: #a0aec0;
}

