@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
}

.wehost-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.wehost-modal input[type="text"],
.wehost-modal input[type="number"],
.wehost-modal input[type="email"],
.wehost-modal input[type="tel"],
.wehost-modal select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; 
}

.wehost-modal input[type="radio"],
.wehost-modal input[type="checkbox"] {
    margin-right: 5px;
}

.wehost-modal button {
    background-color: #4FB67E;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px; 
    width: auto; 
}

.wehost-modal button:hover {
    background-color: #45a071;
}

.wehost-modal button.prev-step-btn {
    background-color: #6c757d;
    margin-right: 10px;
}

.wehost-modal button.prev-step-btn:hover {
    background-color: #5a6268;
}

/* WeHost Form Steps */
.wehost-form-step {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #fff; 
}

.wehost-form-step h2 {
    color: #000; 
    margin-top: 0;
    font-size: clamp(1em, 14.4px + 0.625vw, 1.3em);
    text-align: left; 
    margin-bottom: 20px;
}

.wehost-rgpd-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* WeHost Thank you message */
#wehost-thank-you-message {
    text-align: center;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #e9f5ef;
    margin-top: 20px;
}

#wehost-thank-you-message h2 {
    color: #4FB67E;
    font-size: 1.8em;
}

#wehost-thank-you-message p { 
    font-size: 1em;
    color: #555;
}

/* WeHost Error message */
#wehost-error-message {
    text-align: center;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fbeae5;
    margin-top: 20px;
}

#wehost-error-message h2 {
    color: #d9534f; 
    font-size: 1.8em;
}

#wehost-error-message p { 
    font-size: 1em;
    color: #555;
}

/* Custom Radio Button Styling for Step 3 */
#step-3 .radio-choice-label {
    display: flex; 
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px; 
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    position: relative; 
    width: 100%; 
    box-sizing: border-box; 
}

#step-3 .radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px; 
    margin-bottom: 20px; 
}

#step-3 input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none; 
}

/* Custom radio indicator */
#step-3 .radio-choice-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 50%;
    margin-right: 10px;
    box-sizing: border-box;
    background-color: #fff;
    flex-shrink: 0; 
}

/* Checked state for custom radio indicator */
#step-3 input[type="radio"]:checked + .radio-choice-label::before {
    border-color: #4FB67E; 
    background-color: #4FB67E; 
}

#step-3 input[type="radio"]:checked + .radio-choice-label::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #fff; 
    border-radius: 50%;
    position: absolute;
    left: 24px; 
    top: 50%;
    transform: translate(-50%, -50%); 
}

#step-3 input[type="radio"]:checked + .radio-choice-label {
    background-color: #e9f5ef; 
    border-color: #4FB67E; 
    font-weight: bold;
    color: #333;
}

#step-3 .radio-choice-label:hover {
    background-color: #e0e0e0;
}

.wehost-form-step label:not(.radio-choice-label) {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333; 
}

.wehost-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 20px 10px; 
}

.wehost-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 95%; 
    max-width: 500px; 
    max-height: calc(100vh - 40px); 
    overflow-y: auto; 
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    box-sizing: border-box; 
}

.wehost-close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

.wehost-close-button:hover,
.wehost-close-button:focus {
    color: black;
    text-decoration: none;
}

.wehost-modal .wehost-form-step {
    border: none;
    box-shadow: none;
    padding: 0;
}

.wehost-modal header,
.wehost-modal footer,
.wehost-modal main {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.wehost-modal h1 {
    text-align: center;
    color: #4FB67E;
    margin-bottom: 20px;
    font-size: 1.5em; 
}

@media (min-width: 768px) {
    .wehost-modal-content {
        width: 80%;
        max-width: 700px;
        padding: 30px;
    }

    .wehost-modal h1 {
        font-size: 2em;
    }

    #step-3 .radio-group {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    #step-3 .radio-choice-label {
        padding: 12px 20px;
    }

    #step-3 input[type="radio"]:checked + .radio-choice-label::after {
        left: 29px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .wehost-modal-content {
        max-width: 800px;
        padding: 40px;
    }

    .wehost-modal h1 {
        font-size: 2.2em;
    }

    #step-3 .radio-group {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    #step-3 .radio-choice-label {
        padding: 15px 25px;
    }

    #step-3 input[type="radio"]:checked + .radio-choice-label::after {
        left: 34px; /
    }
} 

.pac-container {
    z-index: 9999; 
} 

body.wehost-modal-open {
    overflow: hidden !important;
} 
html.wehost-modal-open {
    overflow: hidden !important;
} 


#progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 0;
    overflow: hidden;
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 10;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4FB67E;
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

.error-message {
    color: #d9534f !important;
    font-size: 14px !important;
    margin-top: 5px !important;
    font-weight: bold !important;
    display: block !important;
}

.wehost-modal input.error,
.wehost-modal select.error {
    border-color: #d9534f !important;
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.3) !important;
}

.radio-group.error {
    border: 2px solid #d9534f !important;
    border-radius: 5px !important;
    padding: 10px !important;
    background-color: #fdf2f2 !important;
}