* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
}

.header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

.form-container {
    padding: 40px;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

label .required {
    color: #dc2626;
}

input, select, textarea {
    padding: 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Date picker styling */
#dogumTarihi {
    cursor: pointer;
    background-color: white;
}

/* Flatpickr calendar styling */
.flatpickr-calendar {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    border-radius: 10px !important;
    z-index: 1000 !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

.flatpickr-day:hover {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
}

.flatpickr-months {
    background: #10b981 !important;
    border-radius: 10px 10px 0 0 !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: white !important;
}

/* Month dropdown styling */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #10b981 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: auto !important;
    min-width: 130px !important;
    max-width: 160px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months:focus {
    background: #059669 !important;
    outline: none !important;
}

.flatpickr-monthDropdown-months option {
    background-color: #10b981 !important;
    color: white !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    border: none !important;
}

.flatpickr-monthDropdown-months option:hover {
    background-color: #059669 !important;
    color: white !important;
}

.flatpickr-monthDropdown-months option:checked,
.flatpickr-monthDropdown-months option:selected {
    background-color: #059669 !important;
    color: white !important;
}

/* Year dropdown styling */
.flatpickr-current-month input.cur-year,
.flatpickr-year-dropdown {
    background: #10b981 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    width: auto !important;
    min-width: 80px !important;
    text-align: center !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.flatpickr-current-month input.cur-year:hover,
.flatpickr-current-month input.cur-year:focus,
.flatpickr-year-dropdown:hover,
.flatpickr-year-dropdown:focus {
    background: #059669 !important;
    color: white !important;
    outline: none !important;
}

.flatpickr-year-dropdown option {
    background-color: #10b981 !important;
    color: white !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}

.flatpickr-year-dropdown option:hover,
.flatpickr-year-dropdown option:checked,
.flatpickr-year-dropdown option:selected {
    background-color: #059669 !important;
    color: white !important;
}

/* Navigation arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
    color: white !important;
    fill: white !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #d1d5db !important;
    fill: #d1d5db !important;
}

/* Weekdays */
.flatpickr-weekdays {
    background: #f9fafb !important;
}

.flatpickr-weekday {
    background: transparent !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
}

/* Days */
.flatpickr-day {
    color: #374151 !important;
    border-radius: 6px !important;
    margin: 1px !important;
}

.flatpickr-day.today {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.flatpickr-day.today:hover {
    background: #10b981 !important;
    color: white !important;
}

.flatpickr-day.disabled {
    color: #d1d5db !important;
    cursor: not-allowed !important;
}

.input-container, .phone-container, .iban-container {
    position: relative;
}

.input-icon, .phone-icon, .iban-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    width: 20px;
    height: 20px;
    z-index: 10;
}

.input-container input, .phone-container input, .iban-container input, .input-container select, .input-container textarea {
    padding-left: 45px;
    width: 100%;
    box-sizing: border-box;
}

/* KVKK ve Sözleşme Bölümü - Sadeleştirilmiş */
.kvkk-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.kvkk-section h3 {
    text-align: center;
    color: #10b981;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.link-button {
    color: #10b981;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 5px;
    cursor: pointer;
}

.link-button:hover {
    color: #059669;
}

.kvkk-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kvkk-content h4 {
    color: #10b981;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kvkk-content h4:before {
    content: "🛡️";
    font-size: 20px;
}

.kvkk-content:last-child h4:before {
    content: "📋";
}

.kvkk-content p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.kvkk-content ul {
    margin: 15px 0;
    padding-left: 25px;
    color: #555;
}

.kvkk-content li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.kvkk-content li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.kvkk-content strong {
    color: #10b981;
    font-weight: 600;
}

small {
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 3px solid #10b981;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    background: white;
}

.custom-checkbox:disabled {
    border-color: #d1d5db;
    background: #f3f4f6;
    cursor: not-allowed;
}

.custom-checkbox:hover:not(:disabled) {
    transform: scale(1.1);
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.custom-checkbox:checked {
    background-color: #10b981;
    border-color: #10b981;
    transform: scale(1.05);
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 8px;
    height: 14px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    line-height: 1.6;
    font-weight: 500;
}

.checkbox-label strong {
    color: #10b981;
    font-weight: 700;
}

.checkbox-label .required {
    color: #dc2626;
    font-weight: bold;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.login-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-link:hover {
    text-decoration: underline;
    color: #059669;
}

.submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669, #047857);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .header {
        padding: 25px 15px;
    }
    
    .header h2 {
        font-size: 24px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .kvkk-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .kvkk-content {
        padding: 20px;
    }
    
    .checkbox-container {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .custom-checkbox {
        margin-top: 0;
    }
    
    .form-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .submit-btn {
        width: 100%;
        order: 2;
    }
    
    .login-link {
        order: 1;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    .kvkk-section {
        padding: 15px;
    }
    
    .kvkk-content {
        padding: 15px;
    }
    
    input, select, textarea {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 10px;
        width: 18px;
        height: 18px;
    }
}

/* Select dropdown arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

/* Input validation styles */
.is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.is-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}

.modal-body h3 {
    color: #10b981;
    margin-bottom: 20px;
    font-size: 20px;
}

.modal-body h4 {
    color: #374151;
    margin: 20px 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.modal-body ul {
    margin: 10px 0 20px 20px;
    color: #555;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-body p {
    margin-bottom: 15px;
    color: #374151;
}

.modal-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel {
    background-color: #6b7280;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.btn-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-accept:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Modal responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .btn-cancel, .btn-accept {
        width: 100%;
        margin: 5px 0;
    }
}