/* =========================================================
   RCV VERIFICATION SEARCH
   Modern Professional Design
========================================================= */


/* =========================================================
   SEARCH FORM
========================================================= */

.rcv-search-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    margin: 0;
}


/* =========================================================
   SEARCH FIELD
========================================================= */

.rcv-search-field {
    flex: 1;
    min-width: 0;
}

/* =========================================================
   INPUT
========================================================= */

.rcv-search-input {
    display: block;
    width: 100%;
    height: 50px !important;
    padding: 0 16px;
    margin: 0;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px !important;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* Placeholder */

.rcv-search-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}


/* Hover */

.rcv-search-input:hover {
    border-color: #9ca3af;
}


/* Focus */

.rcv-search-input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================================================
   BUTTON AREA
========================================================= */

.rcv-search-actions {
    flex: 0 0 auto;
}


/* =========================================================
   VERIFY BUTTON
========================================================= */

.rcv-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    min-width: 170px;
    padding: 0 24px;

    border: 0;
    border-radius: 10px;

    color: #ffffff;
    background: linear-gradient(
        135deg,
        #2563eb 0%,
        #4f46e5 100%
    );

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(37, 99, 235, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


/* Button Hover */

.rcv-search-button:hover {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #1d4ed8 0%,
        #4338ca 100%
    );

    transform: translateY(-2px);

    box-shadow:
        0 9px 22px rgba(37, 99, 235, 0.28);
}


/* Button Active */

.rcv-search-button:active {
    transform: translateY(0);
    box-shadow:
        0 4px 10px rgba(37, 99, 235, 0.20);
}


/* Keyboard Focus */

.rcv-search-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .rcv-search-form {
        gap: 12px;
    }

    .rcv-search-button {
        min-width: 150px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .rcv-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .rcv-search-field {
        width: 100%;
    }

    .rcv-search-input {
        height: 50px;
        font-size: 14px;
    }

    .rcv-search-actions {
        width: 100%;
    }

    .rcv-search-button {
        width: 100%;
        height: 50px;
        min-width: 0;
    }
}



/* =========================================================
   PREMIUM RESULT VERIFICATION
   ========================================================= */

.result-verification {
    --rv-primary: #1d4ed8;
    --rv-primary-hover: #1e40af;
    --rv-primary-light: #eff6ff;

    --rv-success: #15803d;
    --rv-success-light: #f0fdf4;
    --rv-success-border: #bbf7d0;

    --rv-dark: #0f172a;
    --rv-text: #334155;
    --rv-muted: #64748b;
    --rv-light-text: #94a3b8;

    --rv-border: #e2e8f0;
    --rv-border-light: #f1f5f9;

    --rv-background: #f8fafc;
    --rv-white: #ffffff;

    color: var(--rv-text);

    font-family: inherit;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   GLOBAL
   ========================================================= */

.result-verification *,
.result-verification *::before,
.result-verification *::after {
    box-sizing: border-box;
}

.result-verification img {
    max-width: 100%;
}

.result-verification a {
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


/* =========================================================
   SEARCH PANEL
   ========================================================= */

.result-search {
    position: relative;

    overflow: hidden;

    margin-bottom: 24px;

    padding: 26px 28px;

    background: var(--rv-white);

    border: 1px solid var(--rv-border);

    border-radius: 18px;

    box-shadow:
        0 4px 6px rgba(15, 23, 42, .02),
        0 15px 35px rgba(15, 23, 42, .055);
}

.result-search::before {
    content: "";

    position: absolute;

    right: -55px;
    top: -65px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(29, 78, 216, .08),
            rgba(29, 78, 216, 0) 70%
        );

    pointer-events: none;
}

.result-search-label {
    position: relative;
    z-index: 1;

    display: block;

    margin: 0 0 11px;

    color: var(--rv-dark);

    font-size: 14px;

    font-weight: 750;

    letter-spacing: -.01em;
}

.result-search-form {
    position: relative;
    z-index: 1;

    display: flex;

    align-items: stretch;

    gap: 10px;

    width: 100%;
}

.result-search-field {
    flex: 1;

    min-width: 0;
}

.result-search-input {
    display: block;
    width: 100%;
    height: 50px !important;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px !important;
    color: var(--rv-dark);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.result-search-input::placeholder {
    color: #94a3b8;
}

.result-search-input:hover {
    border-color: #94a3b8;
}

.result-search-input:focus {
    border-color: var(--rv-primary);

    box-shadow:
        0 0 0 3px rgba(29, 78, 216, .09);
}

.result-search-actions {
    flex: 0 0 auto;
}

.result-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    box-shadow:
        0 6px 14px rgba(29, 78, 216, .17);
}

.result-search-button:hover {
    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #1e40af
        );

    transform: translateY(-1px);

    box-shadow:
        0 9px 20px rgba(29, 78, 216, .22);
}

.result-search-button:active {
    transform: translateY(0);
}


/* =========================================================
   VERIFIED STATUS BAR
   ========================================================= */

.result-verified-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;

    padding: 15px 19px;

    background:
        linear-gradient(
            90deg,
            #f0fdf4 0%,
            #f7fee7 100%
        );

    border: 1px solid var(--rv-success-border);

    border-radius: 13px;
}

.result-verified-badge {
    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--rv-success);

    font-size: 14px;

    font-weight: 750;
}

.result-verified-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    border-radius: 50%;

    background: #16a34a;

    color: #ffffff;

    font-size: 14px;

    font-weight: 900;

    box-shadow:
        0 3px 8px rgba(22, 163, 74, .18);
}

.result-verification-info {
    color: #166534;

    font-size: 12px;

    font-weight: 650;
}


/* =========================================================
   STUDENT PROFILE
   ========================================================= */

.result-profile-section {
    margin-bottom: 32px;
}

.result-profile-card {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    gap: 24px;

    min-height: 160px;

    padding: 27px 30px;

    background: var(--rv-white);

    border: 1px solid var(--rv-border);

    border-radius: 18px;

    box-shadow:
        0 8px 20px rgba(15, 23, 42, .035),
        0 20px 45px rgba(15, 23, 42, .045);
}

.result-profile-card::after {
    content: "";

    position: absolute;

    right: -90px;
    top: -90px;

    width: 230px;
    height: 230px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(29, 78, 216, .07),
            transparent 68%
        );

    pointer-events: none;
}

.result-student-photo {
    position: relative;
    z-index: 1;

    width: 112px;
    height: 112px;

    flex: 0 0 112px;

    padding: 4px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #2563eb,
            #60a5fa
        );

    box-shadow:
        0 8px 22px rgba(37, 99, 235, .18);
}

.result-student-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border: 3px solid #ffffff;

    border-radius: 50%;

    background: #f1f5f9;
}

.result-student-heading {
    position: relative;
    z-index: 1;

    min-width: 0;
}

.result-student-name {
    margin: 0 0 9px;

    color: var(--rv-dark);

    font-size: 28px;

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -.025em;
}

.result-student-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin: 0;

    padding: 5px 10px;

    background: var(--rv-success-light);

    border: 1px solid #dcfce7;

    border-radius: 999px;

    color: var(--rv-success);

    font-size: 11px;

    font-weight: 750;
}

.result-status-dot {
    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, .11);
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.result-section-title {
    display: flex;

    align-items: center;

    gap: 10px;

    margin: 0 0 14px;
}

.result-section-title::before {
    content: "";

    width: 4px;
    height: 21px;

    flex: 0 0 4px;

    border-radius: 4px;

    background:
        linear-gradient(
            180deg,
            #3b82f6,
            #1d4ed8
        );
}

.result-section-title h3 {
    margin: 0;

    color: var(--rv-dark);

    font-size: 19px;

    line-height: 1.3;

    font-weight: 800;

    letter-spacing: -.018em;
}


/* =========================================================
   FIELD SECTION
   ========================================================= */

.result-fields-section,
.result-custom-data-section {
    margin-bottom: 32px;
}

.result-fields-grid {
    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    gap: 13px;
}

.result-field-item {
    position: relative;

    grid-column: span 12;

    min-width: 0;

    padding: 17px 19px 17px 20px;

    background: #ffffff;

    border: 1px solid var(--rv-border);

    border-radius: 12px;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, .025);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.result-field-item::before {
    content: "";

    position: absolute;

    left: 0;
    top: 14px;
    bottom: 14px;

    width: 3px;

    border-radius: 0 4px 4px 0;

    background: #dbeafe;
}

.result-field-item:hover {
    border-color: #bfdbfe;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(15, 23, 42, .055);
}

.result-field-item:hover::before {
    background: var(--rv-primary);
}

.result-field-width-25 {
    grid-column: span 3;
}

.result-field-width-33,
.result-field-width-33-33 {
    grid-column: span 4;
}

.result-field-width-50 {
    grid-column: span 6;
}

.result-field-width-66,
.result-field-width-66-66 {
    grid-column: span 8;
}

.result-field-width-75 {
    grid-column: span 9;
}

.result-field-width-100 {
    grid-column: span 12;
}

.result-field-label {
    margin-bottom: 5px;
    color: var(--rv-muted);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .065em;
}

.result-field-value {
    color: var(--rv-dark);
    font-size: 14px;
    line-height: 1.65;
    /* font-weight: 600; */
    word-break: break-word;
}

.result-field-value a {
    color: var(--rv-primary);

    font-weight: 700;

    text-decoration: none;

    word-break: break-all;
}

.result-field-value a:hover {
    color: var(--rv-primary-hover);

    text-decoration: underline;
}

.result-custom-field-image {
    display: block;

    width: auto;
    max-width: 100%;

    max-height: 180px;

    border: 1px solid var(--rv-border);

    border-radius: 9px;

    object-fit: contain;
}

.result-file-link {
    display: inline-flex;

    align-items: center;

    min-height: 34px;

    padding: 0 11px;

    background: var(--rv-primary-light);

    border: 1px solid #dbeafe;

    border-radius: 8px;

    color: var(--rv-primary) !important;

    font-size: 12px;

    font-weight: 750;

    text-decoration: none !important;
}

.result-file-link:hover {
    background: #dbeafe;

    border-color: #bfdbfe;

    transform: translateY(-1px);
}


/* =========================================================
   RESULT
   ========================================================= */

.result-section {
    margin-bottom: 32px;
}

.result-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--rv-border);

    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, .045);
}

.result-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 62px;

    padding: 15px 20px;

    border-bottom: 1px solid var(--rv-border-light);

    transition: background .2s ease;
}

.result-row:hover {
    background: #f8fafc;
}

.result-row:last-child {
    border-bottom: 0;
}

.result-label {
    color: var(--rv-muted);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.result-value {
    color: var(--rv-dark);
    font-size: 15px;
    /* font-weight: 800; */
    text-align: right;
}


/* =========================================================
   CERTIFICATE
   ========================================================= */

.result-certificate-section {
    margin-bottom: 32px;
}

.result-certificate-card {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 23px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    border: 1px solid #dbeafe;

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(29, 78, 216, .055);
}

.result-certificate-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            #3b82f6,
            #1d4ed8
        );
}

.result-certificate-card::after {
    content: "";

    position: absolute;

    right: -100px;
    bottom: -120px;

    width: 270px;
    height: 270px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, .065),
            transparent 68%
        );

    pointer-events: none;
}

.result-certificate-icon {
    position: relative;
    z-index: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    flex: 0 0 60px;

    background:
        linear-gradient(
            145deg,
            #eff6ff,
            #dbeafe
        );

    border: 1px solid #bfdbfe;

    border-radius: 14px;

    font-size: 27px;
}

.result-certificate-content {
    position: relative;
    z-index: 1;

    flex: 1;

    min-width: 0;
}

.result-certificate-content h4 {
    margin: 0 0 5px;

    color: var(--rv-dark);

    font-size: 18px;

    font-weight: 800;
}

.result-certificate-content p {
    margin: 0 0 14px;

    color: var(--rv-muted);

    font-size: 13px;

    line-height: 1.6;
}

.result-certificate-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.result-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 41px;

    padding: 0 16px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    line-height: 1;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.result-button:hover {
    transform: translateY(-1px);
}

.result-button-primary {
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    border: 1px solid #1d4ed8;

    color: #ffffff !important;

    box-shadow:
        0 5px 13px rgba(29, 78, 216, .16);
}

.result-button-primary:hover {
    box-shadow:
        0 8px 18px rgba(29, 78, 216, .23);
}

.result-button-secondary {
    background: #ffffff;

    border: 1px solid #cbd5e1;

    color: #334155 !important;
}

.result-button-secondary:hover {
    background: #f8fafc;

    border-color: #94a3b8;
}

.result-button-outline {
    background: #ffffff;

    border: 1px solid #2563eb;

    color: #1d4ed8 !important;

    box-shadow:
        0 4px 12px rgba(29, 78, 216, .05);
}

.result-button-outline:hover {
    background: var(--rv-primary-light);

    box-shadow:
        0 7px 17px rgba(29, 78, 216, .10);
}


/* =========================================================
   VERIFICATION DETAILS
   ========================================================= */

.result-verification-section {
    margin-bottom: 28px;
}

.result-verification-card {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--rv-border);

    border-radius: 14px;

    box-shadow:
        0 7px 20px rgba(15, 23, 42, .04);
}

.result-verification-item {
    position: relative;

    min-width: 0;

    padding: 19px 20px;

    border-right: 1px solid var(--rv-border);
}

.result-verification-item:last-child {
    border-right: 0;
}

.result-verification-label {
    display: block;

    margin-bottom: 6px;

    color: var(--rv-light-text);

    font-size: 9px;

    line-height: 1.4;

    font-weight: 850;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.result-verification-item strong {
    color: var(--rv-dark);

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   FOOTER
   ========================================================= */

.result-footer {
    display: flex;

    justify-content: center;

    margin-top: 5px;

    padding-top: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .result-field-width-25,
    .result-field-width-33,
    .result-field-width-33-33,
    .result-field-width-50,
    .result-field-width-66,
    .result-field-width-66-66,
    .result-field-width-75 {
        grid-column: span 6;
    }

    .result-field-width-100 {
        grid-column: span 12;
    }

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

    .result-verification-item {
        border-right: 0;

        border-bottom: 1px solid var(--rv-border);
    }

    .result-verification-item:last-child {
        border-bottom: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .result-search {
        padding: 20px;

        border-radius: 15px;
    }

    .result-search-form {
        flex-direction: column;

        gap: 10px;
    }

    .result-search-actions {
        width: 100%;
    }

    .result-search-button {
        width: 100%;
    }

    .result-verified-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;

        padding: 15px;
    }

    .result-profile-card {
        align-items: center;

        flex-direction: column;

        padding: 25px 18px;

        text-align: center;
    }

    .result-student-photo {
        width: 100px;
        height: 100px;

        flex-basis: 100px;
    }

    .result-student-name {
        font-size: 23px;
    }

    .result-student-status {
        justify-content: center;
    }

    .result-fields-grid {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .result-field-item,
    .result-field-width-25,
    .result-field-width-33,
    .result-field-width-33-33,
    .result-field-width-50,
    .result-field-width-66,
    .result-field-width-66-66,
    .result-field-width-75,
    .result-field-width-100 {
        grid-column: span 1;
    }

    .result-certificate-card {
        align-items: flex-start;

        flex-direction: column;

        padding: 21px;
    }

    .result-certificate-actions {
        width: 100%;
    }

    .result-certificate-actions .result-button {
        flex: 1;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .result-search {
        padding: 16px;
    }

    .result-verified-badge {
        font-size: 13px;
    }

    .result-profile-card {
        padding: 22px 15px;
    }

    .result-student-photo {
        width: 88px;
        height: 88px;

        flex-basis: 88px;
    }

    .result-student-name {
        font-size: 21px;
    }

    .result-section-title {
        margin-bottom: 12px;
    }

    .result-section-title h3 {
        font-size: 17px;
    }

    .result-field-item {
        padding: 15px 16px;
    }

    .result-row {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;

        padding: 15px 17px;
    }

    .result-value {
        text-align: left;
    }

    .result-certificate-icon {
        width: 52px;
        height: 52px;

        flex-basis: 52px;

        font-size: 24px;
    }

    .result-certificate-actions {
        flex-direction: column;
    }

    .result-certificate-actions .result-button {
        width: 100%;
    }

    .result-footer .result-button {
        width: 100%;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.result-verification :focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);

    outline-offset: 2px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .result-verification *,
    .result-verification *::before,
    .result-verification *::after {
        transition: none !important;

        animation: none !important;
    }
}

