/* ============================================
   كروت الإهداء (صفحة /donations/gifts)
   ============================================ */
.gf-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    padding-top: 10px;
}

.gf-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 260px;
    width: 260px;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #dfe5e8;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.gf-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eaf3f2;
    color: #5aa3ad;
    font-size: 54px;
}

.gf-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gf-card-text {
    flex: 1;
    padding: 14px 14px 12px;
    background: #fff;
    color: #0a3f4a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.9;
    text-align: right;
    min-height: 74px;
}

.gf-card-footer {
    padding: 9px 14px 10px;
    background: #5aa3ad;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
}

/* ============================================
   صفحة تفاصيل الإهداء
   ============================================ */
.gf-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 980px;
    margin: 0 auto;
}

.gf-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    text-align: right;
}

.gf-preview-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 260px;
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--qd-light);
    color: var(--qd-dark);
    font-size: 54px;
}

.gf-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gf-preview-heading {
    margin: 0;
    color: var(--qd-deep);
    font-size: 40px;
    font-weight: 900;
}

.gf-preview-to {
    display: block;
    color: var(--qd-dark);
    font-size: 18px;
    font-weight: 700;
}

.gf-preview-title {
    margin: 6px 0 8px;
    color: var(--qd-deep);
    font-size: 22px;
    font-weight: 800;
}

.gf-preview-message {
    margin: 0;
    color: #243f43;
    font-size: 16px;
    font-weight: 600;
    line-height: 2;
}

.gf-preview-from {
    margin-top: 10px;
    color: var(--qd-dark);
    font-size: 17px;
    font-weight: 800;
}

.gf-preview-from strong {
    display: block;
    min-height: 24px;
    color: var(--qd-deep);
    font-size: 20px;
}

.gf-form-wrap {
    width: 100%;
}

.gf-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gf-field[hidden] {
    display: none;
}

.gf-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--qd-deep);
    font-size: 14px;
    font-weight: 800;
}

.gf-field input,
.gf-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1.5px solid var(--qd-dark);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--qd-deep);
    font-family: inherit;
    font-size: 15px;
}

.gf-field input:focus,
.gf-field select:focus {
    border-color: var(--qd-green);
    box-shadow: 0 0 0 3px rgba(27, 143, 132, .15);
}

.gf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    background: var(--qd-dark);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease;
}

.gf-submit:hover {
    background: var(--qd-green);
}

.qd-alert-box {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #ffd5d5;
    border-radius: 10px;
    background: #fff1f1;
    color: #c62828;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 991px) {
    .gf-details {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 575px) {
    .gf-card {
        flex-basis: 100%;
        width: 100%;
        max-width: 300px;
    }
}