/* Presentation only: gateway payload fields and form behavior are untouched. */
body.candpay-modern{font-family:'Segoe UI',Arial,sans-serif!important;background:#f1f6f3!important;color:#294438!important;min-height:100vh}
.candpay-modern *{box-sizing:border-box}
.candpay-modern>.logo{margin:0!important;padding:24px 15px 18px!important;text-align:center}
.candpay-modern>.logo img{max-height:70px;width:auto;max-width:210px}
.candpay-modern>[id$="dvform"]{max-width:1160px;margin:0 auto!important;padding:0 16px}
.candpay-modern>[id$="dvform"]>.col-md-8{width:100%!important;float:none!important;margin:0!important;padding:0!important}
.candpay-modern .account{background:#fff!important;border:1px solid #dce7df;border-radius:14px!important;box-shadow:0 8px 30px #173c280a;overflow:hidden;padding:18px 20px}
.candpay-modern .account>.page-bar{display:none}
.candpay-modern .page-title,.candpay-modern h3:not(.popover-title){font-size:20px!important;font-weight:600;color:#234d37;margin:0 0 16px;line-height:1.4}
.candpay-modern h2{font-size:21px;line-height:1.4;color:#234d37}
.candpay-modern h4{font-size:14px;font-weight:600;color:#38674d;margin:12px 0 9px}
.candpay-modern .form-section{padding-bottom:8px;border-bottom:1px solid #e1eae4}
.candpay-modern .account .row{margin-left:0!important;margin-right:0!important}
.candpay-modern .account [class*="col-md-"]{min-width:0}
.candpay-modern .account .login-form{padding:0!important}
.candpay-modern .form-group{margin-bottom:12px}
.candpay-modern .control-label{font-size:12px;color:#607e6b;margin-bottom:5px}
.candpay-modern .form-control{height:38px;border:1px solid #cddfd3!important;border-radius:6px!important;background:#fbfdfb;color:#294e39;font-size:13px;box-shadow:none;padding:8px 10px}
.candpay-modern textarea.form-control{height:auto;min-height:70px;resize:vertical}
.candpay-modern .form-control:focus{border-color:#388563!important;box-shadow:0 0 0 2px #38856318}
.candpay-modern .form-control[readonly]{background:#f2f7f4}
.candpay-modern .input-icon>.form-control{padding-left:33px}
.candpay-modern .input-icon>i{color:#56856a}
.candpay-modern .select2-container{max-width:100%;width:100%!important}
.candpay-modern .select2-container.form-control{padding:0;background:transparent;border:0!important;height:auto}
.candpay-modern .select2-choice{height:38px!important;line-height:36px!important;border:1px solid #cddfd3!important;border-radius:6px!important;background:#fbfdfb!important;font-size:13px}
.candpay-modern .btn,.candpay-modern button[type=submit],.candpay-modern input[type=submit]{border-radius:6px!important;font-size:12px!important;min-height:36px;padding:8px 13px;line-height:1.5;font-weight:600;white-space:normal;max-width:100%}
.candpay-modern .btn-primary,.candpay-modern .btn.blue{background:#196c48!important;border-color:#196c48!important;color:#fff!important}
.candpay-modern .btn-primary:hover,.candpay-modern .btn.blue:hover{background:#125337!important}
.candpay-modern button.btn,.candpay-modern a.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.candpay-modern .cp-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}
.candpay-modern .cp-has-icon>i{display:none!important}
.candpay-modern input[type=submit]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px center;padding-left:37px!important}
.candpay-modern .form-actions{background:transparent;border-top:1px solid #e1eae4;padding:12px 0 0;margin:12px 0 0}
.candpay-modern .table,.candpay-modern table{max-width:100%;font-size:12px}
.candpay-modern .account table{width:100%!important;border-collapse:collapse}
.candpay-modern .account table td,.candpay-modern .account table th{padding:8px 10px;line-height:1.5;overflow-wrap:anywhere}
.candpay-modern .account table th{background:#eef6f1;color:#587461;border-color:#dce7df}
.candpay-modern .account table tr+tr td{border-top:1px solid #e7eee9}
.candpay-modern .alert{padding:11px 13px;font-size:12px;line-height:1.6;border-radius:7px!important}
.candpay-modern .radio-list{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.candpay-modern .radio-list label{margin:0;font-size:12px}
.candpay-modern .portlet,.candpay-modern .panel{border-radius:9px!important;border-color:#dce7df!important;box-shadow:none}
.candpay-modern .portlet-title,.candpay-modern .panel-heading{background:#eff7f2!important;color:#294e39!important;padding:11px 14px;border-bottom:1px solid #dce7df}
.candpay-modern .copyright{margin:18px auto!important;padding:0 15px 20px!important;text-align:center;font-size:11px;color:#728779!important}
.candpay-modern .cp-handoff{max-width:480px;margin:12vh auto 24px;padding:24px;background:#fff;border:1px solid #dce7df;border-radius:14px!important;text-align:center;box-shadow:0 8px 30px #173c280a}
.candpay-modern .cp-handoff h1{font-size:19px;color:#234d37;margin:14px 0 8px}
.candpay-modern .cp-handoff p{font-size:13px;line-height:1.7;color:#688171;margin:0}
.candpay-modern .cp-loader{display:block;width:32px;height:32px;border:3px solid #e1eee6;border-top-color:#196c48;border-radius:50%!important;margin:auto;animation:cp-turn 1s linear infinite}
@keyframes cp-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.candpay-modern .cp-loader{animation:none}}
@media(max-width:767px){.candpay-modern>.logo{padding:18px 10px 12px!important}.candpay-modern>.logo img{max-height:56px}.candpay-modern>[id$="dvform"]{padding:0 10px}.candpay-modern .account{padding:14px}.candpay-modern .account [class*="col-md-"]{float:none!important;width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;text-align:left!important}.candpay-modern .account .col-md-12[style]{margin:0!important}.candpay-modern h3{font-size:18px!important}.candpay-modern .form-control{font-size:16px}.candpay-modern .account .btn{float:none!important;margin:5px 0!important}.candpay-modern .account table td{padding:7px;font-size:11px}.candpay-modern .cp-handoff{margin:12vh 14px 24px}}
@media print{body.candpay-modern{background:#fff!important}.candpay-modern .account{border:0;box-shadow:none}.candpay-modern .btn,.candpay-modern .cp-handoff,.candpay-modern .copyright{display:none!important}}