﻿
:root {
    --sksoft-blue: rgba(7, 30, 63);
    --secondary-blue: rgba(7, 30, 63, 0.5);
    --background-color: rgba(248, 249, 252);
    --h1-font-size: 24px;
    --font-size-regular: 16px;
    --font-size-subtext: 14px;
}

/* Basic Layout
---------------------------------------------------------------- */

/* Full-screen outer container centered using Flexbox */
.outer-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;
    aspect-ratio: 3 / 4;
    /* Center vertically */
    height: 100%;
    /* Full viewport height */
    background-color: #f0f0f0;
   /* border: dashed;
    border-color: blue;*/
}

/* Inner container for iframe */
.iframe-container {
    /*width: 80%;*/
    height: 100%;
    max-width: 800px;
    aspect-ratio: 3 / 4; /* Maintains 16:9 ratio */
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
  /*  border: solid;
    border-color: red;*/
}

    /* Responsive iframe */
    .iframe-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        /*border: dashed;
        border-color: blue;*/
    }



/*.iframe-addcard-container {
   position: relative;
   
   align-self: center;
   align-content:center;
   align-items: center;
   width: 600px;
   padding-bottom: 56.25%; 16:9 aspect ratio
    
   overflow: hidden;
   border: dashed;
   border-color: blue;
}

    .iframe-addcard-container iframe {
        display: flex;
        justify-content: center;*/ /* Center horizontally */
        /*align-items: center;*/
         /* Center vertically */
        /*height: 100vh;*/
         /* Full viewport height */
        /*background-color: #f0f0f0;
        border: solid;
        border-color: red;
    }*/

#AddCardFrame {
    border: solid;
    border-color: red;
}

* {
    box-sizing: border-box;
    font-family: 'Sofia Pro', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
}

body {
    background-color: var(--background-color);
    font-family: 'Sofia Pro', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    font-size: 100%;
    margin: 0;
    padding: 0;
}

body,
.k-body,
html {
    height: auto !important;
    background-color: var(--background-color);
}

.main-layout,
.k-body,
.content-wrapper,
#payment-form {
    background-color: var(--background-color);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(253, 253, 253, 0.7));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.02);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.site-logo {
    height: 16px;
    width: auto;
}

.spf-form {
    background: #fff;
}

.spf-form,
.landing-information-container {
    min-width: 500px;
    max-width: 700px;
    width: 60%;
    padding: 0;
    margin: 2em auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-header,
.section-header {
    margin: 0 !important;
    font-size: 20px;
    font-weight: 600;
    color: var(--sksoft-blue);
}

.form-input-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.form-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 24px;
}

.expiration-date-input {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    width: 100%;
}

fieldset,
.content-card,
.information-section {
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 22px;
    padding: 40px 40px;
    background-color: #FFFFFF;
    position: relative;
    z-index: 0;
    overflow: hidden;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.02);
}

.information-section {
    width: 100%;
    justify-content: flex-start;
    gap: 28px;
}

fieldset,
.content-card
{
    justify-content: space-between;
    gap: 40px;
}

    fieldset::before,
    .content-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient( circle at 25% -0.90%, rgba(255, 255, 255, 0) -10%, rgba(7, 22, 45, 0.22) 200% );
        background-size: 200% 110%;
        background-repeat: no-repeat;
        opacity: 0.15;
        z-index: 1;
        pointer-events: none;
    }

.spf-field-submit {
    border-radius: 0;
    color: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    padding-bottom: 2.5em;
}

#submit-payment {
    border-radius: 12px;
    background-color: var(--sksoft-blue);
}

h2 {
    font-weight: 100;
    font-size: 1.35em;
    color: #102E59;
}

.spf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    z-index: 1;
}

.default-card-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px;
    fill: #FAFAFA;
    width: 100%;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

    .default-card-group:has(input[type="checkbox"]:checked) {
        background: #FBFBFB;
    }

label {
    display: block;
    white-space: nowrap;
    overflow: hidden;
}

    label.internal,
    label.spf-field-group {
        font-weight: 500;
        color: var(--sksoft-blue);
    }

.spf-label-secondary {
  color: #999;
  font-size: .8125em;
  margin-top: .5em;
}

.spf-input-text {
    background: #FFFFFF;
    display: block;
    width: 100%;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
}

input {
    font-family: 'Sofia Pro', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    color: var(--sksoft-blue);
    box-shadow: inset 0 1.1px 6px rgba(0, 0, 0, 0.02);
}

    input:focus {
        border-color: rgba(8, 26, 52, 0.80);
        outline: none;
    }

    input::placeholder {
        color: rgba(8, 26, 52, 0.25);
    }


.credit-card-information-form-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

/* Specific Fields
---------------------------------------------------------------- */

/* Name */

.spf-fs-name .spf-field {
  width: 46%;
  margin-right: 2%;
}

.spf-field-lname {
  margin-right: 0;
}

/* Address */

.spf-field-state {
  width: 200px;
}

/* Iframe divs */
.spf-field-cc{
  height:50px;
}

.spf-number{
  width:67%;
}

.spf-verification_value{
  width:30%;
}


/* Expiry Date */

.spf-field-group {
  display: inline-block;
}

.spf-month {
  width: 100%;
}

.spf-year {
  width: 100%;
}

.spf-exp-divider {
    font-size: 150%;
    opacity: 0.5;
}

/* Button */

.button {
  display: inline-block;
  width: 100%;
  border-radius: 12px;
  background-color: var(--sksoft-blue);
  color: #fff;
  padding: 16px;
  font-size: 100%;
  border: none;
  cursor: pointer;
}
    .button:hover {
        background: #102E59;
    }

    .button:active {
      position: relative;
      top: 1px;
    }

/* Message */

#errors,
#message {
  color: red;
  margin: 1em 0;
  line-height: 1.5;
}

#message {
  color: green;
}


/* Small Screen Modifications*/

@media screen and (max-width: 400px) {
  .spf-form {
    margin: 0 auto;
  }
}
@media screen and (max-width: 625px) {
  .spf-form {
    width: 80%;
  }
}

/*Opening page*/

.animation-container {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 50px auto;
}

.credit-card {
    width: 200px;
    height: 120px;
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 50px;
    animation: spinSlow 3s linear forwards;
}

.wallet {
    width: 220px;
    height: 140px;
    background: #333;
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    left: 40px;
    z-index: -1;
}

.message-container.loading-message {
    background-color: white;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    pointer-events: auto; /* allow interaction */
    z-index: 1;
}

.loading-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}


@keyframes spinSlow {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes spinFast {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(1080deg);
    }
}

@keyframes slideIntoWallet {
    0% {
        top: 0;
    }

    100% {
        top: 60px;
        opacity: 0;
    }
}


/* Success Landing Page */
.success-header-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.success-header
.verification-header {
    margin: 0 !important;
    font-size: 24px;
}

.success-message
.verification-message {
    margin: 0 !important;
}

.two-row-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
}

.landing-detail-title {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--sksoft-blue);
    opacity: 0.5;
}

.landing-detail-value {
    margin: 0px !important;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 500;
    color: var(--sksoft-blue);
}

.landing-card-details {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.landing-detail-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
}


/* Shared VerifyCode, NotFound pages */

.center-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f8f9fc;
    padding: 20px;
}

.scroll-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    background-color: #f8f9fc;
    padding: 120px 20px 40px;
    overflow-y: auto;
}

/* Message specific styling 
   Todo: Create a component for the message box
*/

.message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 500px;
    background-color: white;
    padding: 32px;
    border: 1px solid rgba(7, 30, 63, 0.05);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #F9F9FA;
    border: 3px solid #F4F5F6;
}

.icon-medium {
    height: 30px;
    width: auto;
}

.message-header,
.message-header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .message-header
    {
        gap: 12px;
    }

    .message-header-text {
        gap: 8px;
    }

.message-title {
    margin: 0px !important;
    font-size: var(--h1-font-size);
    font-weight: 600;
    color: var(--sksoft-blue);
}

.message-text
{
    margin: 0px !important;
    font-size: var(--font-size-regular);
    color: var(--secondary-blue);
}

.info-box {
    padding: 16px;
    background-color: #eef3fb;
    border-left: 4px solid var(--sksoft-blue);
    font-size: var(--font-size-regular);
    font-weight: 500;
    color: var(--sksoft-blue);
    border-radius: 4px;
    width: 100%;
    text-align: left;
}