@charset "UTF-8";
@import url(font_sanad.css);

body {
    font-family: 'morabba', sans-serif;
    font-weight: normal;
    background-color: #f5f5f5;
    margin: 0;
    padding: 1cm;
    overflow-y: scroll;
    height: auto;
}

input,
textarea {
    font-family: 'morabba', sans-serif;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.container {
    position: relative;
    width: 794px;
    min-height: 1123px;
    /*background: #ebebf3;*/
    margin: 0 auto;
    box-sizing: border-box;
    padding: 10px;
    padding-bottom: 109px;
    border: 1px solid #ddd;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.header-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.header-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.header-left .field-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.header-right .field-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.header-left .field-item label,
.header-right .field-item label {
    color: #2e3192;
    font-size: 0.9rem;
    min-width: 91px;
}

.header-left .field-item input,
.header-right .field-item input {
    background-color: #fff;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 15px;
    width: 91px;
    height: 24px;
    text-align: center;
    text-indent: 3px;
}

.logo-container {
    text-align: center;
    flex: 1;
}

.logo-container img {
    width: 190px;
}

/*-----------------------------------------------------------------------
    rounded-box-small
-----------------------------------------------------------------------*/
.image-boxes {
    display: flex;
    justify-content: space-evenly;
    margin: 0 0 20px 0;
}

.rounded-box-small {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    padding: 8px;
    box-sizing: border-box;
    width: 92px;
    height: 92px;
}

.rounded-box-small.smaller {
    width: 80px;
    height: 80px;
}

.rounded-box-small::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: url(../images/sanad/rounded-box-small-frame.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.rounded-box-large {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    /* overflow: hidden;*/
    background-color: #f6f5fa;
    padding: 8px;
    box-sizing: border-box;
    width: 100px;
    height: 122px;
}

.rounded-box-large.use-box-title {
    width: 120px;
    height: 146px;    
    padding-top: 14px;
    padding-bottom: 14px;
}

.rounded-box-large::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: url(../images/sanad/rounded-box-large-frame.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.rounded-box-small img,
.rounded-box-large img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.rounded-box-large.use-box-title img {
    height: 75px;
    object-fit: cover;    
}

.rounded-box-large .box-title {
    max-width: 100%;
    white-space: wrap;
    color: #000;
    font-size: 0.75rem;
    text-align: center;
    margin-bottom: 3px
}

.rounded-box-large .box-tags {
    display: flex;
    align-items: right;
    flex-direction: column;
    gap: 1px;
    max-width: 100%;
    width: 100%;
    height: 42px;
    margin-top: 3px
}

.rounded-box-large .box-tags .box-tags-item {
    max-width: 100%;
    white-space: wrap;
    color: #363636;
    font-size: 0.7rem;
    text-align: right;
    margin-top: 3px
}

/* Form Frame (No Border) */
.form-frame {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.form-frame .form-frame-full {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.form-frame .form-frame-full img {
    width: 100%;
}

.form-top-frame {
    position: relative;
    width: 100%;
    height: 74px;
    z-index: 1;
}

.form-top-frame img {
    width: 100%;
}

.form-top-frame .title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #c4ab5bff;
    font-family: 'NPIIranNastaliq';
    font-size: 2.4rem;
}

.form-left-frame {
    position: relative;
    height: initial;
    width: 74px;
    margin-top: -15px;
    z-index: 1;
}

.form-left-frame img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.form-right-frame {
    position: relative;
    height: initial;
    width: 74px;
    margin-top: -15px;
    z-index: 1;
}

.form-right-frame img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.form-left-frame .title,
.form-right-frame .title {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60%;
    transform: translate(-50%, -50%);
    white-space: break-spaces;
    color: #fff;
    font-family: 'W_thulth';
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    line-height: 18px;
}

.form-left-frame .title.larg,
.form-right-frame .title.larg {
    font-size: 20px;
    line-height: 20px;
}

.form-content {
    position: absolute;
    top: 58px;
    left: 62px;
    right: 62px;
    bottom: -64px;
    overflow: hidden;
    flex: 1;
    padding: 25px 25px 10px 25px;
    background-color: #fff;
    box-shadow: 0 0 24px 20px #fff;
    background-size: contain;
    background-position: center 56px;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Form Fields */
.form-section {
    margin-bottom: 15px;
    display: flex;
    gap: 0;
}

.form-section .rounded-box-small.smaller {
    margin: 20px 20px 0 0;
}

.form-section .section-title {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    max-height: 32px;
    margin-left: 20px;
    background: #c4ab5bff;
    color: #2e3192ff;
    padding: 0 15px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    white-space: nowrap;
}

.form-section .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.form-section .field-item {
    display: inline-flex;
    align-items: center;
    flex: 1;
}

.form-section .label-blue {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 24px;
    background: #2e3192ff;
    color: white;
    padding: 0 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.form-section .input-field {
    position: relative;
    border: none;
    border-bottom: 1px solid #2e3192ff;
    width: 100%;
    padding: 5px 15px 5px 0;
    font-size: 0.8rem;
    outline: none;
    background-color: transparent;
    margin-top: -2px;
    margin-left: -10px;
    margin-right: -10px;
}

.form-section textarea {
    width: 100%;
    min-height: 50px;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    background-color: transparent;
    box-shadow: none;
    outline: none;
    padding: 5px;
    margin-top: 5px;
}

/* City SVG Placeholder */
.city-svg {
    position: absolute;
    width: 100%;
    height: 66px;
    left: 0;
    bottom: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1cm;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-label {
    background: #2e3192ff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    min-width: 80px;
    text-align: center;
}

.contact-input {
    border: none;
    background: #fff;
    padding: 5px;
    width: 150px;
    height: 20px;
    font-size: 12px;
    border-radius: 5px;
}

.before-footer {
    position: absolute;
    left: 1.5cm;
    right: 1.5cm;
    bottom: 30px;
    height: 36px;
    border-top: 1px solid #2e3192;
}

.before-footer .before-footer-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #fff;
    height: 100%;
    z-index: 2;
}

.before-footer::before {
    content: '';
    position: absolute;
    left: -49px;
    top: 19px;
    width: 72px;
    height: 100%;
    background-color: #fff;
    border-top: 1px solid #2e3192;
    transform: rotate(-45deg);
    z-index: 1;
}

.before-footer::after {
    content: '';
    position: absolute;
    right: -49px;
    top: 19px;
    width: 72px;
    height: 100%;
    background-color: #fff;
    border-top: 1px solid #2e3192;
    transform: rotate(45deg);
    z-index: 1;
}

.before-footer .field-item {
    display: inline-flex;
    flex: auto;
    gap: 3px;
}

.before-footer .field-item label {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: #2e3192ff;
    font-size: 0.8rem;
}

.before-footer .field-item input {
    background: transparent;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    height: 20px;
}

/* Footer */
.footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: #2e3192ff;
    color: white;
    font-size: 12px;
    z-index: 2;
}

/* Side Decorations */
.side-decoration {
    position: absolute;
    top: 0;
    width: 1cm;
    height: 100%;
    background: #c4ab5bff;
    border: 2px solid #2e3192ff;
    z-index: -1;
}

.side-decoration.left {
    left: 0;
    border-right: none;
}

.side-decoration.right {
    right: 0;
    border-left: none;
}

.decoration-badge {
    position: absolute;
    background: #2e3192ff;
    color: #ffd700;
    padding: 10px;
    border-radius: 20px;
    font-weight: bold;
    text-align: center;
    transform: rotate(-90deg);
    transform-origin: 0 0;
    width: 120px;
    font-size: 14px;
}

.badge-left {
    top: 30%;
    left: -30px;
}

.badge-right {
    top: 30%;
    right: -30px;
    transform: rotate(90deg);
    transform-origin: 100% 0;
}

/* Print Styles */
@media print {
    body {
        margin: 0;
        padding: 0;
    }

    .container {
        width: 21cm;
        height: 29.7cm;
        margin: 0 auto;
        padding: 1cm;
        border: none;
    }

    /*.footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }*/

    .form-section textarea {
        border: none;
    }

    .before-footer .field-item input {
        border: none;
    }

    .form-section {
        margin-bottom: 14px;
    }

    .form-section .label-blue {
        height: 20px;
        font-size: 0.75rem;
    }

    .form-section .input-field {
        height: 19px;
        font-size: 0.75rem;
        padding: 0 15px 0 0;
    }

    .form-section .section-title {
        min-height: 24px;
        max-height: 24px;
        font-size: 0.9rem;
    }

    @page {
        size: A4;
        margin: 0;
    }
}