.section1{
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    direction: rtl;
}
.container {
    width: 70%;
    margin: auto;
    background: transparent;
    padding: 60px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
}

.section {
    background: #fff;
    padding: 50px;
    margin-bottom: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.section:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.section h2 {
    margin-bottom: 15px;
    color: #668c0a;
    font-size: 1.5em;
    border-bottom: 2px solid #d0d0d0;
    padding-bottom: 20px;
}

.section1 label {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    color: #34495e;
}

.section1 input, select, textarea {
    width: 90%;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 7px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}
select {
    font-family: 'Cairo', sans-serif;
    width: 90%; /* Match the width of inputs */
    padding: 10px 28px 10px 10px; /* Increase right padding for a larger arrow */
    margin-top: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 7px;
    font-size: 14px;
    color: #34495e;
    font-weight: 800;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
    appearance: none; /* Remove default arrow */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23668c0a"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center; /* Custom arrow */
    background-size: 16px; /* Increase arrow size (default was 12px) */
}
.section1 input:focus, select:focus, textarea:focus {
    border-color: #668c0a;
    box-shadow: 0 0 5px rgba(102, 140, 10, 0.4);
    outline: none;
}

textarea {
    resize: none;
    min-height: 100px;
}

.submit-btn {
    width: 20%;
    margin-right: 0%;
    background: #668c0a;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
 
}

.submit-btn:hover {
    background: #86b513;
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

.phone-wrapper {
    display: flex;
    gap: 10px; /* Space between country code and phone input */
    align-items: center;
    width: 90%; /* Match the width of other inputs */
}

.country-code {direction: ltr;
    flex: 0 0 100px; /* Fixed width for country code dropdown */
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 7px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23668c0a"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 16px;
}

.phone-wrapper input {
    flex: 1; /* Take up remaining space */
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 7px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    box-sizing: border-box;
}

/* Flexbox for company details */
.company-details {
    display: flex;
    gap: 20px; /* Space between fields and logo */
    align-items: flex-start; /* Align items at the top */
}

.company-fields {
    flex: 1; /* Take up remaining space */
}

.logo-field {
    flex: 0 0 150px; /* Fixed width for the logo field */
    text-align: center;
}

.logo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 2px solid #84af1c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-preview span {
    font-size: 14px;
    color: #777;
}

.logo-field input[type="file"] {
    display: none; /* Hide the default file input */
}

.logo-field label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #668c0a;
    cursor: pointer;
}


.upload-container {
    margin: 20px 0;
    position: relative;
}
.certificate-cont{
    display: flex;
    justify-content: space-between;
    gap: 50px;
}
#certificateImage {
    background-color: #f0f0f0; /* Grey background */
    color: transparent; /* Hide the text inside */
    border: 2px solid green; /* Green border */
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    width: 50%; 
}
  
#certificateImage::-webkit-file-upload-button {
    background-color: transparent;
    color: green;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}
  
#certificateImage:hover {
    background-color: #e0e0e0; /* Slightly darker grey on hover */
}

#imagePreview {
    margin-top: 15px;
    width: 100%;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
}

.preview-container {
    margin-top: 15px;
}

.remove-btn {
    background-color: #ff5252;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    margin-top: 5px;
    cursor: pointer;
    display: none;
}

.remove-btn:hover {
    background-color: #ff0000;
}
#user-id{
    display: none;
  }

#upgrade-premium{
    display: flex;
    justify-content: space-between;
    font-weight: 800;
}
#upgrade-premium p{
    opacity: 0.8;
}
#upgrade-premium p span{
    padding: 1px;
    background-color: rgba(131, 179, 14, 0.4);
    padding-right: 7px;
    padding-left: 7px;
    border-radius: 5px;
}
  .checkbox-wrapper-3 input[type="checkbox"] {
    visibility: hidden;
    display: none;
  }

  .checkbox-wrapper-3 .toggle {
    position: relative;
    display: block;
    width: 40px;
    height: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translate3d(0, 0, 0);
  }
  .checkbox-wrapper-3 .toggle:before {
    content: "";
    position: relative;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 14px;
    display: block;
    background: #9A9999;
    border-radius: 8px;
    transition: background 0.2s ease;
  }
  .checkbox-wrapper-3 .toggle span {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    display: block;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(154, 153, 153, 0.5);
    transition: all 0.2s ease;
  }
  .checkbox-wrapper-3 .toggle span:before {
    content: "";
    position: absolute;
    display: block;
    margin: -18px;
    width: 56px;
    height: 56px;
    background: #668c0a;
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
  }

  .checkbox-wrapper-3 #premCheckBox:checked + .toggle:before {
    background: #83b30e;
  }
  .checkbox-wrapper-3 #premCheckBox:checked + .toggle span {
    background: #668c0a;
    transform: translateX(20px);
    transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), background 0.15s ease;
    box-shadow: 0 3px 8px rgba(79, 46, 220, 0.2);
  }
  .checkbox-wrapper-3 #premCheckBox:checked + .toggle span:before {
    transform: scale(1);
    opacity: 0;
    transition: all 0.4s ease;
  }
@media only screen and (min-width: 1200px) {
    .container {
        width: 70%;
        max-width: 1200px;
    }
}

/* Medium screens (992px to 1199px) */
@media only screen and (max-width: 1199px) {
    .container {
        width: 80%;
        padding: 40px;
    }
    
    .section {
        padding: 40px;
    }
}

/* Tablets (768px to 991px) */
@media only screen and (max-width: 991px) {
    .container {
        width: 90%;
        padding: 30px;
    }
    
    .section {
        padding: 30px;
        margin-bottom: 40px;
    }
    
    .submit-btn {
        width: 30%;
    }
    
    .company-details {
        flex-direction: column;
        align-items: center;
    }
    
    .company-fields {
        width: 100%;
    }
    
    .logo-field {
        margin-bottom: 20px;
    }
    
    .certificate-cont {
        flex-direction: column;
        gap: 20px;
    }
    
    #certificateImage {
        width: 100%;
    }
}

/* Mobile devices (576px to 767px) */
@media only screen and (max-width: 767px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    
    .section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .section h2 {
        font-size: 1.3em;
        padding-bottom: 15px;
    }
    
    .section1 input, select, textarea {
        width: 100%;
    }
    
    .phone-wrapper {
        width: 100%;
    }
    
    .submit-btn {
        width: 50%;
    }
}

/* Small mobile devices (575px and below) */
@media only screen and (max-width: 575px) {
    .container {
        width: 95%;
        margin-right: 2.5%;
        padding: 0px;
        padding-bottom: 30px;
    }
    
    .section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 6px;
    }
    
    .section1 label {
        margin-top: 15px;
    }
    
    .phone-wrapper {
        flex-direction: column;
        gap: 5px;
    }
    
    .country-code {
        width: 100%;
        flex: none;
    }
    
    .phone-wrapper input {
        width: 100%;
    }
    
    .submit-btn {
        width: 100%;
        margin-top: 20px;
    }
    
    .logo-preview {
        width: 120px;
        height: 120px;
    }
}

/* Fix for RTL text input in all screen sizes */
[dir="rtl"] input, 
[dir="rtl"] select, 
[dir="rtl"] textarea {
    text-align: right;
}


.submit-btn {
    width: 90%; /* Match the width of other inputs */
    background: #668c0a;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 5%;
}

.submit-btn:hover {
    background: #78a115;
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

.upload-box {
    width: 90%; /* Match the width of other inputs */
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px; /* Match the margin of other inputs */
}

.upload-box:hover {
    border-color: #4CAF50;
}

.upload-box p {
    color: #bbb;
    font-size: 18px;
    font-weight: bold;
}

.upload-btn {
    background-color: #fff;
    color: #668c0a;
    border: 2px solid #668c0a;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.upload-btn:hover {
    background-color: #668c0a;
    color: white;
}

.file-list {
    margin-top: 10px;
    font-size: 14px;
}

.product-list {
    margin-top: 20px;
}

.product-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.product-item h3 {
    margin: 0;
    color: #668c0a;
}

.product-item p {
    margin: 5px 0;
    color: #34495e;
}

.product-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 10px;
}

.product-actions {
    margin-top: 10px;
}

.product-actions button {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.product-logo-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-color: #f0f0f0;
    border: 2px solid #84af1c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 10px;
}

.product-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-logo-preview span {
    font-size: 14px;
    color: #777;
}
.edit-btn {
    background-color: #3498db;
    color: white;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}