﻿
.formbg {
    background-color: #EEEEEE;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}



form {
    max-width: 600px;
    margin: 0 auto;
}



/* Mobile */
@media screen and (max-width: 600px) {
    .form-title {
        display: flex;
        overflow: hidden;
        transform: translateX(-50px);
        padding: 10px;
    }
}



/* Form Title Mobile */
@media screen and (max-width: 600px) {
    .form-title img {
        width: 75%;
        height: auto;
    }
}



/* Form Title Tablet */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .form-title img {
        width: 60%;
        height: auto;
    }
}


/* Form Title Desktop */
@media screen and (min-width: 1025px) {
    .form-title img {
        width: 60%;
        height: auto;
    }
}


/* Tablet */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .form-title {
        display: flex;
        overflow: hidden;
        transform: translateX(-100px);
    }
}

/* Desktop */
@media screen and (min-width: 1025px) {
    .form-title {
        display: flex;
        overflow: hidden;
        transform: translateX(-115px);
        padding: 20px;
    }
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-column,
.single-element {
    flex: 1;
    margin-right: 10px;
}

.form-row .form-column:last-child,
.form-row .single-element:last-child {
    margin-right: 0;
}

/* Additional style for the checkbox and label */
label[for=agreeCheckbox] {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

input[type=checkbox]#agreeCheckbox {
    margin-right: 5px;
    position: relative;
    top: -1px;
}

label[for=isBillingAddressDifferent] {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

input[type=checkbox]#isBillingAddressDifferent {
    margin-right: -25px;
    position: relative;
    top: -1px;
}

input[type=radio] {
    display: inline-block;
    width: auto;
    padding: 0;
    margin-bottom: 0;
    vertical-align: middle;
    margin-right: 5px;
    position: relative;
}


/* CSS Added to fix drop down box arrow not showing */
.form-controlTG
{
    background-image: url('https://applytest2.petro.com/images/dropdownarrow.jpg') !important; /* adjust the path */
    
}

/* In case you are using a label to display the option text next to the radio button */
label {
    margin-right: 15px; /* Adjust as needed */
}

}


input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button[type=submit] {
    background-color: #333333 !important;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 8px 16px;
    cursor: pointer;
    width: 100%;
}

/* Button Desktop */
@media screen and (min-width: 1025px) {

    button[type=submit] {
        background-color: #333333;
        color: white;
        border: none;
        border-radius: 3px;
        padding: 8px 16px;
        cursor: pointer;
        width: 50%;
    }
}

label.error {
    color: red;
    font-size: 12px;    
    margin-bottom: 5px;
}


.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.form-column {
    flex: 1;
    margin-right: 10px;
    margin-bottom: 10px;
}

.form-row .form-column:last-child {
    margin-right: 0;
}

.otherbilling {
    padding: 1px;
}

.radio-buttons {
    text-align: left;
}



[data-tooltip] {
    position: relative;
    color: red;
    font-size: 0.8em;
}

    [data-tooltip]:hover::before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: #003987;
        color: white;
        padding: 5px;
        border-radius: 3px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 100;
        margin-bottom: 5px;
    }

.tooltip-icon {
    cursor: help;
    margin-left: 3px;
}

    .tooltip-icon:hover::before {
        bottom: calc(100% + 5px);
        left: 50%;
    }

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

@media only screen and (max-width: 767px) {
    /* For radio buttons */
    input[type=radio] {
        margin: 0;
        padding-right: 52px;
    }
}


@media (min-width: 768px) {
    .form-row {
        flex-direction: row;
    }

    .form-column {
        margin-bottom: 0;
    }
}




/* CSS to Create white box inside of Form */

.centered-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-grow: 1;
}

.inner-box {
    background-color: #FFFFFF;
    width: 95%;
    border: 1px solid #333333; /* Width and color of the border */
    height: auto; /* Adjust this to the height you want */
    border-style: solid;
    border-color: #CCCCCC;
    color: black; /* Color of the text in box */

    padding: 10px;
}

.pagemargin {
    padding: 20px;
}

.inner-box h2 {
    padding: 20px;
}


/* Align the various price plans */

.plan {
    display: flex;
    flex-direction: column;
}


.plan-content, .plan-header {
    margin-left: -5px !important; /* Adjust this value to change the offset from the radio button */
}

.plan-title {
    font-size: 140%;
    margin-left: 2px !important;
}

.plan-price, .plan-description {
    margin-left: 20px !important;
}



/* Firefox specific style for select elements */
@-moz-document url-prefix() {
    select {
        background-color: white;
        -moz-appearance: none !important;
        appearance: none !important;
    }
        /* Add padding and background image for the dropdown arrow */
        select::-ms-expand {
            display: none;
        }

    select {
        padding: 10px 30px 10px 10px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23C5CCD6' d='M2 3.5L4 0H0z'/%3E %3C/svg%3E"); background-repeat: no-repeat;
        background-position: right 0.6em top 50%;
        background-size: 0.65em auto;
    }
}
