/* Form stilleri */

/* Seçilen kart gösterimi */
.selected-card {
    background: transparent;
    border-radius: 0;
    padding: 30px 20px;
    margin-bottom: 40px;
    text-align: center;
    border: none;
    box-shadow: none;
}

.selected-card-icon {
    width: 200px;
    height: 125px;
    margin: 0 auto 20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.selected-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.selected-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form başlığı */
.form-title {
    font-size: 28px;
    color: #101828;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: -0.02em;
}

.form-subtitle {
    font-size: 15px;
    color: #667085;
    text-align: center;
    margin-bottom: 36px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.5;
}

/* Form Step System */
.form-step {
    display: none;
    animation: slideIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form grup stilleri */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #344054;
    margin-bottom: 8px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

.required {
    color: #f04438;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
    color: #101828;
}

.form-control::placeholder {
    color: #98a2b3;
}

.form-control:hover {
    border-color: #98a2b3;
}

.form-control:focus {
    outline: none;
    border-color: #59c1d4;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(89, 193, 212, 0.12);
}

.form-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background-color: #ffffff;
    cursor: pointer;
    box-sizing: border-box;
    color: #344054;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%2359c1d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
    transition: all 0.2s ease;
    font-weight: 400;
    height: 48px;
}

.form-select:hover {
    border-color: #59c1d4;
    background-color: #f9fafb;
}

.form-select:focus {
    border-color: #59c1d4;
    box-shadow: 0 0 0 4px rgba(89, 193, 212, 0.12);
    background-color: #ffffff;
}

/* Select options styling - Enhanced */
.form-select option {
    padding: 14px 16px;
    font-size: 15px;
    color: #344054;
    background-color: #ffffff;
    font-weight: 400;
    line-height: 1.8;
    border-bottom: 1px solid #f2f4f7;
}

.form-select option:hover {
    background-color: #f0f9ff;
    color: #59c1d4;
}

.form-select option:checked,
.form-select option:active {
    background: linear-gradient(135deg, #59c1d4 0%, #6dd4e8 100%);
    color: #ffffff;
    font-weight: 500;
}

.form-select option[value=""] {
    color: #98a2b3;
    font-style: italic;
}

.form-select:hover {
    border-color: #98a2b3;
}

.form-select:focus {
    outline: none;
    border-color: #59c1d4;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(89, 193, 212, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

/* Doğum tarihi inputları */
.birth-date-inputs {
    display: flex;
    gap: 12px;
}

.birth-input {
    flex: 1;
    text-align: center;
}

/* Form container */
form {
    padding: 0;
    max-width: 100%;
}

/* Son kullanma tarihi stilleri */
.expiry-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.expiry-input {
    flex: 1;
    text-align: center;
}

.expiry-separator {
    font-size: 18px;
    font-weight: 600;
    color: #59c1d4;
    padding-top: 8px;
}

/* Custom Dropdown for Select */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper .form-select {
    cursor: pointer;
}

.custom-select-display {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.custom-select-display::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #59c1d4;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.custom-select-wrapper.active .custom-select-display::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-dropdown.active {
    display: block;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-dropdown-search {
    padding: 12px;
    border-bottom: 1.5px solid #f2f4f7;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
}

.custom-dropdown-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e4e7ec;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background-color: #f9fafb;
    color: #344054;
}

.custom-dropdown-search input:focus {
    outline: none;
    border-color: #59c1d4;
    background-color: #ffffff;
}

.custom-dropdown-options {
    padding: 4px 0;
}

.custom-option {
    padding: 12px 16px;
    font-size: 15px;
    color: #344054;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    border-bottom: 1px solid #f9fafb;
}

.custom-option:hover {
    background-color: #f0f9ff;
    color: #59c1d4;
}

.custom-option.selected {
    background: linear-gradient(135deg, #59c1d4 0%, #6dd4e8 100%);
    color: #ffffff;
    font-weight: 500;
    position: relative;
}

.custom-option.selected::after {
    content: '✓';
    position: absolute;
    right: 16px;
    font-weight: 700;
}

.custom-dropdown::-webkit-scrollbar {
    width: 8px;
}

.custom-dropdown::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
    background: #98a2b3;
}

/* Progress indicator */
.form-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e4e7ec;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #59c1d4;
    width: 24px;
    border-radius: 4px;
}

/* Alert mesajları */
.alert {
    padding: 16px 24px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-size: 14px;
    text-align: center;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.alert-error {
    background-color: #fee;
    color: #c33;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Butonlar */
.btn-primary {
    background: linear-gradient(135deg, #59c1d4 0%, #6dd4e8 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    width: 100%;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #344054;
    border: 1.5px solid #d0d5dd;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.form-actions .btn-primary:only-child {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Loading Ekranı */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #59c1d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #59c1d4;
    font-weight: 600;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 14px;
    color: #667085;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

.submit-btn {
    display: none;
}

/* Row sistemi */
.row {
    display: flex;
    gap: 16px;
    margin: 0 0 24px 0;
}

.col-md-6 {
    flex: 1;
}

.row .form-group {
    margin-bottom: 0;
}

/* Desktop (PC) optimizasyonu */
@media (min-width: 769px) {
    .container.mt20 {
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
        padding: 40px 20px;
    }
    
    .selected-card {
        padding: 24px;
        margin-bottom: 32px;
    }
    
    .selected-card-icon {
        width: 180px;
        height: 112px;
    }
    
    .selected-card-title {
        font-size: 20px;
    }
    
    .form-title {
        font-size: 26px;
    }
    
    .form-subtitle {
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: row;
    }
    
    .btn-primary,
    .btn-secondary {
        width: auto;
        flex: 1;
    }
    
    .form-select {
        padding: 13px 16px;
        padding-right: 44px;
    }
    
    .form-select option {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 44px;
    }
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .custom-dropdown {
        max-height: 250px;
    }
    
    .custom-dropdown-search input {
        font-size: 16px;
        padding: 12px;
    }
    
    .custom-option {
        padding: 14px 16px;
        font-size: 16px;
    }

    .container.mt20 {
        padding: 24px 16px;
    }
    
    .form-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .form-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .selected-card {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .selected-card-icon {
        width: 160px;
        height: 100px;
    }
    
    .selected-card-title {
        font-size: 18px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-control, .form-select {
        padding: 14px 16px;
        font-size: 16px;
        min-height: 50px;
    }
    
    .form-select {
        appearance: menulist;
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        background-image: none;
        padding-right: 16px;
        font-size: 16px;
        padding: 14px 16px;
    }
    
    .form-select option {
        padding: 16px;
        font-size: 16px;
        line-height: 1.8;
        min-height: 52px;
        font-weight: 500;
    }
    
    .row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 0;
    }
    
    .col-md-6 {
        margin-bottom: 0;
    }
    
    .form-actions {
        flex-direction: row;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        flex: 1;
        padding: 13px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container.mt20 {
        padding: 20px 12px;
    }
    
    .form-title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .form-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .selected-card {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .selected-card-icon {
        width: 140px;
        height: 87px;
    }
    
    .selected-card-title {
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-label {
        font-size: 13px;
        font-weight: 600;
    }
    
    .form-control, .form-select {
        padding: 14px 14px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .form-select {
        appearance: menulist;
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        background-image: none;
        padding: 15px 14px;
        padding-right: 14px;
        height: 54px;
        font-size: 16px;
    }
    
    .form-select option {
        padding: 18px 14px;
        font-size: 17px;
        line-height: 2;
        min-height: 56px;
        font-weight: 500;
    }
    
    .row {
        gap: 14px;
    }
    
    .form-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 14px 18px;
        font-size: 15px;
        min-height: 50px;
    }
}
