body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #eef5f9 0%, #d8e8f3 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.splash-logo {
    max-width: 280px;
    height: auto;
    animation: zoomIn 0.8s ease-in-out;
}

@keyframes zoomIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

h1 {
    color: #00768b;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

/* النموذج */
.form-container {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    margin-bottom: 30px;
    border-top: 5px solid #00768b;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    outline: none;
}

.email-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.email-input-group input {
    border: none;
    border-radius: 0;
    background: transparent;
    direction: ltr;
    text-align: right;
}

.email-domain {
    padding: 11px 12px;
    background-color: #e9ecef;
    color: #555;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    direction: ltr;
}

.form-group input:focus, .form-group select:focus, .email-input-group:focus-within {
    border-color: #00768b;
}

.btn-preview {
    width: 100%;
    padding: 12px;
    background-color: #00768b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
}

.btn-preview:hover {
    background-color: #005a6a;
}

/* المعاينة والتوقيع */
.preview-container {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

#signature-card {
    width: 850px;
    height: 280px;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    box-sizing: border-box;
    padding: 25px 35px;
    display: flex;
    flex-direction: row-reverse; /* لضبط الترتيب كالصورة تماماً */
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e1e1e1;
    transform: scale(0.8);
    transform-origin: top center;
    margin-bottom: -40px;
}

/* الشعار والألوان */
.sig-left-section {
    width: 38%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sig-logo {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.sig-divider {
    width: 3px;
    height: 85%;
    background-color: #0096a6;
    margin: 0 25px;
}

.sig-right-section {
    width: 58%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    direction: rtl;
}

/* الاسم والأقسام */
.sig-name {
    font-size: 28px;
    font-weight: 800;
    color: #0b4375;
    margin-bottom: 6px;
}

.sig-role-dept {
    font-size: 16px;
    color: #666666;
    font-weight: 600;
}

.dept-separator {
    color: #0096a6;
    margin: 0 4px;
    font-weight: bold;
}

.sig-line-separator {
    width: 100%;
    height: 1px;
    background-color: #0096a6;
    margin: 18px 0;
}

/* بيانات التواصل */
.sig-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sig-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 34px;
    height: 34px;
    background-color: #0096a6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.contact-details {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
}

.contact-label {
    color: #0b4375;
    font-weight: 1000;
}

.contact-value {
    color: #0b4375;
    font-weight: 600;
    direction: ltr;
    display: inline-block;
}

.email-val {
    font-family: Arial, sans-serif;
}

.phone-val {
    font-family: Arial, sans-serif;
    color: #0b4375; /* الرقم الأساسي باللون الأزرق */
    margin-left: 4.5px; /* مسافة بين رقم الاتصال والتحويلة */
}

/* تنسيق التحويلة باللون الرمادي */
.ext-wrapper {
    color: #666666; /* لون رمادي للتحويلة */
    font-weight: 600;
    font-size: 18px;
    margin-right: 4px;
}

.ext-wrapper .ext-label {
    color: #666666; /* التأكيد على اللون الرمادي لكلمة تحويلة */
    font-weight: 1000;
    margin-left: 3px; /* مسافة بين كلمة تحويلة ورقم التحويلة */
    font-size: 18px;
}

.btn-download {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    background-color: #0096a6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 150, 166, 0.2);
    margin-top: 20px;
}
.azizwork {

    color:black;
    font-weight: bold;
    font-size: 20px;
font-family: Arial;
}

.btn-download:hover {
    background-color: #007987;
}