﻿/*=====================================================
        PCCGS STUDENT VERIFICATION PORTAL
        validation.css
        PART - 2 (1/3)
=====================================================*/

:root {
    --primary: #002147;
    --primary-light: #0b5ed7;
    --secondary: #bf0f17;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --white: #ffffff;
    --bg: #f4f7fb;
    --text: #334155;
    --text-light: #64748b;
    --border: #dbe5f0;
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, .05);
    --shadow: 0 15px 40px rgba(15, 23, 42, .08);
    --shadow-lg: 0 25px 60px rgba(15, 23, 42, .15);
    --radius: 20px;
    --transition: .35s ease;
}


/*=====================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1350px;
    margin: auto;
}


/*====================================================
                   HEADER
=====================================================*/

.top-header {
    background: linear-gradient(135deg, #002147, #0c4f93);
    color: #fff;
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-left img {
    width: 95px;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-center h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .5px;
}

.header-center h1 {
    font-size: 38px;
    font-weight: 700;
    margin: 8px 0;
}

.header-center p {
    font-size: 15px;
    opacity: .9;
}

.header-right {
    text-align: right;
}

.academic-year {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.academic-year strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
}


/*=====================================================
                   HERO
=====================================================*/

.hero {
    margin: 40px 0;
}

.hero-card {
    background: #fff;
    border-radius: 28px;
    padding: 55px;
    box-shadow: var(--shadow);
}

.badge {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 50px;
    background: #e7f0ff;
    color: #0b5ed7;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-card h2 {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 18px;
}

.hero-card p {
    color: var(--text-light);
    line-height: 32px;
    max-width: 900px;
}


/*=====================================================
               VERIFICATION CARD
=====================================================*/

.verification-section {
    margin-bottom: 60px;
}

.verification-card {
    background: #fff;
    border-radius: 28px;
    padding: 45px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.card-icon {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    background: #eaf2ff;
    color: #0b5ed7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.card-header h3 {
    color: var(--primary);
    font-size: 30px;
}

.card-header p {
    color: var(--text-light);
    margin-top: 6px;
}


/*=====================================================
               VERIFY BOX
=====================================================*/

.verify-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px;
    align-items: end;
    margin-bottom: 35px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.form-group label span {
    color: var(--danger);
}

.form-group input {
    width: 100%;
    height: 60px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    outline: none;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:hover {
    border-color: #0b5ed7;
}

.form-group input:focus {
    border-color: #0b5ed7;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, .12);
}


/*=====================================================
                   BUTTONS
=====================================================*/

.btn-primary,
.btn-success {
    border: none;
    cursor: pointer;
    height: 60px;
    padding: 0 35px;
    border-radius: 15px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #002147, #0b5ed7);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.btn-primary:hover,
.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 33, 71, .20);
}

.btn-primary i,
.btn-success i {
    margin-right: 10px;
}

.btn-primary:disabled,
.btn-success:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/*=====================================================
                   LOADER
=====================================================*/

.loader-box {
    display: none;
    text-align: center;
    padding: 35px 0;
}

.loader-box.active {
    display: block;
}

.loader {
    width: 65px;
    height: 65px;
    margin: auto;
    border-radius: 50%;
    border: 6px solid #dbeafe;
    border-top-color: #0b5ed7;
    animation: spin 1s linear infinite;
}

.loader-box p {
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/*=====================================================
                   MESSAGE BOX
=====================================================*/

.message-box {
    display: none;
    margin-top: 25px;
    padding: 22px;
    border-radius: 18px;
    font-weight: 500;
    line-height: 30px;
}

.message-box.show {
    display: flex;
    align-items: center;
    gap: 18px;
}

.message-box.success {
    background: #ecfdf3;
    color: #166534;
    border-left: 6px solid #16a34a;
}

.message-box.error {
    background: #fff1f2;
    color: #b91c1c;
    border-left: 6px solid #dc2626;
}

.message-box i {
    font-size: 28px;
}


/*=====================================================
        PCCGS STUDENT VERIFICATION PORTAL
        validation.css
        PART - 3 (FINAL)
=====================================================*/


/*=====================================================
                STUDENT CARD
=====================================================*/

.student-card {
    display: none;
    margin-top: 35px;
    background: #fbfdff;
    border: 1px solid #dbe5f0;
    border-radius: 25px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    grid-template-columns: 220px 1fr;
    gap: 35px;
    animation: fadeUp .5s ease;
}

.student-card.show {
    display: grid;
}

.student-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.student-photo img {
    width: 180px;
    height: 210px;
    object-fit: cover;
    border-radius: 20px;
    border: 5px solid #fff;
    box-shadow: var(--shadow);
}

.student-info h3 {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 25px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-grid div {
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: 15px;
    padding: 18px;
}

.info-grid label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.info-grid h4 {
    color: #002147;
    font-size: 17px;
    font-weight: 600;
}


/*=====================================================
               FEE STATUS
=====================================================*/

.fee-status-card {
    display: none;
    margin-top: 30px;
    padding: 30px;
    border-radius: 22px;
    align-items: center;
    gap: 25px;
    animation: fadeUp .5s ease;
}

.fee-status-card.show {
    display: flex;
}

.fee-status-card.success {
    background: #ecfdf3;
    border-left: 6px solid #16a34a;
}

.fee-status-card.error {
    background: #fff1f2;
    border-left: 6px solid #dc2626;
}

.status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.fee-status-card.success .status-icon {
    background: #dcfce7;
    color: #16a34a;
}

.fee-status-card.error .status-icon {
    background: #fee2e2;
    color: #dc2626;
}

.status-content {
    flex: 1;
}

.status-content h3 {
    color: #002147;
    font-size: 26px;
    margin-bottom: 10px;
}

.status-content p {
    color: #64748b;
    line-height: 28px;
}

.amount-box {
    margin-top: 18px;
    display: inline-block;
    background: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.amount-box strong {
    color: #bf0f17;
    margin-left: 8px;
}


/*=====================================================
                   OTP CARD
=====================================================*/

.otp-card {
    margin-top: 35px;
    background: #fff;
    border: 1px solid #dbe5f0;
    border-radius: 22px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
}

.otp-header {
    margin-bottom: 25px;
}

.otp-header h3 {
    color: #002147;
    font-size: 25px;
    margin-bottom: 8px;
}

.otp-header p {
    color: #64748b;
}

.otp-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
}

.otp-row input {
    height: 60px;
    border: 1px solid #dbe5f0;
    border-radius: 15px;
    padding: 0 20px;
    outline: none;
    font-size: 18px;
    letter-spacing: 4px;
    font-weight: 600;
    transition: .35s;
}

.otp-row input:focus {
    border-color: #0b5ed7;
    box-shadow: 0 0 0 5px rgba(13, 110, 253, .12);
}

.otp-row input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}
/*=========================================
      ACTION FOOTER & BUTTON LINK
=========================================*/

.action-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end; /* Aligns button to the right side */
    align-items: center;
}

.btn-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/*=====================================================
                   FOOTER
=====================================================*/

.portal-footer {
    background: #002147;
    color: #fff;
    text-align: center;
    padding: 25px;
    font-size: 15px;
    position: fixed;
    bottom: 0;
    width: 100%;
}


/*=====================================================
                   ANIMATIONS
=====================================================*/

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*=====================================================
                   HOVER EFFECTS
=====================================================*/

.student-card:hover,
.otp-card:hover,
.verification-card:hover {
    box-shadow: var(--shadow);
}

.info-grid div {
    transition: .35s;
}

.info-grid div:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .08);
}


/*=====================================================
               RESPONSIVE
=====================================================*/

@media(max-width:992px) {
    .student-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .student-photo {
        justify-content: center;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .otp-row {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    .top-header .container {
        flex-direction: column;
        text-align: center;
    }
    .logo-area img {
        width: 75px;
    }
    .title-area h1 {
        font-size: 26px;
    }
    .hero-card {
        padding: 30px;
    }
    .hero-card h2 {
        font-size: 28px;
    }
    .verification-card {
        padding: 25px;
    }
    .verify-box {
        grid-template-columns: 1fr;
    }
    .card-header {
        flex-direction: column;
        text-align: center;
    }
    .fee-status-card {
        flex-direction: column;
        text-align: center;
    }
}

@media(max-width:576px) {
    .container {
        width: 95%;
    }
    .student-photo img {
        width: 150px;
        height: 180px;
    }
    .student-info h3 {
        font-size: 22px;
    }
    .status-content h3 {
        font-size: 22px;
    }
    .otp-header h3 {
        font-size: 22px;
    }
    .btn-primary,
    .btn-success {
        width: 100%;
    }
}


/*=====================================================
               CUSTOM SCROLLBAR
=====================================================*/

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #eef3f8;
}

::-webkit-scrollbar-thumb {
    background: #002147;
    border-radius: 20px;
}


/*=====================================================
               ACCESSIBILITY
=====================================================*/

button:focus,
input:focus {
    outline: none;
}


/*=====================================================
               UTILITY CLASSES
=====================================================*/

.text-success {
    color: #16a34a;
}

.text-danger {
    color: #dc2626;
}

.bg-success {
    background: #ecfdf3;
}

.bg-danger {
    background: #fff1f2;
}

.hidden {
    display: none !important;
}

.show {
    display: block;
}


/*=========================================
        RESULT CARD
=========================================*/

.validation-result {
    margin-top: 30px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 28px;
    border-radius: 18px;
    margin-bottom: 25px;
}

.status-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

.status-content h3 {
    margin-bottom: 8px;
    font-size: 22px;
}

.status-content p {
    color: #555;
    line-height: 28px;
}


/* SUCCESS */

.status-card.success {
    background: #ecfdf5;
    border-left: 6px solid #22c55e;
}

.status-card.success .status-icon {
    background: #22c55e;
    color: #fff;
}

.status-card.success h3 {
    color: #15803d;
}


/* DANGER */

.status-card.danger {
    background: #fef2f2;
    border-left: 6px solid #ef4444;
}

.status-card.danger .status-icon {
    background: #ef4444;
    color: #fff;
}

.status-card.danger h3 {
    color: #b91c1c;
}


/*=========================================
       OTP
=========================================*/

.otp-section {
    margin-top: 35px;
}

.otp-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.otp-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.otp-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #002147;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.otp-header h3 {
    color: #002147;
    margin-bottom: 6px;
}

.otp-header p {
    color: #666;
}

.otp-body {
    text-align: right;
}

#sendOTP {
    min-width: 220px;
}

#sendOTP:disabled {
    opacity: .5;
    cursor: not-allowed;
}
/* ==========================================================================
   Card-Only Mobile Selection Panel (No Radio Circles)
   ========================================================================== */

/* Outer Panel Container */
.mobile-selection-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Label */
.mobile-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 14px;
}

/* Flexbox Layout */
.mobile-flex-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ASP.NET Table Container */
.custom-radio-list {
  border-collapse: separate;
  border-spacing: 10px 0;
  margin-left: -10px;
}

.custom-radio-list td {
  padding: 0;
  vertical-align: middle;
}

/* HIDE THE DEFAULT RADIO BUTTON COMPLETELY */
.custom-radio-list input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* CARD IN DEFAULT STATE */
.custom-radio-list label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Hover State for Unselected Cards */
.custom-radio-list label:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: #1e293b;
  transform: translateY(-1px);
}

/* 🌟 HIGHLY ATTRACTIVE ACTIVE CARD STATE 🌟 */
/* Matches label when input is checked across modern & legacy browsers */
.custom-radio-list input[type="radio"]:checked + label,
.custom-radio-list td:has(input[type="radio"]:checked) label {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #2563eb;
  color: #1e40af;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18), 0 0 0 1px #2563eb;
  transform: translateY(-2px);
}

/* Added active checkmark icon badge on the card corner */
.custom-radio-list input[type="radio"]:checked + label::after,
.custom-radio-list td:has(input[type="radio"]:checked) label::after {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 18px;
  height: 18px;
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

/* Send OTP Button */
.btn-send-otp {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-send-otp:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-send-otp:active {
  transform: translateY(0);
}