﻿/* ==========================================================================
   Base Typography & Colors
   ========================================================================== */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: #333333;
    background-color: #faf8fc;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 5rem;
    padding-bottom: 7rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #5a2a83;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

/* ==========================================================================
   Layout & Wrapping Container
   ========================================================================== */
.body-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Description Lists (Bootstrap Override)
   ========================================================================== */
.dl-horizontal dt {
    white-space: normal;
    font-weight: 600;
    color: #5a2a83;
    margin-bottom: 0.4em;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    select:focus {
        border-color: #5a2a83;
        box-shadow: 0 0 4px rgba(90, 42, 131, 0.3);
        outline: none;
    }

/* ==========================================================================
   Buttons
   ========================================================================== */
button,
input[type="submit"] {
    display: inline-block;
    padding: 10px 24px;
    background-color: #5a2a83;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    button:hover,
    input[type="submit"]:hover {
        background-color: #7b3bbd;
        transform: translateY(-1px);
    }

/* ==========================================================================
   Links & Hover States
   ========================================================================== */
a {
    color: #6a2d8f;
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover {
        color: #4e2070;
        text-decoration: underline;
    }

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 40px 30px;
    }
}

/* Ensure the form tag, like the html and body, takes up the full height. */
html, body, form {
    height: 100%;
}

/* * This is a well-known trick to force iOS Safari to use hardware acceleration for the footer, 
 * which fixes common rendering and positioning bugs with fixed elements.
 */
.footer.fixed-bottom {
    -webkit-transform: translate3d(0, 0, 0);
}

@media screen and (max-width: 479px) {
    body {
        font-size: 15px;
    }

    .body-content {
        margin: 20px 10px;
        padding: 20px 15px;
    }

    button,
    input[type="submit"] {
        width: 100%;
        text-align: center;
    }
}
