/* ==========================================================================
   MyService Landing Page - Custom Styles (Based on Original Design)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@200;300;400;500&display=swap');

/* ==========================================================================
   RESET AND BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: none;
}

body {
    font: 400 15px/1.25 Arial, Helvetica, sans-serif;
    position: relative;
    height: 100%;
    width: 100%;
    text-align: center;
    color: #000;
    margin: 0;
    padding: 0;
    background: linear-gradient(91deg, rgba(255, 3, 3, 0.39) 0.43%, rgba(0, 0, 0, 0.3) 99.3%);
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    /* background: #effcf3; */
    background-attachment: fixed;
}

h1 {
    font-size: 100%;
}

input, select, textarea {
    font: inherit;
}

a {
    color: #000;
    text-decoration: underline;
}

img {
    line-height: 1;
    width: 25%;
    display: block;
    margin: 0 auto;
    padding: 10px 0;
}

/* ==========================================================================
   MODAL AND OVERLAY STYLES
   ========================================================================== */

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.modal-backdrop.show-true {
    display: block;
}

/* Loader Modal */
.loader-modal {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    width: 100vw;
    height: 100vh;
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
}

.loader-modal.show-true {
    display: flex;
}

.loader-modal-msg {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.loader-modal-msg h3,
.loader-modal-msg p {
    color: #fff;
}

.loading {
    margin: 10px 0 20px;
    justify-content: center;
    display: flex;
}

.loading::after {
    content: "";
    width: 35px;
    height: 35px;
    border: 10px solid #fff;
    border-top-color: #20b3e5;
    border-radius: 50%;
    animation: 1s linear infinite loading;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

.error-modal.show-true {
    display: flex;
}

.error-modal-msg {
    margin: 10px;
    color: #0f0f0f;
    padding: 20px 15px;
    border-radius: 11px;
    line-height: 1.5em;
    background-color: #fff;
    position: relative;
    top: 400px;
}

.error-modal-msg h3 {
    font-size: 1.7em;
    line-height: 1em;
    margin: 0 0 15px 0;
    color: #fff;
}

.error-modal-msg img {
    width: 30px;
    margin: auto;
    display: none;
}

.error-modal-msg p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 25px;
    padding: 0px 20px;
    color: #000;
}

.error-modal-msg a {
    color: #0f0f0f;
}

.error-modal-msg .btn-link,
.error-modal-msg .cta-link {
    outline: 0;
    width: 90%;
    color: red;
    padding: .5em 0;
    font: 400 2.5em Arial, Helvetica, sans-serif;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0);
    border: 2px solid red;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.error-modal-msg .cta-link {
    color: #fff;
    background: red;
    border: 0;
}

.error-modal,
.loader-modal,
.modalMsg {
    top: 0;
    left: 0;
    display: none;
    position: fixed
}

.modalMsg {
    z-index: 150;
    padding-top: 30px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .2)
}

.modalMsg-content {
    background-color: #fff;
    color: #0f0f0f;
    margin: auto;
    padding: 20px;
    width: 80%;
    border: none;
    border-radius: 1em
}

/* ==========================================================================
   MAIN PAGE LAYOUT
   ========================================================================== */

#page {
    min-height: 600px;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

#page.hide-aria {
    filter: blur(3px);
    pointer-events: none;
}

/* Logo styling - set to 50% width - Target the actual logo location */
#header-logo img,
#header-logo .cptpl_logo,
#header-logo .cptpl_logo_static,
#header-logo img.cptpl_logo,
#header-logo img.cptpl_logo_static {
    width: 50% !important;
    max-width: 50% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Header logo container styling */
#header-logo {
    text-align: center;
    padding: 20px 0 10px;
    display: none;
}

/* If logo is in other locations */
.logo-holder img {
    width: 50% !important;
    max-width: 50% !important;
}

/* Header image styling (this is the main content image, not logo) */
#header-image img {
    width: 100% !important;
    max-width: 100% !important;
}

/* Close Button */
.close_btn {
    z-index: 2;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    display: flex;
    color: #fff;
    font-size: 13px;
    position: absolute;
    border-radius: 7px;
    align-items: center;
    font-weight: 300;
    justify-content: center;
    background: #a7b0aa;
    text-decoration: none;
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

/* Header Logo Section */
#header-logo {
    text-align: center;
    padding: 0px 0 0px;
    background: transparent;
}

#header-logo img {
    width: 25% !important;
    max-width: 25% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

#header-logo .logo_static {
    width: 25% !important;
    max-width: 25% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Main content image area */
#header-image {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

#header-image img {
    width: 100% !important;
    margin: 0 auto;
    padding: 0;
}

.logo-holder {
    position: absolute;
    z-index: 1;
    top: 0;
    width: 100%;
    height: 50px;
    left: 0;
    background: #000;
    padding-top: 15px;
}

.logo-holder img {
    width: 50% !important;
    max-width: 50% !important;
}

#logo {
    width: 110px;
    margin: 10px auto;
}

.heading {
    text-align: center;
    font-weight: 400;
    font-size: 8vw;
    text-transform: capitalize;
    position: absolute;
    top: 165px;
    left: 0;
    width: 100%;
    letter-spacing: 1px;
}

.heading span {
    color: red;
}

.mainTitle {
    color: #fff;
    font-size: 18px;
    line-height: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}

/* Pull up content over image */
.pull-up {
    margin-top: -135px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.body-container {
    padding: 0;
}

/* Service Information */
#acceptDiv, #otpDiv, #msisdnDiv {
    margin-bottom: 30px;
}

#otpDiv, #msisdnDiv {
    display: none;
}

#msisdnDiv .subtitle{
display: none;
}

#msisdnDiv .service{
display: none;
}


.subtitle {
    font-size: 15px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    text-align: center;
    display: block;
    margin-top: 5px;
    margin-bottom: 0.5em;
    color: #000;
    line-height: 35px;
}

.text {
    width: 100%;
    font-size: 15px;
    margin: 0 auto;
    display: block;
}

.text.charge {
    height: 1em;
}

.text b {
    font-weight: 500;
}

#wording {
    width: 95%;
    margin: 0 auto 15px !important;
    max-width: 271px;
}

#wording .text {
    font-size: 13px;
    letter-spacing: .7px;
    line-height: 1.25;
    font-weight: 300;
    opacity: 1;
}

#wording .header {
    font-size: 1.35em;
    display: none;
}

.cptpl_service {
    font-size: 30px !important;
    font-weight: 400 !important;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: .7px;
    text-align: center;
    display: block;
    margin-bottom: 0 !important;
    color: #fff;
    margin-top: 10px;
}

.cptpl_account,
.cptpl_price {
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.25;
    display: block;
}

/* Additional Headings */
.hp2 {
    color: red;
    text-align: center;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0;
    margin-top: 1.2rem;
}

.hp3 {
    color: #FFF;
    text-align: center;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    margin: 1rem;
}

/* Mentions Section */
#mentions {
    padding-bottom: 1em;
    position: relative;
    opacity: 1;
    margin-top: 12px;
}

.acp {
    padding-bottom: 3em !important;
}

#mentions .text {
    margin-bottom: .3em;
    font-size: 12px;
    font-weight: 400;
}

/* Instructions */
.instructions {
    text-align: center;
    font-size: 15px;
    margin: 15px 20px;
}

.instruction-set {
    position: relative;
    z-index: 99;
    color: #fff;
    text-align: left;
    font-size: 14px;
    margin-bottom: 18px;
}

.instruction-set > div {
    display: flex;
    align-items: baseline;
    margin-bottom: 6px;
}

.instruction-set .no {
    flex-shrink: 0;
    border: 1px solid #fff;
    border-radius: 50px;
    display: block;
    width: 19px;
    height: 19px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-right: 8px;
    line-height: 18px;
}

/* ==========================================================================
   FORM STYLES
   ========================================================================== */

.form {
    margin-bottom: 20px;
}

/* Input Fields */
#input {
    margin-bottom: 5px;
}

#input .help {
   display: block;
    font-size: 1em;
    text-align: center;
    margin-top: 10px;
    font-weight: 400;
}

#wording_input {
    display: none;
}

/* Phone Input Wrapper */
.phone-input-wrap {
    position: relative;
    width: 88%;
    margin: auto auto 13px;
}

.phone-input-wrap input {
    background-size: 22px;
    background-position: 9px 50%;
    text-align: center;
    display: block;
    margin: auto;
    padding: 15px 15px 15px 15px;
    width: 92%;
    border-radius: 5px;
    border: 1px solid #a4a5a9;
    background: hsla(0, 0%, 100%, .2);
    font-size: 19px;
    color: #fff;
}

.phone-input-wrap:after {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    right: 0;
    width: 60px;
    background-image: url(https://media-content-storage.b-cdn.net/gymfit/img/check-gray.svg);
    background-repeat: no-repeat;
    background-size: 36px;
    background-position: 40% 21%;
}

.validmsisdn:after {
    background-image: url(hhttps://media-content-storage.b-cdn.net/gymfit/img/check-green.svg) !important;
}

/* PIN Input Wrapper */
.flow-pin-holder {
    position: relative;
    width: 88%;
    margin: auto auto 13px;
}

.flow-pin-holder input {
    background-size: 22px;
    background-position: 9px 50%;
    text-align: center;
    display: block;
    margin: auto;
    padding: 15px 15px 15px 15px;
    width: 92%;
    border-radius: 5px;
    border: 1px solid #a4a5a9;
    background: hsla(0, 0%, 100%, .2);
    font-size: 19px;
    color: #fff;
}

.flow-pin-holder:after {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    right: 0;
    width: 60px;
    background-image: url(https://media-content-storage.b-cdn.net/gymfit/img/check-gray.svg);
    background-repeat: no-repeat;
    background-size: 36px;
    background-position: 40% 46%;
}

.validpin:after {
    background-image: url(https://media-content-storage.b-cdn.net/gymfit/img/check-gray.svg);
}

#phonenumber-input, #pin-input {
    text-align: left;
}

input::placeholder {
    color: #dadada;
}

/* Error Messages */
.sendpin-error,
.submitpin-error {
    color: red;
    font-weight: 700;
    font-size: 14px;
    display: none;
}

/* Resend Link */
.resend {
    color: lightskyblue;
    text-decoration: underline;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

button {
    outline: 0;
    width: 90%;
    color: #fff;
    border-radius: 0.5em;
    padding: 0.85em 0;
    font: 500 2em Arial, Helvetica, sans-serif;
    background: #15b8a6;
    text-decoration: none;
    display: inline-block;
    margin: 0 auto;
    position: relative;
}

button img {
    width: 50px;
    display: inline;
    vertical-align: middle;
}

/* Accept Button (Primary) */
.accept {
    margin-top: 40px;
    outline: 0;
    width: 90%;
    color: #000;
    padding: .5em 0;
    font: 400 2.5em Arial, Helvetica, sans-serif;
    border-radius: 8px;
    background: red;
    text-decoration: none;
    display: inline-block;
    border: 0;
}

/* Exit/Decline Button */
button.exit {
    box-shadow: none;
    color: #9ba608;
    background: rgba(0, 0, 0, 0);
    border: 1px solid red;
    padding: .8em 0;
    font: 200 1.8em Arial, Helvetica, sans-serif;
}

/* Button Containers */
#actions,
#actions2 {
    padding: 0;
    z-index: 9;
    position: relative;
    margin-bottom: 0;
}

#actions {
    margin-top: -10px;
}

#actions2 {
    margin-bottom: 20px;
}

#exit {
    margin-top: 15px;
    margin-bottom: 0;
}

#msisdnESVD1Div #actions {
    margin-top: 10px;
}

/* ==========================================================================
   OTP SECTION STYLES
   ========================================================================== */

#otpESVD1Div {
    margin-top: -150px;
    position: relative;
    z-index: 1;
}

#msisdnESVD1Div {
    margin-top: -150px;
    position: relative;
    z-index: 1;
}

#wording_otp {
    display: block;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 25px;
    margin-top: 10px;
}

#wording_description {
    font-size: 14px;
    line-height: 1.25;
    font-weight: 300;
    opacity: 1;
}

.cptpl_description{
    display: none;
}

#terms {
    margin-top: 0;
    margin-bottom: 10px;
}

#terms .clearfix {
    font-weight: 400;
}

#msisdnESVD1Div #terms {
    margin-top: 10px;
    margin-bottom: 20px;
}

#exit-otp{
    margin-top: 20px;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

#footer {
    padding-top: 1.5em;
    padding-bottom: 2em;
    z-index: 1;
    position: relative;
}

#footer .text {
    margin-bottom: 0.5em;
    font-size: 1em;
}

#footer a {
    margin: 0 1em;
}

#footer ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    font-size: 0.8rem;
    padding-inline-start: 0;
}

.foot-text {
    color: #FFF;
    text-align: center;
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

/* ==========================================================================
   RESULT MESSAGE STYLES
   ========================================================================== */

#result-message {
    padding: 0;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.home-button:hover {
    background: #0056b3;
}

.error-reference {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    font-family: monospace;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.clearfix:after {
    content: " ";
    visibility: hidden;
    display: block;
    height: 0;
    clear: both;
}

span {
    background-color: inherit;
}

.text,
footer,
header,
img {
    display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media screen and (min-width: 450px) {
    .heading {
        font-size: 36px;
    }
}

@media screen and (min-width: 426px) {
    body {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    #page {
        margin: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    
    .body-container {
        padding: 0 15px 15px;
    }
}

@media screen and (max-width: 480px) {
    .body-container {
        padding: 0;
    }
    
    .input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media screen and (max-width: 300px) {
    body {
        font-size: 12px;
    }
}

/* ==========================================================================
   HIDDEN ELEMENTS
   ========================================================================== */


/* ==========================================================================
   NOSCRIPT STYLES
   ========================================================================== */

noscript h1 {
    color: #dc3545;
    font-size: 18px;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

/* Make all .cptpl_subscribe, .submit, #subscribe_button, #submit_pin_btn look like .accept */
button.cptpl_subscribe,
button.submit,
#subscribe_button,
#submit_pin_btn {
    margin-top: 5px;
    outline: 0;
    width: 90%;
    color: #000;
    font: 500 2em Arial, Helvetica, sans-serif;
    border-radius: 0.5em;
    padding: .8em 0;
    background: red;
    text-decoration: none;
    display: inline-block;
    border: 3px solid black;
}

/* Make all .exit/cptpl_exit (decline/exit) buttons match the Decline style */
#declineBtn{
    color: grey !important;
    border: 3px solid red !important;
}

button.exit,
button.cptpl_exit {
    box-shadow: none;
    color: #fff;
    background: rgba(0, 0, 0, 0);
    border: 3px solid #ffffff;
    padding: .8em 0;
    font: 400 1.8em Arial, Helvetica, sans-serif;
}
input[type="text"].input,
input[type="number"].input {
    background: #fff;
    border: 1px solid #000;
    border-radius: 5px;
    color: grey;
    font-size: 1.25em;
    padding: 15px 16px 15px 16px;
    margin-bottom: 0;
    width: 90%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: none;
}
input[type="text"].input:focus,
input[type="number"].input:focus {
    border-color: #20b3e5;
    box-shadow: 0 0 0 2px #20b3e555;
}
input.input::placeholder {
    color: grey;
    opacity: 1;
}



/* General Modal and Loader Styles */
.modal-backdrop.show-true { display: block; }
.error-modal.modalMsg.show-true { z-index: 9999; background: transparent;}
.hide-aria{pointer-events:none!important;opacity:0.25!important;}
.loader-modal { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.2); justify-content: center; align-items: center; }
.loader-modal.show-true { display: flex !important; }
.loader-modal-msg { background: #fff; border-radius: 12px; padding: 32px 16px 24px; }
.loading { border: 4px solid #f3f3f3; border-top: 4px solid red; border-radius: 50%; width: 36px; height: 36px; animation: spin 1s linear infinite; margin: 0 auto 18px auto;}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
 
/* Result Messages */
.success-message { color: #209d34; font-size: 1.25em; margin-top: 2em; text-align:center;}
.error-message { color: red; font-size: 1.25em; margin-top: 2em; text-align:center;}
.error-details { margin-top: 1em; font-size: 0.9em; color: #fff; }
.error-reference { margin-top: 1.5em; font-size: 0.8em; color: #666; text-align: center; }
 
/* Content Block Message */
.cb-blocked-message-container { padding: 0; margin: 0; margin-top: 2em; }
.cb-blocked-message { font-size: 1.18em; color: #fff; text-align: center; }
 
/* Buttons */
.home-button { 
  display: block; margin: 1.5em auto 0; padding: 10px 20px; background-color: red; 
  color: black; border: none; border-radius: 4px; font-size: 1em; cursor: pointer; 
  text-decoration: none; text-align: center; max-width: 200px;
}
.home-button:hover { background-color: red; }
 
/* Button States */
.accept.cptpl_subscribe.submit[disabled] {
  opacity: 0.7; cursor: not-allowed; background-color: #a0a0a0 !important;
  color: #666 !important; box-shadow: none !important;
}
.accept.cptpl_subscribe.submit.waiting {
  position: relative; color: transparent !important;
}
.accept.cptpl_subscribe.submit.waiting::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; animation: button-spinner 1s linear infinite;
}
@keyframes button-spinner { to { transform: translate(-50%, -50%) rotate(360deg); } }