/* =========================================================
   MEMBERSHIP FORM
   Premium BDS Green Theme
========================================================= */
#page-content {
    background: linear-gradient(rgb(163 188 175 / 38%), rgb(144 181 162 / 41%)), url(https://bangladeshdentalsociety.xyz/uploads/registration/registration.jpg) center center / cover fixed;
    padding: 25px 0 50px;
}


/* =========================================================
   MAIN FORM WRAPPER
========================================================= */

.membership-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 30px 35px 35px;
    margin: 20px auto 50px;
    max-width: 1050px;

    border: 1px solid #dcece5;
    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0, 80, 50, 0.12);

    font-family: Arial, sans-serif;
    overflow: hidden;
}


/* Top Green Line */

.membership-wrapper:before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        #006d46,
        #0a9b5c,
        #30d87b
    );
}


/* =========================================================
   HEADER
========================================================= */

.membership-header {
    text-align: center;

    border-bottom: 1px solid #dce7e2;

    padding: 5px 10px 16px;
    margin-bottom: 18px;

    position: relative;
}


.membership-header img {
    width: 75px;
    height: 75px;

    position: absolute;

    left: 20px;
    top: 0;

    object-fit: contain;
}


.membership-header h2 {
    margin: 0 0 5px;

    color: #006d46;

    font-size: 25px;
    font-weight: 700;

    letter-spacing: .3px;
}


.membership-header p {
    margin: 3px 0;

    color: #687875;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   FORM TITLE
========================================================= */

.form-title {
    text-align: center;

    margin: 18px 0 25px;
}


.form-title span {
    display: inline-block;

    padding: 8px 32px;

    background: #edf9f3;

    border: 2px solid #0a9b5c;
    border-radius: 30px;

    color: #006d46;

    font-size: 19px;
    font-weight: 700;

    letter-spacing: .5px;

    box-shadow:
        0 3px 8px rgba(10, 155, 92, .08);
}


/* =========================================================
   FORM ROW
========================================================= */

.form-row {
    display: flex;

    align-items: center;

    margin-bottom: 10px;

    min-height: 36px;
}


.form-row > label:first-child {
    width: 180px;

    flex-shrink: 0;

    margin: 0;

    color: #42544e;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   INPUT
========================================================= */

.form-row .form-control {
    height: 36px;

    background: #fff;

    border: 1px solid #cfded8;

    border-radius: 5px;

    box-shadow: none;

    color: #344640;

    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.form-row .form-control:hover {
    border-color: #a9c9bd;
}


.form-row .form-control:focus {
    border-color: #0a9b5c;

    box-shadow:
        0 0 0 3px rgba(10, 155, 92, .08);

    outline: none;
}


/* Placeholder */

.form-control::placeholder {
    color: #a0aaa7;
    font-size: 12px;
}


/* Full Input */

.full-input {
    flex: 1;
}


/* =========================================================
   INLINE FIELDS
========================================================= */

.inline-fields {
    display: flex;

    gap: 10px;

    align-items: center;

    flex: 1;
}


.inline-fields .small-input {
    flex: 1;
}


/* File input */

.inline-fields input[type="file"] {
    min-width: 190px;
}


/* =========================================================
   ADDRESS SECOND LINE
========================================================= */

.address-input {
    margin-left: 180px;

    margin-top: -3px;

    margin-bottom: 10px;
}


.address-input .form-control {
    height: 45px;

    resize: vertical;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    position: relative;

    color: #006d46;

    font-size: 16px;

    font-weight: 700;

    border-bottom: 1px solid #dcece5;

    padding: 0 0 8px;

    margin: 22px 0 12px;
}


.section-title:after {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    background: #0a9b5c;

    border-radius: 3px;

    position: absolute;

    bottom: -2px;
    left: 0;
}


/* =========================================================
   RADIO / CHECKBOX
========================================================= */

.checkbox-inline-custom {
    display: inline-flex !important;

    align-items: center;

    width: auto !important;

    margin-right: 15px !important;

    margin-bottom: 0 !important;

    color: #4c5e59 !important;

    font-size: 13px !important;

    font-weight: normal !important;
}


.checkbox-inline-custom input {
    margin: 0 6px 0 0;

    accent-color: #0a9b5c;
}


.checkbox {
    color: #4c5e59;

    font-size: 13px;
}


.checkbox input {
    accent-color: #0a9b5c;
}


.checkbox a {
    color: #007548;

    font-weight: 600;

    text-decoration: none;
}


.checkbox a:hover {
    color: #006d46;

    text-decoration: underline;
}


/* =========================================================
   EDUCATION TABLE
========================================================= */

.education-table-wrapper {
    width: 100%;
    overflow-x: auto;
}


.education-table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0;

    margin-top: 5px;

    overflow: hidden;

    border: 1px solid #d6e5df;

    border-radius: 7px;

    background: #fff;
}


.education-table th {
    padding: 9px 7px;

    background: #edf9f3;

    color: #006d46;

    border-right: 1px solid #d6e5df;
    border-bottom: 1px solid #d6e5df;

    font-size: 11px;

    font-weight: 700;

    text-align: center;
}


.education-table th:last-child {
    border-right: 0;
}


.education-table td {
    padding: 3px;

    border-right: 1px solid #e1ebe7;
    border-bottom: 1px solid #e1ebe7;

    background: #fff;
}


.education-table tr:last-child td {
    border-bottom: 0;
}


.education-table td:last-child {
    border-right: 0;
}


.education-table input {
    width: 100%;

    height: 32px;

    padding: 5px 7px;

    border: 0;

    outline: none;

    background: transparent;

    color: #344640;

    font-size: 12px;
}


.education-table input:focus {
    background: #f5fbf8;
}


.education-table tr:hover td {
    background: #fbfefd;
}


/* =========================================================
   DECLARATION
========================================================= */

.declaration {
    color: #566661;

    font-size: 13px;

    line-height: 1.7;

    margin-top: 20px;

    padding: 14px 16px;

    background: #f7fbf9;

    border-left: 4px solid #0a9b5c;

    border-radius: 4px;
}


/* =========================================================
   SIGNATURE
========================================================= */

.signature-box {
    width: 290px;

    height: 90px;

    border: 1px dashed #a9c9bd;

    border-radius: 6px;

    background: #fbfefd;

    margin-left: auto;

    margin-top: 15px;

    text-align: center;

    padding: 12px;

    color: #687875;

    font-size: 12px;
}


.signature-box input[type="file"] {
    display: block;

    width: 100%;

    margin-bottom: 12px;

    font-size: 11px;
}


/* =========================================================
   OFFICE USE
========================================================= */

.office-use {
    background: linear-gradient(
        90deg,
        #006d46,
        #0a9b5c
    );

    color: #fff;

    text-align: center;

    font-weight: 700;

    letter-spacing: .5px;

    padding: 9px;

    margin: 25px 0 12px;

    border-radius: 5px;

    font-size: 13px;

    box-shadow:
        0 3px 8px rgba(0, 109, 70, .12);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-area {
    text-align: center;

    margin-top: 28px;

    padding-top: 5px;
}


.submit-area button {
    background: linear-gradient(
        135deg,
        #006d46,
        #0a9b5c
    );

    color: #fff;

    border: 0;

    border-radius: 6px;

    padding: 11px 32px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(0, 109, 70, .18);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}


.submit-area button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(0, 109, 70, .25);

    opacity: .95;
}


.submit-area button:active {
    transform: translateY(0);
}


/* =========================================================
   ALERT
========================================================= */

.alert {
    margin-bottom: 18px;

    border-radius: 5px;

    font-size: 13px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb {
    margin-bottom: 0;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    #page-content {
        padding: 15px 0 30px;

        background-attachment: scroll;
    }


    .membership-wrapper {
        margin: 10px 10px 30px;

        padding: 20px 15px 25px;

        border-radius: 9px;
    }


    /* Header */

    .membership-header {
        padding-bottom: 15px;
    }


    .membership-header img {
        position: static;

        display: block;

        width: 65px;
        height: 65px;

        margin: 0 auto 10px;
    }


    .membership-header h2 {
        font-size: 20px;

        line-height: 1.3;
    }


    .membership-header p {
        font-size: 10px;

        line-height: 1.5;
    }


    /* Form title */

    .form-title {
        margin: 15px 0 20px;
    }


    .form-title span {
        font-size: 16px;

        padding: 7px 22px;
    }


    /* Rows */

    .form-row {
        display: block;

        margin-bottom: 13px;
    }


    .form-row > label:first-child {
        width: 100%;

        display: block;

        margin-bottom: 5px;
    }


    /* Inputs */

    .form-row .form-control {
        width: 100%;
    }


    /* Inline fields */

    .inline-fields {
        display: block;

        width: 100%;
    }


    .inline-fields .small-input {
        width: 100%;

        margin-bottom: 8px;
    }


    .inline-fields > div {
        width: 100%;
    }


    .inline-fields input[type="file"] {
        width: 100%;

        min-width: 0;
    }


    /* Address */

    .address-input {
        margin-left: 0;

        margin-top: -5px;
    }


    /* Section */

    .section-title {
        font-size: 15px;

        margin-top: 20px;
    }


    /* Education */

    .education-table-wrapper {
        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    .education-table {
        min-width: 650px;
    }


    /* Declaration */

    .declaration {
        font-size: 12px;

        line-height: 1.6;

        padding: 12px;
    }


    /* Signature */

    .signature-box {
        width: 100%;

        max-width: 290px;

        margin-left: 0;
    }


    /* Checkbox */

    .checkbox-inline-custom {
        margin-bottom: 8px !important;
    }


    /* Office */

    .office-use {
        font-size: 12px;

        margin-top: 20px;
    }


    /* Button */

    .submit-area button {
        width: 100%;

        padding: 12px 20px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .membership-wrapper {
        margin: 5px;

        padding: 17px 12px 22px;
    }


    .membership-header h2 {
        font-size: 18px;
    }


    .membership-header p {
        font-size: 9px;
    }


    .form-title span {
        font-size: 14px;

        padding: 7px 18px;
    }


    .section-title {
        font-size: 14px;
    }


    .declaration {
        font-size: 11px;
    }


    .submit-area button {
        font-size: 13px;
    }
}