/* CTBC Bank Payment System - Main Styles */

/* ===== BASE STYLES ===== */
html, body {
    font-size: 12px;
    font-family: 'Noto Sans', sans-serif, 'Microsoft JhengHei', 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== BACKGROUND ===== */
.bg {
    background: #007c7c;
    background: linear-gradient(to bottom, #007c7c 4%, #ffffff 82%, #ffffff 95%);
    min-height: 100vh;
}

/* ===== MAIN CONTAINER ===== */
.box {
    width: 65%;
    margin: 15px auto;
    background-color: #fff;
    border: 1px solid #ccc;
}

/* ===== HEADER ===== */
.for-logo {
    border-bottom: 1px solid #999;
    padding: 0 15px;
    width: 100%;
}

.logo {
    height: 70px;
    margin-top: -7px;
    margin-left: -5px;
}

/* ===== LAYOUT ===== */
.autofix {
    padding-top: 15px;
}

hr {
    border-top-color: #999;
}

:focus {
    outline: none;
}

/* ===== TYPOGRAPHY ===== */
h3.top-title {
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    padding-bottom: 10px;
}

.eng-title {
    font-size: x-small;
    color: #666666;
    font-family: "Arial Narrow";
    display: block;
}

.text-large {
    font-size: x-large;
}

.text-green {
    color: #007c7c;
}

.p-text-green {
    color: #008080;
    text-align: justify;
}

.p-text-gray {
    color: #999999;
    text-align: justify;
}

.font-weight-bold {
    font-weight: 700 !important;
}

/* ===== FORM LAYOUT ===== */
.form-horizontal .row {
    margin-bottom: 15px;
}

.l-title {
    float: none;
    vertical-align: middle;
    width: 25%;
    display: inline-block;
    margin-left: 8%;
    padding: 0 15px;
}

.r-info {
    float: none;
    vertical-align: middle;
    width: 66%;
    display: inline-block;
    padding: 0 15px;
}

.r-info p {
    font-weight: bold;
    overflow-wrap: break-word;
}

.r-info .text-green {
    font-size: 18px;
    overflow-wrap: break-word;
}

.form-order-info .row {
    margin-bottom: 10px;
}

/* ===== FORM CONTROLS ===== */
.form-control {
    height: auto;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-control:focus {
    border-color: #007c7c;
    box-shadow: 0 0 0 2px rgba(0, 124, 124, 0.1);
}

/* Remove number input spinners */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== CARD INPUT STYLES ===== */
.panform {
    padding-left: 8px;
    text-align: left;
}

.pan-col {
    text-align: center;
}

.pan-dash {
    padding-top: 5px;
    margin: 0;
    line-height: 30px;
    font-weight: 700;
    float: left;
}

.pl-1 {
    padding-left: 8px;
}

.col-3 {
    float: left;
    width: 19.33%;
    margin: 2px 2%;
    position: relative;
}

.col-4 {
    float: left;
    width: 30.33%;
    margin: 2px 2%;
    position: relative;
}

.col-s {
    float: left;
    width: 14.33%;
    margin: 2px 1%;
    position: relative;
}

.text-center {
    text-align: center;
}

/* ===== BUTTONS ===== */
.bottom-btn {
    text-align: center;
    margin: 20px 0;
}

.bottom-btn .a-btn {
    margin: 0 5px;
    display: inline-block;
    min-width: 150px;
}

.sb-btn {
    margin-bottom: 10px;
    width: 100%;
}

.btn-ctbc {
    color: #fff;
    background-color: #007c7c;
    border-color: #006767;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-ctbc:hover {
    color: #fff;
    background-color: #005555;
    border-color: #006767;
}

.btn-ctbc:focus,
.btn-ctbc.focus {
    color: #fff;
    background-color: #005555;
    border-color: #006767;
}

.btn-ctbc:active,
.btn-ctbc.active {
    color: #fff;
    background-color: #005555;
    border-color: #006767;
}

.btn-line {
    border: 1px solid #007c7c;
    background-color: transparent;
    color: #007c7c;
}

.btn-line:hover {
    background-color: #007c7c;
    color: #fff;
}

/* ===== NOTES ===== */
ul.notes {
    color: #999999;
    padding-inline-start: 20px;
    list-style-type: decimal;
}

ul.notes li p {
    margin: 4px 0;
}

/* ===== FOOTER ===== */
footer {
    padding: 20px 0;
}

.img-3d {
    display: block;
    max-width: 100%;
    height: auto;
}

.twpay {
    float: left;
    position: relative;
    width: 30.33%;
    text-align: justify;
}

/* ===== MODALS ===== */
.modal {
    text-align: center;
    padding: 0 !important;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

.modal-backdrop {
    opacity: 0.5;
}

/* ===== LOADING SPINNER ===== */
.css-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007c7c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PAYMENT CONTAINER ===== */
.payment-container {
    padding: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop (large screens) */
@media (min-width: 970px) {
    .autofix {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    body {
        font-size: 14px;
    }
    
    .sb-btn {
        min-width: 150px;
    }
}

/* Tablet */
@media (max-width: 970px) {
    body {
        font-size: 12px;
    }
    
    .col-4 {
        width: 40.33%;
    }
    
    .twpay {
        width: 42.33%;
    }
    
    .col-s {
        width: 12.33%;
    }
    
    .l-title {
        margin-left: 0%;
    }
    
    .r-info {
        width: 74%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }
    
    .box {
        width: 100%;
        margin-top: 0px;
    }
    
    .for-logo {
        text-align: center;
    }
}

@media (max-width: 750px) {
    h3.top-title {
        font-size: 22px;
    }
    
    h3.top-title span {
        display: block;
    }
    
    .l-title {
        width: 44%;
    }
    
    .r-info {
        width: 54%;
    }
    
    .r-info .text-green {
        font-size: 15px;
    }
    
    .form-order-info .row {
        text-align: left;
        margin-bottom: 0;
    }
}

@media (max-width: 550px) {
    h3.top-title {
        font-size: 18px;
    }
    
    .eng-title {
        font-size: 10px;
    }
}
