.rotin-address-card {
    margin: 18px 0;
    padding: 20px;
    border: 1px solid #dcd8ff;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f7ff 55%, #effcf8 100%);
    box-shadow: 0 14px 34px rgba(52, 39, 130, .07);
}

.rotin-address-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.rotin-address-heading > div { flex: 1; min-width: 0; }
.rotin-address-heading strong { display: block; color: #14244a; font-size: 16px; }
.rotin-address-heading small { display: block; margin-top: 3px; color: #66728f; line-height: 1.45; }
.rotin-address-heading em { padding: 6px 10px; border-radius: 999px; background: #efeaff; color: #5b40df; font-size: 11px; font-style: normal; font-weight: 800; }

.rotin-address-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: linear-gradient(145deg, #745bff, #4a2fcf);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(92, 65, 224, .25);
}

.rotin-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rotin-address-grid label { display: grid; gap: 7px; color: #243454; font-size: 13px; font-weight: 700; }
.rotin-address-grid input,
.rotin-address-grid select,
.rotin-address-grid textarea {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid #d7ddec;
    border-radius: 13px;
    background: #fff;
    color: #14244a;
    font: inherit;
    font-weight: 500;
    box-sizing: border-box;
}
.rotin-address-grid textarea { min-height: 82px; resize: vertical; }
.rotin-address-grid input:focus,
.rotin-address-grid select:focus,
.rotin-address-grid textarea:focus { outline: 3px solid rgba(105, 80, 238, .13); border-color: #7259ef; }
.rotin-address-grid select:disabled { opacity: .65; cursor: wait; }
.rotin-address-combobox {
    position: relative;
    display: block;
    min-width: 0;
}
.rotin-address-combobox > input[type="text"] { padding-right: 56px; }
.rotin-address-combobox > input[type="text"]:disabled { background: #f1f3f8; color: #7c8498; cursor: not-allowed; }
.rotin-address-combobox-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(145deg, #f3f0ff, #ebe7ff);
    color: #5b43dc;
    box-shadow: inset 0 0 0 1px #ded7ff;
    cursor: pointer;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.rotin-address-combobox-toggle:hover { background: #e6e0ff; box-shadow: inset 0 0 0 1px #cfc4ff; }
.rotin-address-combobox-toggle:active { transform: translateY(1px); }
.rotin-address-combobox-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .16s ease;
}
.rotin-address-combobox:focus-within .rotin-address-combobox-toggle svg { transform: rotate(180deg); }
.rotin-address-combobox-toggle:disabled { cursor: not-allowed; opacity: .45; }
.rotin-address-results {
    position: absolute;
    z-index: 90;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    max-height: 270px;
    padding: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #d8d4f5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(34, 27, 86, .18);
}
.rotin-address-results[hidden] { display: none; }
.rotin-address-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #1e2c4d;
    text-align: left;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}
.rotin-address-option:hover,
.rotin-address-option.is-active { background: #f0edff; color: #5339db; }
.rotin-address-option[aria-selected="true"] { background: #eefbf6; color: #0c805d; }
.rotin-address-option b { flex: 0 0 auto; color: #1cb889; font-size: 15px; }
.rotin-address-empty { display: block; padding: 12px; color: #7a8298; font-size: 12px; font-weight: 600; text-align: center; }
.rotin-address-wide { grid-column: 1 / -1; }
.rotin-address-privacy { display: flex; gap: 7px; align-items: flex-start; margin: 14px 0 0; color: #6c7690; font-size: 11px; line-height: 1.5; }

.address-page-shell { max-width: 900px; margin: 0 auto; }
.address-page-heading { margin-bottom: 28px; }
.address-page-form { padding: 0 0 32px; }
.address-page-actions { justify-content: flex-end; }

/* Öğrenci kabuğundaki eksik görev bandı negatif alt boşluk kullanır. Bu sayfada
   başlığı banda bindirmeden, yönetim panelinin yerleşimine dokunmadan ayır. */
.student-interface .student-missed-warning ~ .address-page-shell { margin-top: 42px; }
.student-interface .address-page-heading {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 20px 22px 18px;
    border: 1px solid rgba(211, 204, 255, .92);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(245, 242, 255, .94) 58%, rgba(235, 252, 247, .9));
    box-shadow: 0 12px 30px rgba(49, 37, 121, .07);
}
.student-interface .address-page-heading::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(102, 75, 232, .055);
    pointer-events: none;
}
.student-interface .address-page-heading > div { position: relative; z-index: 1; }
.student-interface .address-page-heading .eyebrow {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eeeaff;
    color: #5b42df;
}
.student-interface .address-page-heading h1 { margin: 7px 0 5px; font-size: clamp(28px, 3vw, 36px); }
.student-interface .address-page-heading p { font-size: 13px; line-height: 1.5; }

.form-grid > .rotin-address-card,
.form-grid > .parent-address-choice,
.form-grid > .parent-address-fields,
.institution-parent-new > .rotin-address-card {
    grid-column: 1 / -1;
}

.parent-address-choice {
    padding: 12px 14px;
    border: 1px solid #dcd8ff;
    border-radius: 14px;
    background: #f8f7ff;
}
.parent-address-choice label { display: flex; align-items: center; gap: 9px; color: #273757; font-size: 13px; font-weight: 700; }
.parent-address-choice input[type="checkbox"] { width: 18px; height: 18px; accent-color: #6348e8; }
.parent-address-fields > .rotin-address-card { margin-top: 0; }

@media (max-width: 720px) {
    .rotin-address-card { padding: 16px; border-radius: 18px; }
    .rotin-address-heading { align-items: flex-start; }
    .rotin-address-heading em { display: none; }
    .rotin-address-grid { grid-template-columns: 1fr; }
    .rotin-address-wide { grid-column: auto; }
    .rotin-address-results { max-height: min(240px, 38vh); }
    .student-interface .student-missed-warning ~ .address-page-shell { margin-top: 24px; }
    .student-interface .address-page-heading { padding: 17px 16px 15px; border-radius: 18px; }
    .student-interface .address-page-heading h1 { font-size: 28px; }
    .address-page-actions { gap: 12px; }
}
