/* =========================================================
   Track Your Tree
   Upload as: /assets/css/planted-trees-track.css
========================================================= */

.ns-tree-track-section {
    padding: 3.5rem 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(201, 148, 79, 0.10), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(73, 53, 43, 0.08), transparent 32%),
        #fbf6ef;
}

.ns-tree-track-wrap {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) 46px minmax(460px, 1.55fr);
    gap: 1.4rem;
    align-items: center;
}

.ns-tree-track-search {
    position: relative;
    min-height: 250px;
    padding: 2.1rem 2rem;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.72), rgba(248,240,229,0.94));
    border: 1px solid rgba(73, 53, 43, 0.13);
    box-shadow: 0 18px 42px rgba(40, 28, 17, 0.08);
    text-align: center;
}

.ns-tree-track-search h2 {
    margin: 0 0 0.65rem;
    color: #281c11;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.65rem;
    line-height: 1;
    font-weight: 700;
}

.ns-tree-track-search p {
    max-width: 380px;
    margin: 0 auto 1.35rem;
    color: #5d5148;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.45;
}

.ns-tree-track-form {
    display: grid;
    grid-template-columns: 1fr 58px;
    max-width: 380px;
    margin: 0 auto;
    background: #fffaf5;
    border: 1px solid rgba(73, 53, 43, 0.18);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(40, 28, 17, 0.05);
}

.ns-tree-track-form input {
    min-width: 0;
    height: 56px;
    padding: 0 1.1rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: #2f2219;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.ns-tree-track-form button {
    width: 58px;
    height: 56px;
    border: 0;
    background: #21140d;
    color: #e6d4b9;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.ns-tree-track-form button:hover {
    background: #49352b;
}

.ns-tree-track-help {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    font-size: 0.92rem !important;
}

.ns-tree-track-help a {
    color: #41572b;
    font-weight: 700;
    text-decoration: underline;
}

.ns-tree-track-alert {
    max-width: 380px;
    margin: 1rem auto 0;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(125, 46, 35, 0.09);
    color: #7d2e23;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.ns-tree-track-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(88, 107, 57, 0.65);
    font-size: 2rem;
}

.ns-tree-result-card {
    min-height: 250px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(24, 48, 13, 0.98), rgba(38, 64, 20, 0.98));
    color: #fff;
    box-shadow: 0 22px 48px rgba(40, 28, 17, 0.18);
    border: 1px solid rgba(255,255,255,0.13);
}

.ns-tree-result-main {
    position: relative;
    padding: 1.6rem 1.65rem;
}

.ns-tree-result-label {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(228, 210, 162, 0.16);
    color: #e9d8a8;
    border: 1px solid rgba(228, 210, 162, 0.18);
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.ns-tree-result-layout {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 1.25rem;
    align-items: center;
}

.ns-tree-result-image {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    padding: 5px;
    background: rgba(255,255,255,0.20);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.ns-tree-result-image img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ns-tree-result-details span {
    display: block;
    margin-bottom: 0.2rem;
    color: rgba(255,255,255,0.65);
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
}

.ns-tree-result-details h3 {
    margin: 0 0 0.85rem;
    color: #fff2d6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.35rem;
    line-height: 1;
    font-weight: 700;
}

.ns-tree-result-details p {
    margin: 0 0 0.8rem;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    line-height: 1.05;
    font-weight: 600;
}

.ns-tree-result-status {
    padding: 1.65rem 1.55rem;
    background: rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255,255,255,0.12);
}

.ns-tree-result-status h4 {
    margin: 0 0 1.05rem;
    color: #fff2d6;
    font-family: 'Poppins', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
}

.ns-tree-status-list {
    position: relative;
    display: grid;
    gap: 0.85rem;
}

.ns-tree-status-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 0.55rem;
    align-items: center;
    color: rgba(255,255,255,0.55);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.ns-tree-status-item::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 19px;
    width: 2px;
    height: 24px;
    background: rgba(255,255,255,0.18);
}

.ns-tree-status-item:last-child::before {
    display: none;
}

.ns-tree-status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.32);
    background: rgba(255,255,255,0.10);
}

.ns-tree-status-item.is-complete {
    color: #fff;
}

.ns-tree-status-item.is-complete .ns-tree-status-dot {
    background: #9bbd72;
    border-color: #d8f0bb;
    box-shadow: 0 0 0 4px rgba(155, 189, 114, 0.16);
}

.ns-tree-status-item strong {
    font-weight: 700;
}

.ns-tree-status-item em {
    color: rgba(255,255,255,0.68);
    font-style: normal;
    font-size: 0.82rem;
    text-align: right;
}

.ns-tree-result-message {
    margin: 1.1rem 0 0;
    color: #e9d8a8;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.ns-tree-result-empty {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
}

.ns-tree-result-empty h3 {
    color: #fff2d6;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
}

.ns-tree-result-empty p {
    color: rgba(255,255,255,0.72);
}

@media (max-width: 991px) {
    .ns-tree-track-wrap {
        grid-template-columns: 1fr;
    }

    .ns-tree-track-arrow {
        transform: rotate(90deg);
    }

    .ns-tree-result-card {
        grid-template-columns: 1fr;
    }

    .ns-tree-result-status {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
}

@media (max-width: 575px) {
    .ns-tree-track-search {
        padding: 1.8rem 1.25rem;
    }

    .ns-tree-track-search h2 {
        font-size: 2.25rem;
    }

    .ns-tree-result-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ns-tree-result-image {
        margin: 0 auto;
    }

    .ns-tree-status-item {
        grid-template-columns: 24px 1fr;
    }

    .ns-tree-status-item em {
        grid-column: 2;
        text-align: left;
    }
}
