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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

#formContent {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.form-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

#hasta_tipi_section {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative;
}

#hasta_tipi_section .option-cards {
    width: 100% !important;
    max-width: 100% !important;
}

#hasta_tipi_section .option-card {
    max-width: 100% !important;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header .header-logo {
    display: block;
    height: 52px;
    width: auto;
    margin: 0 auto 14px;
}

header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

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

main {
    padding: 40px;
}

.form-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.action-buttons {
    padding: 20px 40px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #e0e0e0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

main {
    padding: 40px;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 100px;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

/* Form stilleri ekran görüntülerine göre eklenecek */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.form-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.required {
    color: #d32f2f;
}

.patient-name-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

@media (min-width: 768px) {
    .patient-name-group {
        flex-direction: row;
    }
}

.patient-name-group .form-group {
    flex: 1 1 0;
    min-width: 0;
}

@media (min-width: 768px) {
    .patient-name-group .form-group.small {
        flex: 0 0 45px;
    }
}

.patient-name-group input {
    font-size: 18px !important;
    padding: 14px !important;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500 !important;
}

.option-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    justify-content: center;
}

.option-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    flex: 0 1 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .option-card {
        flex: 0 1 48%;
        max-width: 48%;
    }
}

@media (min-width: 1024px) {
    .option-card {
        flex: 0 1 31%;
        max-width: 31%;
    }
}

.option-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.option-card.selected {
    border-color: #667eea;
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: #f8f9ff;
    transform: translateY(-2px);
}

.option-card.selected .option-icon {
    transform: scale(1.05);
}

.option-icon {
    font-size: 60px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.option-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.option-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.option-select {
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

.option-select input[type="radio"] {
    display: none;
}

.option-select span {
    display: block;
    background: #00a0dc;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.option-select:hover span {
    background: #0088bb;
}

.option-select input[type="radio"]:checked + span {
    background: #667eea;
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f0f0f0;
}

.product-section {
    display: none;
}

.product-section.active {
    display: block;
}

.treatment-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.treatment-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.treatment-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.treatment-card.selected {
    border-color: #667eea;
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: #f8f9ff;
    transform: translateY(-2px);
}

.treatment-card.selected h3 {
    background: #667eea;
}

.treatment-card h3 {
    background: #4a4a4a;
    color: white;
    padding: 12px;
    margin: -20px -20px 15px -20px;
    border-radius: 6px 6px 0 0;
    font-size: 16px;
    font-weight: 600;
}

.treatment-details {
    margin-bottom: 15px;
}

.stage-info {
    color: #00a0dc;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stage-info.unlimited {
    color: #667eea;
}

.treatment-card .description {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.pricing {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price-item.sub {
    margin-left: 15px;
    margin-top: -5px;
}

.price-item.sub .price-label {
    font-size: 11px;
    color: #999;
}

.price-label {
    color: #666;
    font-size: 13px;
}

.price-amount {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.treatment-section {
    display: none;
}

.treatment-section.active {
    display: block;
}

/* Detaylı Form Stilleri */
.detailed-form {
    background: #fff;
    border: 2px solid #667eea;
}

.detailed-form h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 10px;
}

.patient-info {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: right;
}

.form-subsection {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-subsection:last-child {
    border-bottom: none;
}

.form-subsection h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-subsection h3 .subtitle {
    color: #666;
    font-size: 14px;
    font-weight: 400;
}

.form-subsection h3 .learn-more {
    font-size: 13px;
    color: #2196F3;
    text-decoration: none;
    margin-left: 5px;
}

.subtitle {
    font-weight: normal;
    color: #666;
    font-size: 14px;
}

.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group-horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.caprasiklik-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.caprasiklik-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.caprasiklik-table tr:last-child {
    border-bottom: none;
}

.caprasiklik-table td {
    padding: 12px 10px;
}

.caprasiklik-table .label-col {
    width: 30%;
    font-weight: 500;
    color: #333;
}

.caprasiklik-table .radio-col {
    width: 23.33%;
}

.radio-item-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.radio-item-inline input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-item-inline span {
    color: #333;
    font-size: 14px;
}

.link-style {
    color: #2196F3;
    text-decoration: none;
}

.link-style:hover {
    text-decoration: underline;
}

.dis-cekimi-grid {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.tooth-checkbox {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 3px;
}

.tooth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tooth-checkbox span {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.side-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 10px;
}

.side-label-left,
.side-label-right {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.search-button:hover {
    background: #f5f5f5;
}

.search-button:active {
    background: #e0e0e0;
}

.radio-item.sub-option {
    margin-left: 30px;
    font-size: 14px;
}

/* Diş Grid Stilleri */
.teeth-grid {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.teeth-controls {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.teeth-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.teeth-label {
    font-weight: 600;
    color: #666;
    min-width: 40px;
    font-size: 13px;
}

.teeth-numbers {
    display: flex;
    gap: 5px;
}

.teeth-numbers label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.teeth-numbers label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.teeth-numbers label span {
    font-size: 12px;
    color: #666;
}

.teeth-separator {
    width: 2px;
    height: 40px;
    background: #ddd;
    margin: 0 10px;
}

.form-note {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
}

/* A-P İlişkisi Tablosu */
.ap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.ap-table th,
.ap-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.ap-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.ap-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.ap-table input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.small-text {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.learn-more {
    color: #00a0dc;
    font-size: 13px;
    text-decoration: none;
    margin-left: 5px;
}

.learn-more:hover {
    text-decoration: underline;
}

.checkbox-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:disabled,
.checkbox-item input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.checkbox-item:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-item:has(input:disabled) span {
    color: #999;
}

.checkbox-item span {
    line-height: 1.5;
}

.indent-1 {
    margin-left: 30px;
}

.indent-2 {
    margin-left: 60px;
}

.sub-options {
    margin-left: 30px;
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.sub-text {
    color: #666;
    font-size: 13px;
    margin: 10px 0 8px 0;
    font-style: italic;
}

.info-text {
    background: #e7f3ff;
    border-left: 3px solid #2196F3;
    padding: 12px;
    margin: 15px 0;
    font-size: 13px;
    color: #0d47a1;
    line-height: 1.6;
}

.mandibular-options {
    margin-left: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.ma-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ma-section:last-child {
    border-bottom: none;
}

.ma-section h4 {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

.ma-section .radio-item {
    margin-bottom: 10px;
}


.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    margin-right: 8px;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
}

/* Refinement Form Styles */
.refinement-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-sizing: border-box;
}

.refinement-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.refinement-header h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
    text-align: left;
}

.talimatlar-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.talimatlar-box h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.talimatlar-box ol {
    margin: 0;
    padding-left: 20px;
    color: #555;
    line-height: 1.8;
}

.talimatlar-box li {
    margin-bottom: 8px;
    font-size: 14px;
}

.refinement-container .form-group {
    margin-bottom: 30px;
}

.refinement-container .form-group h3 {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group-vertical .radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.radio-group-vertical .radio-item:hover {
    background: #f5f5f5;
}

.radio-group-vertical input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-group-vertical span {
    font-size: 14px;
    color: #333;
}

.refinement-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.hizalayici-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.hizalayici-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.hizalayici-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.hizalayici-label span {
    font-size: 14px;
    color: #333;
}

.hizalayici-input {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.hizalayici-input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.ek-link {
    color: #0066cc;
    text-decoration: underline;
    font-size: 13px;
    white-space: nowrap;
}

.ek-link:hover {
    color: #0052a3;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.form-actions button {
    padding: 12px 40px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.refinement-container .btn-primary {
    background: #00a8e1;
    color: white;
    margin: 0;
    width: auto;
}

.refinement-container .btn-primary:hover {
    background: #0090c4;
}

.sub-option-group {
    margin-top: 8px;
    margin-bottom: 12px;
}

.radio-item.sub-option {
    padding-left: 0;
    font-size: 13px;
}

.radio-item.main-option {
    font-weight: 500;
}

.olculer-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.radio-item-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-right: 20px;
}

.radio-item-inline input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio-item-inline span {
    font-size: 14px;
    color: #333;
}

.info-link {
    color: #0066cc;
    text-decoration: underline;
    font-size: 13px;
    font-weight: normal;
}

.info-link:hover {
    color: #0052a3;
}

.tooth-grid {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tooth-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tooth-label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    min-width: 40px;
}

.tooth-numbers {
    display: flex;
    gap: 4px;
}

.tooth-separator {
    width: 2px;
    height: 30px;
    background: #999;
    margin: 0 10px;
}

.tooth-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    transition: all 0.2s;
    min-width: 40px;
}

.tooth-checkbox:hover {
    background: #e8f4f8;
    border-color: #00a8e1;
}

.tooth-checkbox input[type="checkbox"] {
    margin-bottom: 4px;
    cursor: pointer;
}

.tooth-checkbox input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tooth-checkbox.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.tooth-checkbox span {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.tooth-checkbox input[type="checkbox"]:checked + span {
    color: #00a8e1;
    font-weight: 600;
}

.dis-not {
    font-style: italic;
}

.version-info {
    text-align: center;
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: white !important;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    width: 100%;
}

.char-counter {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    text-align: right;
}

.char-counter.over-limit {
    color: #ef4444;
    font-weight: 600;
}

@media (max-width: 768px) {
    .version-info {
        font-size: 10px;
        padding: 15px 10px;
        letter-spacing: 0.5px;
    }
}

@media print {
    .action-buttons,
    .version-info {
        display: none;
    }
    
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
    }
}

/* Kısa bildirim (toast) */
.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
    background: #16a34a;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Süt dişleri satırı (Invisalign First) */
.teeth-row-primary {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed #e5e7eb;
}

.teeth-row-primary .teeth-label {
    font-size: 11px;
    color: #9ca3af;
}

.teeth-row-primary label span,
.teeth-row-primary .tooth-checkbox span {
    color: #6b7280;
}

/* Flex Rx formu */
.flex-form .template-note {
    margin: 8px 0 14px 0;
    padding: 8px 12px;
    background: #f8fafc;
    border-left: 3px solid #cbd5e1;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.flex-h4 {
    margin: 16px 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.flex-pref {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fff;
}

.flex-pref.overridden {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.12);
}

.flex-pref-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flex-pref-title {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
}

.flex-override {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
}

.flex-pref-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.flex-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.flex-select-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}

.flex-select,
.flex-text,
.flex-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    margin-top: 6px;
}

.flex-textarea {
    resize: vertical;
}

.checkbox-group-horizontal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.flex-teeth .teeth-row {
    margin-bottom: 6px;
}

@media (max-width: 700px) {
    .flex-two-col {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------
   Form varsayılanları düzenleme modu (form.html?defaults=<anahtar>)
   --------------------------------------------------------------------- */
body.defaults-mode #hasta_bilgileri_section,
body.defaults-mode #form_turu_section,
body.defaults-mode #hasta_tipi_section,
body.defaults-mode .product-section,
body.defaults-mode .treatment-section {
    display: none !important;
}

.defaults-banner {
    margin: 20px 20px 0;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 6px solid #f59e0b;
    border-radius: 8px;
    color: #78350f;
    font-size: 14px;
    line-height: 1.5;
}

.defaults-banner strong {
    color: #92400e;
}

.defaults-status {
    display: block;
    margin-top: 6px;
    font-weight: 600;
    color: #6b7280;
}

.defaults-status.custom {
    color: #047857;
}
