/* Saari rules form.dc-lead-form ke andar - form-group / input jaise naam page ki CSS bhi use karti hai,
   isliye selector itna specific rakha hai ki page ki CSS form ka look na bigade */
form.dc-lead-form,
form.dc-lead-form * {
    box-sizing: border-box;
}

.form-box {
    max-width: 910px;
    margin: 0 auto;
}

.dc-form-light {
    margin-top: 20px;
}

form.dc-lead-form .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.upper-section-form form.dc-lead-form .sr-only {
    color: #333333!important;
    margin-bottom: 10px;
    display: flex;
    position: inherit;
    width: 100%;
    height: auto;
    margin: 0;
    margin-bottom: 8px;
    margin-top: 10px;
}

.form.dc-lead-form .form-group {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
    padding: 0;
    float: none;
    font-size: 14px;
}

form.dc-lead-form .form-group input,
form.dc-lead-form .form-group select,
form.dc-lead-form .form-group textarea {
    display: block;
    width: 100%;
    max-width: none;
    height: 50px;
    margin: 0;
    padding: 0 17px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-shadow: none;
    color: #222;
    font: 400 14px 'Montserrat', Arial, sans-serif;
    line-height: normal;
    text-align: left;
    outline: none;
}

form.dc-lead-form .form-group input::placeholder,
form.dc-lead-form .form-group textarea::placeholder {
    color: #6b6b78;
    opacity: 1;
    font-size: 14px;
}

form.dc-lead-form .form-group input:focus,
form.dc-lead-form .form-group select:focus,
form.dc-lead-form .form-group textarea:focus {
    border-color: #b9a8ff;
    box-shadow: 0 0 0 3px rgba(185, 168, 255, .35);
}

form.dc-lead-form .form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 50px;
    color: #6b6b78;
    cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='10' viewBox='0 0 18 10'%3E%3Cpath d='M1 1l8 8 8-8' fill='none' stroke='%23222' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 17px center;
}

form.dc-lead-form .form-group select.has-value {
    color: #222;
}

form.dc-lead-form .form-group textarea {
    height: 80px;
    padding: 14px 17px;
    resize: vertical;
}

/* Phone - flag + dial code (intlTelInput) */
form.dc-lead-form .form-group .intl-tel-input {
    display: block;
    width: 100%;
}

/* Flag box 1px andar - warna uska safed background input ka border dhak deta hai (safed page par dikhta hai) */
form.dc-lead-form .form-group .intl-tel-input .flag-container {
    top: 1px;
    bottom: 1px;
    left: 1px;
    padding: 0;
}

form.dc-lead-form .form-group .intl-tel-input.separate-dial-code .selected-flag {
    width: 66px !important;
    padding: 0 0 0 12px;
    background: #fff;
    border-right: 1px solid #d9d9d9;
    border-radius: 5px 0 0 5px;
}

form.dc-lead-form .form-group .intl-tel-input.separate-dial-code .selected-dial-code {
    position: absolute;
    top: 50%;
    left: 80px;
    padding: 0;
    transform: translateY(-50%);
    color: #222 !important;
    font: 400 14px 'Montserrat', Arial, sans-serif;
}

form.dc-lead-form .form-group .intl-tel-input.separate-dial-code .iti-arrow {
    right: 13px;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border: 0;
    border-right: 1.3px solid #222;
    border-bottom: 1.3px solid #222;
    transform: rotate(45deg);
}

form.dc-lead-form .form-group .intl-tel-input.separate-dial-code .iti-arrow.up {
    margin-top: -2px;
    transform: rotate(-135deg);
}

/* Kuch popups (header-footer.css .window-opening-popup) dial code ke hisaab se padding !important se lagate hain */
form.dc-lead-form .form-group .intl-tel-input.separate-dial-code.allow-dropdown input[type="tel"],
form.dc-lead-form .form-group .intl-tel-input input[type="tel"] {
    padding-left: 116px !important;
}

form.dc-lead-form .form-group .intl-tel-input .country-list {
    width: 320px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
    overflow-x: hidden;
    color: #222;
    font: 400 14px 'Montserrat', Arial, sans-serif;
    text-align: left;
}

form.dc-lead-form .form-group .intl-tel-input .country-list .country-name {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

form.dc-lead-form button.dc-submit-btn {
    display: block;
    width: 100%;
    max-width: none;
    height: 50px;
    margin: 30px 0 0;
    padding: 0 20px;
    background: linear-gradient(180deg, #c6e3a1 0%, #f3a94a 30%, #e9353c 72%, #df35b9 100%);
    color: #fff;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    cursor: pointer;
    font: 500 18px 'Montserrat', Arial, sans-serif;
    letter-spacing: .3px;
    line-height: 50px;
    text-align: center;
    text-transform: none;
    transition: filter .2s;
}

.upper-section-form form.dc-lead-form button.dc-submit-btn{
    background:#733dd9!important;
}

form.dc-lead-form button.dc-submit-btn:hover {
    filter: brightness(1.05);
}

form.dc-lead-form button.dc-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Purple background par errors / response padhne layak rahein */
form.dc-lead-form .form-group .input-error {
    border-color: #ff6b74 !important;
}

/* dc-form.js apni default error CSS baad mein lagata hai, isliye yahan selector thoda zyada specific */
form.dc-lead-form .form-group .error-msg {
    display: block;
    margin-top: 6px;
    color: #ffb3b8;
    font: 400 13px 'Montserrat', Arial, sans-serif;
    text-align: left;
}

div.dc-form-response {
    margin-top: 16px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #fff;
    font: 400 14px 'Montserrat', Arial, sans-serif;
}

div.dc-form-response.success {
    color: #b8f5c8;
}

div.dc-form-response.error {
    color: #ffb3b8;
}

/* Safed / halke background wale form - dc_lead_form('x', ['class' => 'dc-form-light']) */
form.dc-lead-form.dc-form-light .form-group .input-error {
    border-color: #d1242f !important;
}

form.dc-lead-form.dc-form-light .form-group .error-msg {
    color: #d1242f;
}

form.dc-lead-form.dc-form-light+div.dc-form-response {
    color: #222;
}

form.dc-lead-form.dc-form-light+div.dc-form-response.success {
    color: #1a7f37;
}

form.dc-lead-form.dc-form-light+div.dc-form-response.error {
    color: #d1242f;
}