﻿html {
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    color: #333;
    font-size: .85em;
    font-family: 'Nunito Sans', sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: #333;
    outline: none;
    padding-left: 3px;
    padding-right: 3px;
    text-decoration: underline;
}

a:link, a:visited,
a:active, a:hover {
    color: #202224;
}

a:hover {
    background-color: #c7d1d6;
}

header, footer, hgroup,
nav, section {
    display: block;
}

mark {
    background-color: #a6dbed;
    padding-left: 5px;
    padding-right: 5px;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.clear-fix:after {
    content: ".";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}

h1, h2, h3,
h4, h5, h6 {
    color: #000;
    margin-bottom: 0;
    padding-bottom: 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 2.4em;
    color: #003781;
    font-weight: 600;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

    h5 a:link, h5 a:visited, h5 a:active {
        padding: 0;
        text-decoration: none;
    }


/* main layout
----------------------------------------------------------*/
.content-wrapper {
    margin: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    padding-right: 30px;
    padding-left: 30px;
}

#body {
    background-color: #fff;
    clear: both;
}
#body > section {
    min-height: 100%;
}
#body > section > section {
    width: 100%;
    flex: 1 1 100%;
}

/* Apply two-column flex layout only on Login/Register pages */
body.auth-page #body > section {
    display: flex;
}
body.auth-page .content-wrapper {
    padding: 0;
}
/* Center login form vertically + horizontally in the left section */
body.auth-page #body > section > section:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
}
#body #title {
    background: url("../Images/darta_login_image.png") no-repeat;
    background-size: cover;
    /* Vertically + horizontally center "DARTA SAVING" */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

header #darta-saving,
#body #title #darta-saving{
    color: white;
    font-weight: bold;
    letter-spacing: 0.12em;
}
#body #title #darta-saving {
    font-size: 3em;
}
#loginForm{
    max-width: 960px;
}

.main-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;

/*    padding-left: 10px;
    padding-top: 30px;*/
}

/* Login/Register must not be constrained by insurance pages max-width */
body.auth-page .main-content {
    max-width: none;
    height: 100vh;
}

.featured + .main-content {
    background: url("../Images/heroAccent.png") no-repeat;
}

header {
    background: linear-gradient(to right, #007AB3 0%, #012D69 100%);
}

header .content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 30px;
}

footer {
    clear: both;
    background-color: #fff;
    font-size: .8em;
    height: 100px;
}


/* site title
----------------------------------------------------------*/
.site-title {
    font-size: 2.6em;
    margin: 0;
}

.site-title a, .site-title a:hover, .site-title a:active {
    background: none;
    color: #c8c8c8;
    outline: none;
    text-decoration: none;
}


/* login
----------------------------------------------------------*/
#login {
    color:white;
    display: block;
    font-size: 1.1em;
    margin: 0 0 10px;
    text-align: right;
}

    #login a {
        color:white;
        margin-left: 10px;
        margin-right: 3px;
        padding: 2px 3px;
        text-decoration: none;
    }

    #login a.username {
        background: none;
        margin: 0;
        padding: 0;
        text-decoration: underline;
    }

    #login ul {
        margin: 0;
    }

    #login li {
        display: inline;
        list-style: none;
    }


/* menu
----------------------------------------------------------*/
ul#menu {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 5px;
    padding: 0;
    text-align: right;
}

    ul#menu li {
        display: inline;
        list-style: none;
        padding-left: 15px;
    }

        ul#menu li a {
            background: none;
            color: #999;
            text-decoration: none;
        }

        ul#menu li a:hover {
            color: #333;
            text-decoration: none;
        }


/* page elements
----------------------------------------------------------*/
/* featured */
.featured {
    background-color: #fff;
}

    .featured .content-wrapper {
        background-color: #7ac0da;
        /*background-image: -ms-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);*/
        background-image: -o-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
        background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #7ac0da), color-stop(1, #a4d4e6));
        background-image: -webkit-linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
        background-image: linear-gradient(left, #7ac0da 0%, #a4d4e6 100%);
        color: #3e5667;
        padding: 20px 40px 30px 40px;
    }

        .featured hgroup.title h1, .featured hgroup.title h2 {
            color: #fff;
        }

        .featured p {
            font-size: 1.1em;
        }

/* page titles */
hgroup.title {
    margin-bottom: 10px;
}

hgroup.title h1, hgroup.title h2 {
    display: inline;
}

hgroup.title h2 {
    font-weight: normal;
    margin-left: 3px;
}

/* features */
section.feature {
    width: 300px;
    float: left;
    padding: 10px;
}

/* ordered list */
ol.round {
    list-style-type: none;
    padding-left: 0;
}

    ol.round li {
        margin: 25px 0;
        padding-left: 45px;
    }

        ol.round li.zero {
            background: url("../Images/orderedList0.png") no-repeat;
        }

        ol.round li.one {
            background: url("../Images/orderedList1.png") no-repeat;
        }

        ol.round li.two {
            background: url("../Images/orderedList2.png") no-repeat;
        }

        ol.round li.three {
            background: url("../Images/orderedList3.png") no-repeat;
        }

        ol.round li.four {
            background: url("../Images/orderedList4.png") no-repeat;
        }

        ol.round li.five {
            background: url("../Images/orderedList5.png") no-repeat;
        }

        ol.round li.six {
            background: url("../Images/orderedList6.png") no-repeat;
        }

        ol.round li.seven {
            background: url("../Images/orderedList7.png") no-repeat;
        }

        ol.round li.eight {
            background: url("../Images/orderedList8.png") no-repeat;
        }

        ol.round li.nine {
            background: url("../Images/orderedList9.png") no-repeat;
        }

/* content */
article {
    float: left;
    width: 70%;
}

aside {
    float: right;
    width: 25%;
}

    aside ul {
        list-style: none;
        padding: 0;
    }

        aside ul li {
            background: url("../Images/bullet.png") no-repeat 0 50%;
            padding: 2px 0 2px 20px;
        }

.label {
    font-weight: 700;
}

/* login page */
#loginForm {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding-top:30px;
}

#loginForm h2{
     text-align: center;
     padding-bottom: 10px;
}
#loginForm .subtitle{
     text-align: center;
}

    #loginForm .validation-error {
        display: block;
        margin-left: 15px;
    }

    #loginForm .validation-summary-errors ul {
        margin: 0;
        padding: 0;
    }

    #loginForm .validation-summary-errors li {
        display: inline;
        list-style: none;
        margin: 0;
    }
    #loginForm form{
        margin-top:50px;
    }
    #loginForm form,
    #loginForm fieldset,
    #loginForm ol,
    #loginForm li {
        width: 100%;
    }

    #loginForm input[type="text"],
    #loginForm input[type="password"],
    #loginForm input[type="email"]{
        height: 47px;
    }
    #loginForm input[type="submit"]{
        height: 51px;
    }
    #loginForm input[type="text"],
    #loginForm input[type="password"],
    #loginForm input[type="email"],
    #loginForm select,
    #loginForm textarea {
        width: 100%;
        box-sizing: border-box;
        margin-top: 10px;
    }

    #loginForm input[type="submit"],
    #loginForm input[type="button"],
    #loginForm button {
        width: 100%;
        box-sizing: border-box;
        margin-top: 40px;
    }

    #loginForm input[type="checkbox"] {
        width: auto;
    }

#register {
    font-size: 1.3em;
    color: #202224;
    font-weight: 600;
    text-align: center;
}
#socialLoginForm {
    margin-left: 40px;
    float: left;
    width: 40%;
}

    #socialLoginForm h2 {
        margin-bottom:  5px;
    }

#socialLoginList button {
    margin-bottom: 12px;
}

#logoutForm {
    display: inline;
}

/* contact */
.contact h3 {
    font-size: 1.2em;
}

.contact p {
    margin: 5px 0 0 10px;
}

.contact iframe {
    border: 1px solid #333;
    margin: 5px 0 0 10px;
}

/* forms */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

fieldset legend {
    display: none;
}

fieldset ol {
    padding: 0;
    list-style: none;
}

fieldset ol li {
    padding-bottom: 5px;
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
}

label.checkbox {
    display: inline;
}

input, textarea, select {
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #333;
    font-size: 1.2em;
    margin: 5px 0 6px 0;
    padding: 15px;
    width: 300px;
    border-radius: 5px;
}

textarea {
    font-family: inherit;
    width: 500px;
}

    input:focus, textarea:focus {
        border: 1px solid #7ac0da;
    }

    input[type="checkbox"] {
        background: transparent;
        border: inherit;
        width: auto;
    }

input[type="submit"],
input[type="button"],
button {
    background-color: #007AB3;
    border: 1px solid #007AB3;
    color: #fff;
    cursor: pointer;
    font-size: 1.4em;
    font-weight: 600;
    padding: 7px;
    margin-right: 8px;
    width: auto;
    border-radius: 5px;
}

/* Disabled submit state (e.g. after server-side error) */
#loginForm input[type="submit"]:disabled,
#loginForm button[type="submit"]:disabled {
    background-color: #656565;
    border-color: #656565;
    color: #fff;
    cursor: not-allowed;
}

/* Links styled like primary buttons (e.g. Login button) */
a.action-link-button,
a.action-link-button:link,
a.action-link-button:visited {
    display: inline-block;
    background-color: #007AB3;
    border: 1px solid #007AB3;
    color: #fff;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 5px;
    text-decoration: none;
}

a.action-link-button:hover,
a.action-link-button:active {
    background-color: #00679a;
    border-color: #00679a;
    color: #fff;
    text-decoration: none;
}

/* Title + action button aligned on the same row */
.page-title-row {
    padding: 50px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-title-row h2 {
    margin: 0;
}

.page-title-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#policy-messages {
    display: none;
    margin: 0;
}

.page-title-row.has-message #policy-messages {
    display: block;
    flex: 1 1 380px;
    min-width: 280px;
    margin: 0 16px;
}

#policy-messages .success-message,
#policy-messages .error-message {
    margin: 0;
}

.page-title-actions #loader {
    margin-top: 6px;
    margin-right: 10px;
}

/* If there is a message, wrap earlier to avoid cramped layout */
@media only screen and (max-width: 900px) {
    .page-title-row.has-message {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .page-title-row.has-message h2 {
        flex: 1 1 100%;
        font-size: 2em;
        text-align: center;
    }

    .page-title-row.has-message #policy-messages {
        width: 100%;
        min-width: 0;
        margin: 0 auto;
    }

    .page-title-row.has-message .page-title-actions {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .page-title-row.has-message #loader {
        margin: 0 !important;
    }

    .page-title-row.has-message #get-insurance-policy {
        margin-left: 0;
    }
}

/* Responsive behavior for title row */
@media only screen and (max-width: 700px) {
    .page-title-row {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .page-title-row h2 {
        flex: 1 1 100%;
        font-size: 2em;
        text-align: center;
    }

    .page-title-actions {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    #policy-messages {
        width: 100%;
        min-width: 0;
        margin: 0 auto;
    }

    .page-title-row #loader {
        margin: 0 !important;
    }

    .page-title-row #get-insurance-policy {
        margin-left: 0;
    }
}

/* Specific size for "Richiedi polizza" button */
#get-insurance-policy {
    width: 159px;
    height: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

/* Download button style in policies table */
#insurance-policies a.action-link-button,
#insurance-policies a.action-link-button:link,
#insurance-policies a.action-link-button:visited {
    background: #ffffff;
    border: 1px solid #007AB3;
    color: #007AB3;
}

#insurance-policies a.action-link-button:hover,
#insurance-policies a.action-link-button:active {
    background: #f4faff;
    border-color: #007AB3;
    color: #007AB3;
}

    td input[type="submit"],
    td input[type="button"],
    td button {
        font-size: 1em;
        padding: 4px;
        margin-right: 4px;
    }

/* info and errors */
.message-info {
    border: 1px solid;
    clear: both;
    padding: 10px 20px;
}

.message-error {
    clear: both;
    color: #e80c4d;
    font-size: 1.1em;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.message-success {
    color: #7ac0da;
    font-size: 1.3em;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.error {
    color: #e80c4d;
}

/* styles for validation helpers */
.field-validation-error {
    color: #e80c4d;
    font-weight: bold;
}

.field-validation-valid {
    /*display: none;*/
    color: red;
}

input.input-validation-error {
    border: 1px solid #e80c4d;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #d30000;
    font-weight: bold;
    font-size: 1.1em;
}

.validation-summary-valid {
    display: none;
}


/* tables
----------------------------------------------------------*/
table {
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0.75em;
    border: 0 none;
    border-radius: 10px;
    overflow: hidden;
}

th {
    font-size: 1.2em;
    text-align: left;
    border: none 0px;
    padding-left: 0;
}

    th a {
        display: block;
        position: relative;
    }

    th a:link, th a:visited, th a:active, th a:hover {
        color: #333;
        font-weight: 600;
        text-decoration: none;
        padding: 0;
    }

    th a:hover {
        color: #000;
    }

    th.asc a, th.desc a {
        margin-right: .75em;
    }

    th.asc a:after, th.desc a:after {
        display: block;
        position: absolute;
        right: 0em;
        top: 0;
        font-size: 0.75em;
    }

    th.asc a:after {
        content: '▲';
    }

    th.desc a:after {
        content: '▼';
    }

td {
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #ccc;
    text-align:center;
}

#insurance-policies table tbody tr:last-child td {
    border-bottom: none;
}

tr.pager td {
    padding: 0 0.25em 0 0;
}


/********************
*   Mobile Styles   *
********************/
@media only screen and (max-width: 850px) {

    /* header
    ----------------------------------------------------------*/
    header .float-left,
    header .float-right {
        float: none;
    }

    /* logo */
    header .site-title {
        margin: 10px;
        text-align: center;
    }

    /* login */
    #login {
        font-size: .85em;
        margin: 0 0 12px;
        text-align: center;
    }

        #login ul {
            margin: 5px 0;
            padding: 0;
        }

        #login li {
            display: inline;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        #login a {
            background: none;
            color: #999;
            font-weight: 600;
            margin: 2px;
            padding: 0;
        }

        #login a:hover {
            color: #333;
        }

    /* menu */
    nav {
        margin-bottom: 5px;
    }

    ul#menu {
        margin: 0;
        padding: 0;
        text-align: center;
    }

        ul#menu li {
            margin: 0;
            padding: 0;
        }


    /* main layout
    ----------------------------------------------------------*/
    .main-content,
    .featured + .main-content {
        background-position: 10px 0;
    }
    
    header .content-wrapper{
        padding-right: 10px;
        padding-left: 0px;
    }
    .content-wrapper {
        padding-right: 10px;
        padding-left: 10px;
    }

    .featured .content-wrapper {
        padding: 10px;
    }

    /* page content */
    article, aside {
        float: none;
        width: 100%;
    }

    /* ordered list */
    ol.round {
        list-style-type: none;
        padding-left: 0;
    }

ol.round li {
    padding-left: 10px;
    margin: 25px 0;
}

ol.round li.zero,
ol.round li.one,
ol.round li.two,
ol.round li.three,
ol.round li.four,
ol.round li.five,
ol.round li.six,
ol.round li.seven,
ol.round li.eight,
ol.round li.nine {
    background: none;
}

     /* features */
     section.feature {
        float: none;
        padding: 10px;
        width: auto;
     }

        section.feature img {
            color: #999;
            content: attr(alt);
            font-size: 1.5em;
            font-weight: 600;
        }

    /* forms */
    input {
        width: 90%;
    }

    /* login page */
    #loginForm {
        border-right: none;
        float: none;
        width: auto;
    }

        #loginForm .validation-error {
            display: block;
            margin-left: 15px;
        }

    #socialLoginForm {
        margin-left: 0;
        float: none;
        width: auto;
    }


    /* footer
    ----------------------------------------------------------*/
    footer .float-left,
    footer .float-right {
        float: none;
    }

    footer {
        text-align: center;
        height: auto;
        padding: 10px 0;
    }

        footer p {
            margin: 0;
        }
}

.main-content > a, p.subtitle { font-size: 15px; padding: 0; color: #202224; }
p.subtitle { font-weight: 600; font-size: 1.2em; }
.main-content > table, #insurance-policies table { 
    margin-top: 15px;
    border-top: 1px solid #424242;
    border: 1px solid #cfcfcf;
}
#insurance-policies table thead {
    background-color: #003781;
    color:white;
}
#insurance-policies table thead th {
    padding: 13px 5px; 
    text-align: center
}
.main-content > table thead th, #insurance-policies table thead th {font-size: 14px; font-weight: 600; }
.main-content > table thead th, .main-content > table tbody td a {
    padding-top: 30px;
    color: #979797;
}
.main-content > table tbody td, .main-content > table tbody td a.label, 
#insurance-policies table tbody td, #insurance-policies table tbody td a.label { color: #979797; font-size: 14px; font-weight: 600; }
.main-content > table tbody td a, #insurance-policies table tbody td a {font-size: 14px; font-weight: 400; }

label { color: #202224; }
select { width: 312px; }
p a:link, p a:visited, p a:active, p a:hover { color: #006fbc; }
hr.border { width: 100%; height: 1px; background: #424242; margin: 15px 0 30px; }
fieldset ol { margin: 0; }
div.success-message, div.error-message {
    margin-top: 7px;
    padding: 10px 15px;
    position: relative;
    padding-right: 44px;
}
div.success-message { background: rgba(0, 182, 70, 0.29); color: #00B646; }
div.error-message p {
    font-weight: bold;
}
div.error-message a {
    font-weight: normal;
    color: #D30000;
}
div.error-message {
    background: rgba(211, 0, 0, 0.25);
    color: #D30000;
}
div.success-message p, div.error-message p { margin: 0; }

/* close button for dismissible messages (same icon as popup) */
.message-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent url('/Images/close.png') no-repeat center center;
    background-size: 14px 14px;
    cursor: pointer;
    padding: 0;
}
div.success-message .message-close{
    background: transparent url('/Images/close-green.png') no-repeat center center;
}
div.error-message .message-close{
    background: transparent url('/Images/close-red.png') no-repeat center center;
}
.details label { color: #202224; font-size: 1.35em; font-weight: 400; margin-bottom: 7px; }
.details li b { color: #202224; font-weight: 600; font-size: 1.75em; line-height: 24px; }
.details li { margin-bottom: 14px; }

#results { position: absolute; left: 0; width: 100%; overflow-x: hidden; }
#results table { width: 100%; }
#results table th { text-align: center; vertical-align: top; padding: 5px; border: 1px solid; min-width: 130px; }
#results table th.scenaryOne { background: #fcd5b4; }
#results table th.scenaryTwo { background: #c5d9f1; }
#results table th.scenaryThree { background: #99ff66; }
#results table.summary th { background: #ffff00; min-width: 0; }
#results table td { text-align: center; padding: 0.9em; }
#results table.summary td { border: 1px solid; background: #ffff00; font-size: 18px; line-height: 24px; padding: 0.9em; }
#results table.summary td.premius, #results table.summary th.premius { background: #d8e4bc; }
#results a.save { background-color: deepskyblue; border: 1px solid #333; font-size: 1.2em; font-weight: 600; padding: 8px; width: 140px; float: none; margin: 20px auto; display: block; text-decoration: none; color: #FFF; -webkit-transition: all 0.3s ease-out; -moz-transition: all 0.3s ease-out; transition: all 0.3s ease-out; }
#results a.save:hover { background: #FFF; color: deepskyblue; }

form#form li { clear: both; }
form#form li > input, form#form li > select { float: left; }
form#form li > span { padding: 8px 12px; font-size: 14px; font-weight: 600; line-height: 1; color: #FFF; text-align: center; background-color: #006fbc; height: 13px; float: left; display: block; width: 16px; margin-top: 6px; }
form#form li > span.help-block { display: block; padding: 0; text-align: left; background: none; float: none; height: auto; font-size: 12px; color: #333; width: 100%; margin: 0; clear: both; }

fieldset.settings { padding: 0 20px; margin-bottom: 20px; }
fieldset.settings legend { display:block; text-transform: uppercase; font-size: 26px; padding: 10px 2%; background: #006fbc; color: #FFF; line-height: 26px; margin-bottom: 20px; width: 100%; margin-left: -22px; }

#dialog-form { display: none !Important; }
.ui-dialog #dialog-form { 
    display: block !Important; 
    padding: 20px 47px;
}

.ui-dialog {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #003781;
    padding: 0;
}
.ui-dialog.ui-widget.ui-widget-content{
    border: none;
}
.ui-dialog .ui-dialog-titlebar {
    background: #003781;
    color: #fff;
    border: none;
    padding: 20px 30px;
}

#error-details-dialog{
    padding:20px 30px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ui-dialog-titlebar.error-details-titlebar {
    background: #D50E0E;
}
.ui-dialog .ui-dialog-titlebar-close {
    border: none;
    background: transparent;
}
/* Dialog close icon (single PNG, not sprite) */
.ui-dialog .ui-dialog-titlebar-close .ui-icon {
    background-image: url('/Images/close.png') !important;
    background-repeat: no-repeat;
    background-position: center center !important;
    background-size: 14px 14px;
    margin-left: -30px;
}

/* Black transparent overlay behind modal popup */
.ui-widget-overlay {
    background: #000;
    opacity: 0.55;
    filter: alpha(opacity=55); /* legacy fallback */
}
#dialog-form .validateTips{
    margin-bottom: 40px;
}
#dialog-form label{
    display: none;
}
#dialog-form input[type="submit"]{
    font-size: 1.2em;
    font-weight: 400;
    padding: 7px 30px;
    margin-top: 10px;
}

.clr { clear: both; width: 0; height: 0; padding: 0; margin: 0; }
