/* BuyukWeb Order Form - Custom CSS */
/* Add your custom styles here */

/* ==========================================================================
   1. ALAN ADI SEÇİM KARTLARI - Domain Selection Options
   ========================================================================== */

.domain-selection-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.domain-selection-options .option {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.domain-selection-options .option:hover {
    border-color: #a5b4fc;
    background: #fafafa;
}

/* Seçenek başlığı - radio + label */
.domain-selection-options .option > label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin-bottom: 0;
}

.domain-selection-options .option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    flex-shrink: 0;
    margin: 0;
}

/* Domain input alanı - varsayılan olarak gizli */
.domain-selection-options .domain-input-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    display: none;
}

/* Sadece seçili option'ın input alanı görünsün */
.domain-selection-options .option.selected .domain-input-group,
.domain-selection-options .option:has(input[type="radio"]:checked) .domain-input-group {
    display: block;
}

/* Seçili option belirgin olsun */
.domain-selection-options .option.selected,
.domain-selection-options .option:has(input[type="radio"]:checked) {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.domain-selection-options .domain-input-group .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

/* Input ve select düzeni */
.domain-selection-options .domains-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.domain-selection-options .domains-row .col-xs-9,
.domain-selection-options .domains-row .col-9 {
    flex: 1;
    max-width: none;
    padding: 0;
}

.domain-selection-options .domains-row .col-xs-3,
.domain-selection-options .domains-row .col-3 {
    flex: 0 0 auto;
    width: auto;
    min-width: 80px;
    padding: 0;
}

/* Input group - www. prefix */
.domain-selection-options .input-group {
    display: flex;
    align-items: stretch;
}

.domain-selection-options .input-group-addon,
.domain-selection-options .input-group-prepend {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.domain-selection-options .input-group-text {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.domain-selection-options .input-group .form-control {
    border-radius: 0 6px 6px 0;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    font-size: 14px;
    height: auto;
}

/* TLD Select dropdown */
.domain-selection-options select.form-control {
    border-radius: 6px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 13px;
    min-width: 70px;
    height: auto;
    background: #fff;
    cursor: pointer;
}

/* Butonlar - Kontrol Et, Transfer Et, Kullan */
.domain-selection-options .col-sm-2 {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
}

.domain-selection-options .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.domain-selection-options .btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

/* Offset sınıflarını kaldır */
.domain-selection-options .col-sm-offset-1,
.domain-selection-options .offset-sm-1 {
    margin-left: 0 !important;
}

.domain-selection-options .col-sm-8 {
    flex: 1;
    max-width: none;
    padding: 0;
}

/* ==========================================================================
   2. ÖDEME DÖNGÜSÜ BUTONLARI - Billing Cycle Buttons
   ========================================================================== */

/* Dropdown'u gizle, butonları göster */
.billing-cycle-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.billing-cycle-buttons .cycle-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.billing-cycle-buttons .cycle-btn:hover {
    border-color: #6366f1;
    background: #f9fafb;
}

.billing-cycle-buttons .cycle-btn.active {
    border-color: #6366f1;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.billing-cycle-buttons .cycle-btn .cycle-name {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 5px;
}

.billing-cycle-buttons .cycle-btn .cycle-price {
    display: block;
    font-weight: 700;
    color: #6366f1;
    font-size: 16px;
}

.billing-cycle-buttons .cycle-btn.active .cycle-name,
.billing-cycle-buttons .cycle-btn.active .cycle-price {
    color: #4f46e5;
}

/* Orijinal select'i gizle */
#inputBillingcycle.has-buttons {
    display: none !important;
}

/* ==========================================================================
   3. SEPETİ BOŞALT MODAL - Empty Cart Fix
   ========================================================================== */

/* Modal overlay düzeltmesi */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.fade.show,
.modal-backdrop.fade.in {
    opacity: 1 !important;
}

/* Modal görünürlük */
.modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

.modal.fade.show .modal-dialog,
.modal.fade.in .modal-dialog {
    transform: translateY(0);
}

/* Sepeti boşalt butonu */
#btnEmptyCart {
    color: #ef4444;
}

#btnEmptyCart:hover {
    color: #dc2626;
}

/* Modal düzeltmeleri - Sepeti boşalt ve öğe kaldır */
#modalEmptyCart,
#modalRemoveItem {
    z-index: 1050 !important;
}

#modalEmptyCart .modal-dialog,
#modalRemoveItem .modal-dialog {
    margin: 100px auto;
    max-width: 400px;
}

#modalEmptyCart .modal-content,
#modalRemoveItem .modal-content {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#modalEmptyCart .modal-body,
#modalRemoveItem .modal-body {
    padding: 30px;
    text-align: center;
}

#modalEmptyCart .modal-title,
#modalRemoveItem .modal-title {
    color: #ef4444;
    margin-bottom: 15px;
}

#modalEmptyCart .modal-title i,
#modalRemoveItem .modal-title i {
    display: block;
    margin-bottom: 15px;
}

#modalEmptyCart .modal-footer,
#modalRemoveItem .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 15px 30px;
    justify-content: center;
    gap: 10px;
}

#modalEmptyCart .btn-default,
#modalRemoveItem .btn-default {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 8px;
    padding: 10px 25px;
}

#modalEmptyCart .btn-primary,
#modalRemoveItem .btn-primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
}

/* Body scroll fix when modal open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Backdrop fix */
.modal-backdrop.show,
.modal-backdrop.in {
    opacity: 0.5 !important;
    background-color: #000 !important;
}

/* ==========================================================================
   4. ALAN ADI YENİLEME SAYFASI - Domain Renewals
   ========================================================================== */

.domain-renewals {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.domain-renewal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.domain-renewal:hover {
    border-color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.domain-renewal h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.domain-renewal p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #6b7280;
}

.domain-renewal .domain-renewal-desc {
    font-style: italic;
    color: #9ca3af;
}

/* Label stilleri */
.domain-renewal .label {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.domain-renewal .label-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.25) 100%);
    color: #16a34a;
}

.domain-renewal .label-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
    color: #d97706;
}

.domain-renewal .label-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.25) 100%);
    color: #dc2626;
}

.domain-renewal .label-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #6366f1;
}

.domain-renewal .label-grey {
    background: #f3f4f6;
    color: #6b7280;
}

/* Form stilleri */
.domain-renewal .form-horizontal {
    margin: 15px 0;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.domain-renewal .form-group {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.domain-renewal .form-group .control-label {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    flex: 0 0 auto;
}

.domain-renewal .form-group .col-sm-6 {
    flex: 1;
    padding: 0;
}

.domain-renewal .select-renewal-pricing {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fff;
    width: 100%;
}

.domain-renewal .select-renewal-pricing:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Sepete Ekle butonu */
.domain-renewal .btn-add-renewal-to-cart {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.domain-renewal .btn-add-renewal-to-cart:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
}

.domain-renewal .btn-add-renewal-to-cart .added {
    display: none;
}

.domain-renewal .btn-add-renewal-to-cart.in-cart .to-add {
    display: none;
}

.domain-renewal .btn-add-renewal-to-cart.in-cart .added {
    display: inline;
}

.domain-renewal .btn-add-renewal-to-cart.in-cart {
    background: #22c55e;
}

/* Sipariş Özeti */
#orderSummary .order-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

#orderSummary .order-summary h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

#orderSummary .summary-container {
    font-size: 14px;
    color: #374151;
}

#orderSummary #btnGoToCart {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    width: 100%;
}

#orderSummary #btnGoToCart:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

/* Arama kutusu */
.domain-renewals-filter {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    width: 200px;
}

.domain-renewals-filter:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
