/* ==========================================
   GOOGLE FONT
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400..700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   COLOR VARIABLES
========================================== */
:root {
    --primary: #005D8F;
    --primary-dark: #00486f;
    --primary-hover: #2f5e8e;
    --secondary: #FF6A00;
    --accent: #00A6B8;

    --white: #ffffff;
    --black: #000000;

    --text-color: #505050;
    --heading-color: #005D8F;
    --muted-text: #6c757d;

    --border-color: #d8d8d8;
    --light-border: #eeeeee;

    --bg-body: #f7fbfd;
    --bg-light: #f9f9f9;
    --bg-section: #f4f8fb;
    --bg-card: #ffffff;

    --success: #198754;
    --error: #dc3545;
    --warning-bg: #fff3cd;
    --warning-border: #ffe69c;

    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 93, 143, 0.12);
    --shadow-lg: 0 18px 45px rgba(0, 93, 143, 0.16);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --transition: all 0.25s ease;
}

/* ==========================================
   RESET / BASE
========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
    overflow-x: hidden;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

label {
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
    font-size: 14px;
}

.text-danger {
    color: var(--error) !important;
}

/* ==========================================
   PAGE SECTION
========================================== */
.section {
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: 100vh;
}

.container {
    max-width: 1180px;
}

/* ==========================================
   FORM MAIN BOX
========================================== */
.form-box {
    background: var(--bg-card);
    border: 1px solid rgba(0, 93, 143, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.form-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    z-index: 2;
}

.header-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ==========================================
   HEADING AREA
========================================== */
.heading-area {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 14px 18px;
    margin: 0;
    position: relative;
}

.heading-area h4,
.heading-area h2,
.heading-area p {
    margin: 0;
}

.abstract-title {
    text-align: center;
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.abstract-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-top: 4px;
}

.heading-area h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ==========================================
   FORM GRID / FIELDS
========================================== */
.form-box .row {
    row-gap: 18px;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    min-height: 45px;
    color: #333333;
    background-color: #ffffff;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.18rem rgba(0, 93, 143, 0.14);
}

.form-control[readonly] {
    background-color: #eef6fa;
    color: #333333;
    cursor: not-allowed;
    font-weight: 600;
}

textarea.form-control {
    min-height: 95px;
    resize: vertical;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

input::placeholder,
textarea::placeholder {
    color: #9a9a9a;
    font-size: 13px;
}

/* ==========================================
   ABSTRACT DETAILS
========================================== */
#scientificDiv {
    background: #ffffff;
    border: 1px solid var(--light-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

#scientificDiv .alert {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 166, 184, 0.25);
    background-color: #eefbfc;
    color: #24545a;
    font-size: 14px;
}

#sci-limit-msg {
    display: none;
}

#abstract_title,
#abstract-titile,
#fullname {
    text-transform: uppercase;
}

/* ==========================================
   GUIDELINE CARDS
   Use these classes if you create guideline cards
========================================== */
.abstract-guideline-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.abstract-guideline-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--accent);
    border-radius: 18px;
    padding: 28px 30px;
    min-height: 250px;
    box-shadow: var(--shadow-md);
}

.abstract-guideline-card h3 {
    color: var(--heading-color);
    font-size: 1.55rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.abstract-guideline-card ul {
    list-style: disc;
    padding-left: 20px;
}

.abstract-guideline-card li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444444;
}

/* ==========================================
   FILE UPLOAD
========================================== */
#uploadAbs {
    background: #f8fbff;
    border: 1px dashed rgba(0, 93, 143, 0.35);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-top: 10px;
}

#uploadAbs p {
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 13px;
    color: var(--muted-text);
}

input[type="file"].form-control {
    padding: 9px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    border: none;
    background: var(--primary);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    transition: var(--transition);
}

input[type="file"]::file-selector-button:hover {
    background: var(--primary-dark);
}

/* ==========================================
   CO-AUTHOR BUTTONS
========================================== */
.add,
.delete {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    margin-right: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.add {
    background-color: var(--primary);
}

.delete {
    background-color: var(--error);
}

.add:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.delete:hover {
    background-color: #b02a37;
    transform: translateY(-2px);
}

#row2,
#row3,
#row4,
#row5,
#row6 {
    padding-top: 12px;
    border-top: 1px dashed var(--light-border);
}

/* ==========================================
   CONSENT CHECKBOX
========================================== */
.form-check {
    background: #f8fbff;
    border: 1px solid var(--light-border);
    padding: 12px 14px 12px 40px;
    border-radius: var(--radius-sm);
}

.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 14px;
    color: #444444;
    cursor: pointer;
}

/* ==========================================
   CAPTCHA
========================================== */
.captcha {
    background: #ffffff;
    border: 1px solid var(--light-border);
    border-radius: var(--radius-md);
    padding: 22px 15px;
    margin-top: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.captcha > h2 {
    font-family: "Lora", serif;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 14px;
}

.captcha-box {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #eeeeee, #d9d9d9);
    color: #222222;
    padding: 10px 25px;
    display: inline-block;
    letter-spacing: 5px;
    border-radius: var(--radius-sm);
    user-select: none;
    border: 1px solid #cccccc;
    min-width: 180px;
}

.captcha-input {
    margin-top: 14px;
    max-width: 280px;
    display: inline-block;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

#result {
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}

.v-btn,
.captcha .btn {
    padding: 8px 28px;
    color: var(--white);
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.v-btn:hover,
.captcha .btn:hover {
    background-color: var(--primary-dark);
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 10px 26px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 93, 143, 0.22);
}

#submit {
    min-width: 170px;
    min-height: 46px;
    font-size: 16px;
    font-weight: 700;
}

#submit:disabled {
    background-color: #a7b6bf;
    border-color: #a7b6bf;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================
   VALIDATION / ERROR UI
========================================== */
label.error {
    color: var(--error);
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

.form-control.error,
.form-select.error {
    border-color: var(--error);
}

.form-control.error:focus,
.form-select.error:focus {
    box-shadow: 0 0 0 0.18rem rgba(220, 53, 69, 0.14);
}

#email_error .text-success {
    font-weight: 600;
}

#email_error .text-danger,
#reg_no_msg .text-danger {
    font-weight: 600;
}

/* ==========================================
   THANK YOU PAGE
========================================== */
.card {
    border-radius: var(--radius-lg);
}

.card .table {
    font-size: 14px;
}

.card .table th {
    background-color: #f2f8fb;
    color: #333333;
    font-weight: 700;
}

.card .table td {
    color: #444444;
}

/* ==========================================
   FOOTER
========================================== */
footer {
    background-color: var(--primary);
    padding: 18px 0;
    margin-top: 40px;
}

.copyrights {
    color: var(--white);
    text-align: center;
    margin: 0;
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* Large tablets */
@media (max-width: 991.98px) {
    .section {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .abstract-title {
        font-size: 1.65rem;
    }

    .heading-area h4 {
        font-size: 1.12rem;
    }

    .form-box {
        border-radius: 18px;
    }

    .abstract-guideline-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .abstract-guideline-card {
        min-height: auto;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    body {
        font-size: 14px;
    }

    .section {
        padding-top: 15px;
        padding-bottom: 20px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .form-box {
        border-radius: 14px;
        box-shadow: var(--shadow-md);
    }

    .heading-area {
        padding: 12px 10px;
    }

    .abstract-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .abstract-description {
        font-size: 13px;
    }

    .heading-area h4 {
        font-size: 1rem;
    }

    .form-box .row {
        row-gap: 14px;
    }

    label {
        font-size: 13px;
    }

    .form-control,
    .form-select {
        min-height: 43px;
        font-size: 14px;
        padding: 9px 10px;
    }

    textarea.form-control {
        min-height: 90px;
    }

    #scientificDiv,
    #uploadAbs,
    .captcha {
        padding: 14px;
        border-radius: 12px;
    }

    #scientificDiv .alert {
        font-size: 13px;
        padding: 10px;
    }

    .add,
    .delete {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .captcha > h2 {
        font-size: 1.2rem;
    }

    .captcha-box {
        font-size: 20px;
        letter-spacing: 3px;
        padding: 8px 18px;
        min-width: 155px;
    }

    .captcha-input {
        max-width: 100%;
    }

    #submit {
        width: 100%;
        min-width: 100%;
    }

    .btn {
        width: 100%;
        padding: 10px 20px;
    }

    .captcha .btn {
        width: auto;
    }

    .table-responsive {
        font-size: 13px;
    }

    .card .table th,
    .card .table td {
        padding: 8px;
        font-size: 13px;
    }

    footer {
        margin-top: 25px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .abstract-title {
        font-size: 1.18rem;
    }

    .abstract-description {
        font-size: 12px;
    }

    .heading-area h4 {
        font-size: 0.95rem;
    }

    .captcha-box {
        font-size: 18px;
        letter-spacing: 2px;
        min-width: 140px;
    }

    .form-check {
        padding-left: 36px;
    }

    .form-check-label {
        font-size: 13px;
    }
}