/*
Theme Name: Divi Child
Template: Divi
Version: 1.0
Author: Dr. Mohsen Sojoudi
Description:Child Theme for Divi
*/

/* Main Form */

form#wpforms-form-872,.fab-main-button, .update_form {
    font-family: 'iransansx-black' !important;
}

div#wpforms-confirmation-872 {
    text-align: center;
	font-family: 'iransansx-black' !important;
}
.wpforms-layout-column input[type=text]::placeholder,
.wpforms-layout-column input[type=tel]::placeholder,
.wpforms-layout-column input[type=number]::placeholder {
    opacity: 100 !important;
	font-size:12px;
}

div#wpforms-872-field_8-description,div#wpforms-872-field_11-description {
    font-size: 10px !important;
    color: #4587f6 !important;
    text-align: center;
}

select.wpforms-field-medium,input.wpforms-field-medium {
    border-color: #ece8e8 !important;
    border-radius: 10px !important;
	font-size: 12px !important;
}
button#wpforms-submit-872
 {
    width: 100% !important;
}

/* end of Main Form */

/* Read and Update Databse */
.myDiv {
    padding: 5px;
    margin: 15px;
    border-radius: 10px;
    background: #f9f9f9;
}
.myTable {
    margin: 10px auto;
    font-size: 14px;
    font-family: 'iransansx-bold';
	width: 80%;
	text-align:center;
}

.myTable td {
    padding: 8px;
	border: 1px solid #e1e1e1;
}

.myTable tbody tr:nth-child(even) {
    color: black;
    border-bottom: 10px solid #f1f0f0;
}

.myTable tbody tr:nth-child(even) td:nth-child(2){
  	text-align: right;
    background: aliceblue;
}


.myTable thead {
    background: black;
    color: white;
	padding:10px;
}

.myTable td a {
    color: black;
}

tr.myPaging {
    text-align: center;
    background: aliceblue;
}
tr.myPaging a {
    background: cadetblue;
    padding: 5px;
    border-radius: 10px;
    letter-spacing: 3px;
	margin: 0px 10px;
}

.update_form {
	width: 50%;
    background: beige;
    padding: 20px 20px 10px 20px;
    border-radius: 50px;
    margin: 20px auto;
}

.update_form p {
    margin-bottom: 20px;
}

.status-wait { color: #1e5eff;background: aliceblue; }      /* آبی */
.status-given { color: #00a651; background: aliceblue;}     /* سبز */
.status-canceled { color: #e00000; background: aliceblue;}  /* قرمز */


/* End of read and update database */

@media only screen and (max-width: 600px) {
    .et-db #et-boc .et-l .et_pb_module div.wpforms-container .wpforms-form .wpforms-field-layout .wpforms-layout-column {
        padding-left: 0;
		padding-right:15px;
    }
}

/* کانتینر اصلی دکمه‌ها */
.floating-buttons-container {
	position: fixed;
	bottom: 20px; /* فاصله از پایین صفحه */
	left: 50%;
	transform: translateX(-50%); /* مرکز کردن دقیق */
	display: flex;
	gap: 15px; /* فاصله بین دو دکمه */
	z-index: 1000; /* اطمینان از قرارگیری روی سایر المان‌ها */
	padding: 10px;
	background: rgba(255, 255, 255, 0.1); /* پس‌زمینه شفاف برای زیبایی */
	border-radius: 50px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* استایل پایه دکمه‌ها */
.float-btn {
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 30px;
	font-weight: bold;
	font-size: 1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 140px; /* حداقل عرض برای خوانایی */
}

/* دکمه نوبت آنلاین */
.btn-appointment {
	background: #00b894;
	color: white !important;
	font-size:16px;
}

/* دکمه جوابدهی آنلاین */
.btn-support {
	background: #000000;
	color: #fff !important;
	font-size:16px;
}

/* افکت هاور (وقتی موس روی دکمه می‌رود) */
.float-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* ریسپانسیو برای موبایل‌های کوچک */
@media (max-width: 480px) {
	.floating-buttons-container {
		bottom: 15px;
		width: 90%; /* در موبایل عرض کل صفحه را بگیرد */
		justify-content: center;
		gap: 10px;
	}

	.float-btn {
		font-size: 0.9rem;
		padding: 10px 15px;
		min-width: auto;
		flex: 1; /* دکمه‌ها فضای مساوی را پر کنند */
	}
}