/**
 * Zoho WebToCase Embed - Estilo genérico Braza Bank
 *
 * Inclua este CSS em qualquer embed Zoho para manter
 * visual alinhado com o design system do site.
 *
 * Uso: <link rel="stylesheet" href="/embeds/zoho-embed.css" />
 */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1A1B1C;
    background: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
#zohoSupportWebToCase {
    max-width: 640px;
    margin: 0 auto;
    padding: 8px 16px 24px;
    text-align: left;
}

/* ── Form table layout ── */
#zohoSupportWebToCase .zsFormClass {
    width: 100% !important;
    background: transparent !important;
}

#zohoSupportWebToCase td {
    padding: 6px 0 !important;
    vertical-align: top;
    white-space: normal !important;
    width: 100% !important;
}

#zohoSupportWebToCase tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

/* ── Labels ── */
#zohoSupportWebToCase .zsFontClass {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500;
    color: #43474A !important;
    letter-spacing: 0.01em;
}

#zohoSupportWebToCase td[colspan='2'] .zsFontClass strong {
    font-size: 20px !important;
    font-weight: 700;
    color: #1A1B1C !important;
    display: block;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 2px solid #F4EFEC;
}

/* ── Inputs & Textarea ── */
#zohoSupportWebToCase input[type='text'],
#zohoSupportWebToCase input[type='date'],
#zohoSupportWebToCase input[type='email'],
#zohoSupportWebToCase textarea,
#zohoSupportWebToCase select {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1.5px solid #E1E2E3 !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    color: #1A1B1C !important;
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

#zohoSupportWebToCase input[type='text']:focus,
#zohoSupportWebToCase input[type='date']:focus,
#zohoSupportWebToCase input[type='email']:focus,
#zohoSupportWebToCase textarea:focus,
#zohoSupportWebToCase select:focus {
    border-color: #FF0F4F !important;
    box-shadow: 0 0 0 3px rgba(255, 15, 79, 0.1) !important;
}

#zohoSupportWebToCase textarea {
    min-height: 120px;
    resize: vertical;
}

/* ── Mandatory field indicator ── */
#zohoSupportWebToCase .manfieldbdr {
    border-left: 3px solid #FF0F4F !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

/* ── Placeholder ── */
#zohoSupportWebToCase input::placeholder,
#zohoSupportWebToCase textarea::placeholder {
    color: #B5B8BA;
}

/* ── Buttons ── */
#zohoSupportWebToCase input[type='submit'],
#zohoSupportWebToCase input[type='button'] {
    padding: 12px 32px !important;
    border: none !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.02em;
}

#zohoSupportWebToCase input[type='submit'] {
    background: #FF0F4F !important;
    color: #FFFFFF !important;
}

#zohoSupportWebToCase input[type='submit']:hover {
    background: #D70940 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 15, 79, 0.3);
}

#zohoSupportWebToCase input[type='submit']:active {
    transform: translateY(0);
}

#zohoSupportWebToCase input[type='submit']:disabled {
    background: #CACCCE !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

#zohoSupportWebToCase input[type='button'] {
    background: #FFFFFF !important;
    color: #43474A !important;
    border: 1.5px solid #CACCCE !important;
}

#zohoSupportWebToCase input[type='button']:hover {
    background: #F4EFEC !important;
    border-color: #91979C !important;
    color: #1A1B1C !important;
}

/* ── Button container ── */
#zohoSupportWebToCase td[colspan='2'][align='center'] {
    display: flex !important;
    gap: 12px;
    justify-content: flex-start;
    padding-top: 16px !important;
}

/* ── Powered by Zoho footer ── */
.wb_FtCon {
    margin-top: 20px !important;
    padding-top: 12px;
    border-top: 1px solid #F4EFEC;
    font-size: 11px !important;
    color: #B5B8BA !important;
    justify-content: flex-start !important;
    padding-left: 0 !important;
}

.wb_FtCon span {
    color: #B5B8BA;
}

.wb_FtCon a {
    color: #91979C !important;
}

/* ── Select dropdown ── */
#zohoSupportWebToCase select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2391979C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px !important;
}

/* ── Multi-pick ── */
#zohoSupportWebToCase .wb_multi_pick {
    width: 100% !important;
    border-radius: 8px !important;
    border: 1.5px solid #E1E2E3 !important;
}

/* ── File upload ── */
.wtcuploadfile {
    color: #FF0F4F !important;
    font-weight: 500;
}

/* ── Success message ── */
#zohoFormSuccess {
    display: none;
    text-align: center;
    padding: 48px 24px;
    max-width: 640px;
    margin: 0 auto;
}

#zohoFormSuccess .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #E8F5E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

#zohoFormSuccess h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1A1B1C;
    margin: 0 0 8px;
}

#zohoFormSuccess p {
    font-size: 15px;
    color: #71777C;
    margin: 0;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #zohoSupportWebToCase {
        padding: 4px 8px 16px;
    }

    #zohoSupportWebToCase input[type='submit'],
    #zohoSupportWebToCase input[type='button'] {
        width: 100% !important;
        text-align: center;
    }

    #zohoSupportWebToCase td[colspan='2'][align='center'] {
        flex-direction: column;
    }
}