/* Iletisim formu gonderim durumu ve sonuc mesaji (main.contactform.js). _ContactFormStatus bir kez yukler. */

/* Gonderilirken dugme yerinde kalir; icinde donen halka ve "Gonderiliyor..." yazar. */
form [type="submit"].is-sending {
    cursor: progress;
    opacity: .85;
}

form [type="submit"].is-sending::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: .6em;
    vertical-align: -.15em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: gsu-contact-spin .7s linear infinite;
}

@keyframes gsu-contact-spin {
    to { transform: rotate(360deg); }
}

/* Bos alan yer kaplamaz ama sayfada kalir: role="status" bolgesi icerik gelmeden once var olmali ki
   ekran okuyucu degisikligi duyursun. */
.contact-form-status {
    margin-top: 18px;
    text-align: left;
}

.contact-form-status:empty {
    margin-top: 0;
}

.contact-form-status--success,
.contact-form-status--warning,
.contact-form-status--danger {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px 14px 16px;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.55;
    animation: gsu-contact-in .25s ease-out;
}

.contact-form-status svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.contact-form-status p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.contact-form-status--success {
    background: #eef7f1;
    border-color: #c4e3cf;
    border-left-color: #2f7d4f;
    color: #1e4d33;
}

.contact-form-status--warning {
    background: #fff8e0;
    border-color: #f0dc9a;
    border-left-color: #f5c000;
    color: #5c4500;
}

.contact-form-status--danger {
    background: #fcefee;
    border-color: #efc4c1;
    border-left-color: #a70301;
    color: #6e1210;
}

@keyframes gsu-contact-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
