/* ========================================
   VAYREMEX CALCULATOR - CLEAN WHITE DESIGN
   ======================================== */

/* Import Google Fonts - Outfit & Inter */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Vayremex Brand Colors */
:root {
    --vayremex-blue: #003785;
    --vayremex-green: #009929;
    --vayremex-light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-medium: #5A6C7D;
    --text-light: #8B9DAF;
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    background: #ffffff;
    overflow-x: hidden;
}

/* Typography */
strong {
    font-weight: 600;
}

a,
a:hover,
a:focus {
    color: var(--vayremex-green);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: #00b832;
}

h1,
h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--vayremex-green);
    color: #fff;
}

/* ========================================
   NAVBAR - CLEAN WHITE
   ======================================== */
.navbar {
    padding: 1rem 0;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.navbar.navbar-no-bg {
    background: #ffffff;
}

.navbar-brand {
    width: 200px;
    height: 80px;
    background: url(../img/Logo_Vayremex.png) left center no-repeat;
    background-size: contain;
    text-indent: -99999px;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    transform: scale(1.02);
    opacity: 0.8;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.top-content {
    padding: 3rem 1rem 4rem;
    background: #ffffff;
}

.description {
    text-align: center;
    margin: 0 0 3rem;
    padding: 0 1rem;
}

.description h1 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.description p {
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.inner-bg {
    padding: 0;
    background: transparent;
}

/* ========================================
   FORM BOX - CLEAN CARD STYLE
   ======================================== */
.form-box {
    padding-top: 0;
}

.form-top {
    padding: 1.75rem 2rem;
    background: var(--vayremex-green);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    text-align: left;
}

.form-top-left {
    width: 100%;
}

.form-top-left h3 {
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-top-left p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.form-bottom {
    padding: 2rem;
    background: #ffffff;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border: 1px solid var(--border-color);
    border-top: none;
    box-shadow: var(--shadow-md);
}

.form-bottom p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #FFF9E6;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--vayremex-green);
    line-height: 1.5;
}

/* ========================================
   FORM TABLE
   ======================================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

table tr {
    background: transparent;
    transition: var(--transition-smooth);
}

table td {
    padding: 0.5rem 0;
    vertical-align: middle;
}

table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    width: 50%;
    padding-right: 1rem;
}

table td:last-child {
    width: 50%;
}

/* Icons in labels */
table td i {
    display: inline-block;
    width: 18px;
    text-align: center;
    margin-right: 6px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        height: 50px;
        width: 150px;
        margin-left: 1rem;
    }

    .top-content {
        padding: 2rem 0.5rem 3rem;
    }

    .description {
        margin: 0 0 2rem;
    }

    .form-top,
    .form-bottom {
        padding: 1.25rem;
    }

    table td {
        display: block;
        width: 100% !important;
        padding: 0.25rem 0;
    }

    table td:first-child {
        padding-right: 0;
        padding-bottom: 0.25rem;
    }

    table td:last-child {
        padding-top: 0;
    }

    table tr {
        display: block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 415px) {

    h1,
    h2 {
        font-size: 1.5rem;
    }

    .description p,
    .form-top-left p {
        font-size: 0.85rem;
    }
}

/* Retina Display */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) {
    .navbar-brand {
        background-image: url(../img/Logo_Vayremex.png) !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
    }
}