@font-face {
  font-family: "Brando Arabic";
  src: url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Regular.woff2") format("woff2"),
       url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Regular.woff") format("woff"),
       url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brando Arabic";
  src: url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Bold.woff2") format("woff2"),
       url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Bold.woff") format("woff"),
       url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brando Arabic";
  src: url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Black.woff2") format("woff2"),
       url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Black.woff") format("woff"),
       url("https://greet.trenddc.com/wp-content/plugins/dynamic-card-generator/assets/fonts/Brando-Arabic-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

.dcg-wrap,
.dcg-form,
.dcg-field label,
.dcg-field input,
.dcg-field textarea,
.dcg-download-btn,
.dcg-field input::placeholder,
.dcg-field textarea::placeholder {
    font-family: "Brando Arabic", Arial, sans-serif;
}

.dcg-wrap{
    font-family: "Brando Arabic", Arial, sans-serif;
    max-width: 1100px;
    margin: 40px auto;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.dcg-field input::placeholder,
.dcg-field textarea::placeholder{
    font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
}

.dcg-form{
    flex: 1 1 50px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dcg-field{
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dcg-field label{
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.dcg-field input[type="text"],
.dcg-field textarea,
.dcg-field input[type="file"]{
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.dcg-field textarea{
    min-height: 120px;
    resize: vertical;
}

.dcg-download-btn{
    border: none;
    border-radius: 18px;
    background: #002C6D;
    color: #fff;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.dcg-preview{
    flex: 0 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.dcg-preview-img{
    max-width: 320px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 14px 40px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.dcg-thumbs{
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    max-width: 320px;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.dcg-thumbs::-webkit-scrollbar{
    height: 4px;
}

.dcg-thumbs::-webkit-scrollbar-track{
    background: transparent;
}

.dcg-thumbs::-webkit-scrollbar-thumb{
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.dcg-thumb{
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: none;
    transition: border-color 0.2s, transform 0.15s;
}

.dcg-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.dcg-thumb:hover{
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.dcg-thumb.dcg-thumb-active{
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
    transform: scale(1.05);
}

@media (max-width: 768px){
    .dcg-wrap{
        padding: 20px;
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .dcg-form{
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .dcg-field label{
        font-size: 18px;
    }

    .dcg-field input[type="text"],
    .dcg-field textarea,
    .dcg-download-btn{
        font-size: 18px;
    }

    .dcg-preview-img{
        max-width: 260px;
        margin: 0 auto;
    }

    .dcg-thumbs{
        justify-content: center;
    }
}