/**
 * Reklam Paketi Formu CSS
 * 
 * @package seomy
 */

/* Form Wrapper */
.seomy-reklam-paketi-formu-wrapper {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Flatpickr Styling */
.flatpickr-input {
	cursor: pointer;
}

.flatpickr-input[readonly] {
	background-color: #fff;
	cursor: pointer;
}

.flatpickr-input[disabled],
input.seomy-form-input[disabled] {
	cursor: not-allowed;
	opacity: 0.6;
	background-color: #f5f5f5;
}

/* Flatpickr calendar popup */
.flatpickr-calendar {
	font-family: inherit;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled {
	color: #ccc;
	cursor: not-allowed;
}

.flatpickr-day.selected {
	background: #003082;
	border-color: #003082;
}

.flatpickr-day:hover {
	background: #003082;
	border-color: #003082;
	color: #fff;
}

/* Form ve Önizleme Container */
.seomy-form-preview-container {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.seomy-form-column {
	flex: 1;
	min-width: 0;
}

.seomy-preview-column {
	flex: 1;
	min-width: 0;
	position: sticky;
	top: 20px;
}
.seomy-reklam-paketi-formu-wrapper .seomy-form-label {
    line-height: 1.2;
}

.seomy-form-title {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin-bottom: 25px;
	border-bottom: 2px solid #fb3b03;
	padding-bottom: 10px;
}

/* Form Grupları */
.seomy-form-group {
	margin-bottom: 25px;
	position: relative;
	z-index: 1;
	clear: both;
	overflow: visible;
}

/* İl ve İlçe Yan Yana */
.seomy-il-ilce-wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.seomy-il-group,
.seomy-ilce-group {
	flex: 1;
	position: relative;
}

.seomy-il-group {
	z-index: 1;
}

.seomy-ilce-group {
	z-index: 100;
}

/* Tarih Alanları Yan Yana */
.seomy-tarih-wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.seomy-baslangic-group,
.seomy-bitis-group {
	flex: 1;
	position: relative;
}

/* İlçe select wrapper - dropdown'un üstte kalması için (zaten yukarıda tanımlı) */

.seomy-select-wrapper {
	position: relative;
	z-index: 100;
}

#seomy_ilce {
	position: relative;
	z-index: 100 !important;
}

#seomy_ilce:focus,
#seomy_ilce:active {
	z-index: 101 !important;
}

/* Logo ve Reklam Görseli Yan Yana */
.seomy-logo-reklam-wrapper {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.seomy-logo-group,
.seomy-reklam-gorsel-group {
	flex: 1;
	position: relative;
	z-index: 1;
}

.seomy-file-upload-wrapper {
	z-index: 1;
}

.seomy-form-label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
	font-size: 14px;
}

.seomy-form-label .required {
	color: #fb3b03;
	margin-left: 3px;
}

/* Form Input'ları */
.seomy-form-input,
.seomy-form-select,
.seomy-form-textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease;
	position: relative;
	z-index: 10;
	background-color: #fff;
	display: block;
}

/* Klasik select için - nice-select'i devre dışı bırak */
#seomy_il,
#seomy_ilce {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 15px center !important;
	background-size: 12px !important;
	padding-right: 40px !important;
}

/* nice-select wrapper'larını gizle */
#seomy_il + .nice-select,
#seomy_ilce + .nice-select {
	display: none !important;
	visibility: hidden !important;
}

.seomy-form-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 12px;
	padding-right: 40px;
	z-index: 20;
}

.seomy-form-input:focus,
.seomy-form-select:focus,
.seomy-form-textarea:focus {
	outline: none;
	border-color: #fb3b03;
	box-shadow: 0 0 0 3px rgba(251, 59, 3, 0.1);
	z-index: 25;
}

.seomy-form-select:disabled {
	background-color: #f5f5f5;
	cursor: not-allowed;
	opacity: 0.6;
	z-index: 5;
}

.seomy-form-select:not(:disabled) {
	opacity: 1 !important;
	cursor: pointer !important;
	background-color: #fff !important;
	display: block !important;
	visibility: visible !important;
}

/* İlçe select için özel - disabled olmadığında kesinlikle görünsün */
#seomy_ilce:not(:disabled) {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

.seomy-select-wrapper {
	display: block !important;
	visibility: visible !important;
}

.seomy-ilce-group {
	display: block !important;
	visibility: visible !important;
}

/* File Upload */
.seomy-file-upload-wrapper {
	position: relative;
	z-index: 1;
	overflow: hidden;
}

.seomy-form-file {
	position: absolute;
	opacity: 0;
	width: 0.1px;
	height: 0.1px;
	z-index: -1;
	pointer-events: none;
}

.seomy-file-upload-label {
	display: inline-block;
	padding: 12px 20px;
	background-color: #f8f9fa;
	border: 2px dashed #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	width: 100%;
	position: relative;
	z-index: 1;
	pointer-events: auto;
}

.seomy-file-upload-label:hover {
	background-color: #e9ecef;
	border-color: #fb3b03;
}

.seomy-file-upload-text {
	display: inline-block;
	margin-right: 10px;
	color: #666;
}

.seomy-file-upload-icon {
	font-size: 20px;
}

.seomy-file-preview {
	margin-top: 15px;
}

.seomy-logo-preview-img {
	max-width: 200px;
	max-height: 200px;
	border-radius: 4px;
	border: 1px solid #ddd;
	padding: 5px;
}

/* Karakter Sayacı */
.seomy-char-counter {
	text-align: right;
	font-size: 12px;
	color: #666;
	margin-top: 5px;
}

.seomy-char-counter span {
	font-weight: 600;
}

/* Form Help Text */
.seomy-form-help {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 5px;
	font-style: italic;
}

/* Form Butonları */
.seomy-form-actions {
	display: flex;
	gap: 15px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.seomy-btn {
	padding: 12px 30px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	flex: 1;
}

.seomy-btn-primary {
	background-color: #fb3b03;
	color: #fff;
}

.seomy-btn-primary:hover {
	background-color: #fb3d03f3;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(251, 59, 3, 0.3);
}

.seomy-btn-preview {
	background-color: #6c757d;
	color: #fff;
}

.seomy-btn-preview:hover {
	background-color: #5a6268;
	transform: translateY(-1px);
}

/* Önizleme Container */
.seomy-preview-container {
	width: 100%;
	aspect-ratio: 1;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.seomy-preview-background {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	padding:50px
}
@media (max-width: 768px) {
	.seomy-preview-background {
		padding:20px !important
	}
	.seomy-preview-title {
		font-size: 12px !important;
	}
	.seomy-preview-logo img {
		max-height: 20px !important;
	}
	.seomy-preview-cta-btn {
		padding: 0px 10px !important;
		font-size: 12px !important;
	}
	.seomy-preview-container {
		aspect-ratio: auto !important;
	}
}

.seomy-preview-template {
	width: 100%;
	height: 100%;
	position: relative;
	padding: 20px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background: #fff;
	border-radius: 10px;
}

/* Kapatma Butonu */
.seomy-preview-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 23px;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s;
}

.seomy-preview-close:hover {
	background: rgba(0, 0, 0, 0.7);
}

/* Başlık */
.seomy-preview-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-top: 10px;
	margin-bottom: 15px;
	text-align: center;
}

/* Reklam Görseli */
.seomy-preview-ad-image {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
}

.seomy-preview-ad-image img {
	width: 100%;
    max-height: 250px;
    border-radius: 12px;
    object-fit: contain;
    display: block;
}

/* Footer (Logo ve CTA) */
.seomy-preview-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: auto;
}

.seomy-preview-logo {
	flex-shrink: 0;
}

.seomy-preview-logo img {
	width: auto;
	max-height: 34px;
	object-fit: contain;
}

.seomy-preview-cta-btn {
	background: #222;
	color: #fff;
	padding: 3px 15px;
	border-radius: 6px;
	text-decoration: none;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.3s;
	display: block;
	border-radius: 10px;
}
.seomy-add-to-cart-form{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;

}
.seomy-add-to-cart-form .seomy-btn-primary{
border-radius: 10px; padding: 8px 30px;
}
.seomy-preview-cta-btn:hover {
	background: #d93202;
	color: #fff;
	text-decoration: none;
}

/* Eski Önizleme Stilleri (Kaldırılabilir) */
.seomy-preview-item {
	padding: 12px;
	background: #fff;
	border-radius: 4px;
	border-left: 3px solid #fb3b03;
}

.seomy-preview-item strong {
	color: #333;
	margin-right: 10px;
}

.seomy-preview-item a {
	color: #fb3b03;
	text-decoration: none;
}

.seomy-preview-item a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.seomy-reklam-paketi-formu-wrapper {
		padding: 20px;
	}
	
	.seomy-form-preview-container {
		flex-direction: column;
		gap: 20px;
	}
	
	.seomy-preview-column {
		position: static;
	}
	
	.seomy-il-ilce-wrapper,
	.seomy-tarih-wrapper,
	.seomy-logo-reklam-wrapper {
		flex-direction: column;
		gap: 0;
	}
	
	.seomy-il-group,
	.seomy-ilce-group,
	.seomy-baslangic-group,
	.seomy-bitis-group,
	.seomy-logo-group,
	.seomy-reklam-gorsel-group {
		width: 100%;
		margin-bottom: 25px;
	}
	

	
	.seomy-preview-logo {
		text-align: center;
	}
	
	.seomy-preview-cta-btn {
		width: 100%;
	}
}

/* Modern Popup Modal */
.seomy-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.seomy-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.seomy-modal {
	background: #fff;
	border-radius: 12px;
	padding: 0;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	transform: scale(0.9) translateY(-20px);
	transition: transform 0.3s ease;
	position: relative;
}

.seomy-modal-overlay.active .seomy-modal {
	transform: scale(1) translateY(0);
}

.seomy-modal-header {
	padding: 10px 30px;
	border-bottom: 1px solid #e5e5e5;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #003082;
	border-radius: 12px 12px 0 0;
}

.seomy-modal-title {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}

.seomy-modal-close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	font-size: 24px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
	line-height: 1;
	padding: 0;
}

.seomy-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.seomy-modal-body {
	padding: 30px;
}

.seomy-modal-message {
	font-size: 16px;
	color: #333;
	margin-bottom: 20px;
	line-height: 1.6;
}

.seomy-modal-errors {
	background: #f8f9fa;
	border-left: 4px solid #ff6b6b;
	padding: 15px 20px;
	border-radius: 6px;
	margin-top: 15px;
}

.seomy-modal-errors ul {
	margin: 0;
	padding-left: 20px;
	list-style: none;
}

.seomy-modal-errors li {
	color: #d63031;
	margin-bottom: 8px;
	padding-left: 20px;
	position: relative;
	line-height: 1.5;
}

.seomy-modal-errors li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #ff6b6b;
	font-size: 20px;
	line-height: 1;
}

.seomy-modal-errors li:last-child {
	margin-bottom: 0;
}

.seomy-modal-footer {
	padding: 20px 30px;
	border-top: 1px solid #e5e5e5;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.seomy-modal-btn {
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.seomy-modal-btn-primary {
	background: #003082;
	color: #fff;
}

.seomy-modal-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
	.seomy-modal {
		width: 95%;
		max-width: none;
	}
	
	.seomy-modal-header,
	.seomy-modal-body,
	.seomy-modal-footer {
		padding: 20px;
	}
	
	.seomy-modal-title {
		font-size: 18px;
	}
}

/* Flatpickr alt input ve duplicate input gizleme */
#seomy_bitis_tarihi.flatpickr-input + input.flatpickr-alt-input,
#seomy_bitis_tarihi + .flatpickr-alt-input,
#seomy_bitis_tarihi + input[type="hidden"],
.seomy-bitis-group input.flatpickr-alt-input,
.seomy-bitis-group input[type="hidden"]:not(#seomy_bitis_tarihi),
.seomy-bitis-group .flatpickr-alt-input {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	opacity: 0 !important;
	position: absolute !important;
	left: -9999px !important;
	pointer-events: none !important;
}

/* Bitiş tarihi grubunda sadece bir input görünsün */
.seomy-bitis-group input[type="text"]:not(.flatpickr-input):not(#seomy_bitis_tarihi) {
	display: none !important;
}

/* Bitiş tarihi input'unu native datepicker'dan koru */
#seomy_bitis_tarihi[type="date"] {
	display: none !important;
}

#seomy_bitis_tarihi.flatpickr-input {
	display: block !important;
}

