body {
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* اعتمد هنا */
}

.form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 800px;
    margin-bottom: 30px;
    border-top: 5px solid #d38b3a;
}

.form-title { margin: 0 0 25px 0; color: #333; font-size: 22px; text-align: center; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group { display: flex; flex-direction: column; }
.input-group label { font-weight: 600; margin-bottom: 8px; color: #555; font-size: 14px; }
.input-group input { padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; outline: none; transition: border-color 0.3s; width: 100%; box-sizing: border-box; font-family: inherit; }
.input-group input:focus { border-color: #d38b3a; }

.input-with-addon { display: flex; align-items: stretch; direction: ltr; }
.addon { background: #eee; padding: 0 12px; display: flex; align-items: center; border: 1px solid #ddd; color: #666; font-weight: bold; font-size: 13px; white-space: nowrap; }

.phone-row .addon { border-radius: 8px 0 0 8px; border-right: none; }
.phone-row input { border-radius: 0 8px 8px 0; }

.email-row input { border-radius: 8px 0 0 8px; text-align: left; }
.email-row .addon { border-radius: 0 8px 8px 0; border-left: none; }

.btn-wrapper { width: 100%; display: flex; justify-content: center; margin-top: 20px; }

#generate-btn {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    font-family: inherit;
}

#generate-btn:hover { background-color: #1a252f; transform: translateY(-2px); }

.container { background: #ffffff; padding: 30px 12px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); width: 106%; max-width: 800px; box-sizing: border-box;}
#signature-content { margin-bottom: 30px; width: 100%; overflow-x: auto; }

#copy-btn { background-color: #d38b3a; color: white; border: none; padding: 12px 30px; font-size: 16px; font-weight: bold; cursor: pointer; border-radius: 5px; display: block; margin: 0 auto; transition: 0.3s; font-family: inherit; }

@media (min-width: 769px) { #generate-btn { width: auto; } }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } .form-container { padding: 12px; } }

/* ستايل التوقيع الداخلي */
@media screen and (max-width: 600px) {
    .responsive-td { display: block !important; width: 100% !important; text-align: center !important; padding: 10px 0 !important; }
    .contact-table { float: none !important; margin: 0 auto !important; }
    .contact-table td { text-align: center !important; }
    .sig-logo { float: none !important; margin: 0 auto !important; }
    .mobile-title { font-size: 16px !important; }
    .mobile-subtitle { font-size: 13px !important; }
    .mobile-text { font-size: 12px !important; }
}

    