:root {
    --primary-colour: #4b0983;
    --primary-colour-hover: #6a0fb8;
    --secondary-colour: #ff43bf;
    --secondary-colour-hover: #f46fc8;
    --success-colour: #55d638;
    --bg-app: #f1f3fa;
    --text-dark: #171a1c;
    --default-font-size: 16px;
}

body {
    font-size: var(--default-font-size) !important;
    font-family: "Instrument Sans", sans-serif !important;
    color: var(--text-dark) !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Nav (e-motorv2) */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.img-logo {
    max-width: 175px;
    height: auto;
    width: 100%;
}
@media (max-width: 576px) {
    .img-logo {
        max-width: 120px;
    }
}
.img-icon {
    max-width: 30px;
    height: auto;
    display: inline-block;
}
.select-language {
    border: none !important;
    padding-left: 7px !important;
    padding-right: 35px !important;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: none !important;
}

/* Card */
.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}
.card-header-custom {
    background-color: var(--primary-colour);
    color: #ffffff;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 1.1rem;
}
.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    text-transform: none;
}
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    font-family: inherit;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-colour);
    box-shadow: 0 0 0 0.25rem rgba(75, 9, 131, 0.25);
}
.form-control:disabled, .form-control[readonly], .form-select:disabled, .form-select[readonly] {
    background-color: #e9ecef !important;
    opacity: 1;
    cursor: not-allowed;
    color: #6c757d;
}
.form-control[readonly]:focus, .form-control:disabled:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-colour);
    border-color: var(--primary-colour);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
}
.btn-primary-custom:hover {
    background-color: var(--primary-colour-hover);
    border-color: var(--primary-colour-hover);
    color: white;
}

::placeholder {
    color: #ced4da !important;
    opacity: 1; /* Firefox */
}
:-ms-input-placeholder {
    color: #ced4da !important;
}
::-ms-input-placeholder {
    color: #ced4da !important;
}

/* Footer (e-motorv2) */
.footer-wrapper {
    background-color: var(--primary-colour);
    color: #ffffff;
    margin-top: auto;
}
.footer-wrapper .img-logo {
    max-width: 100px;
}
.fs-7 { font-size: 0.875rem; }
.btn-socials {
    background-color: var(--secondary-colour);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    color: #ffffff !important;
}
.btn-socials:hover { opacity: 0.9; }
.footer-wrapper p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* Segmented Toggle UI */
.segmented-control {
    display: flex;
    background-color: #f4f5f8;
    border-radius: 50px;
    padding: 4px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.segmented-control input[type="radio"] {
    display: none;
}
.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 8px 16px;
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.segmented-control label i {
    margin-right: 8px;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.segmented-control input[type="radio"]:checked + label {
    color: #ffffff;
    background-color: var(--primary-colour);
    box-shadow: 0 4px 10px rgba(75, 9, 131, 0.2);
}
.segmented-control input[type="radio"]:checked + label i {
    color: #ffffff;
}
.segmented-control label:hover:not(:checked) {
    color: #495057;
}

@media (max-width: 400px) {
    .segmented-control label {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .segmented-control label i {
        margin-right: 5px;
        font-size: 0.9rem;
    }
}

/* claim.blade.php refactored inline styles */
.text-primary-custom { color: var(--primary-colour) !important; }
.bg-primary-custom { background-color: var(--primary-colour) !important; }
.bg-secondary-custom { background-color: var(--secondary-colour) !important; }
.reward-icon-box { width: 60px; height: 60px; }
.reward-desc { font-size: 0.85rem; line-height: 1.3; }
.reward-label { font-size: 0.95rem; font-weight: 500; text-transform: none; }
.alert-info-custom { background-color: #fafbfc; color: #495057; }
.alert-text { font-size: 0.85rem; line-height: 1.4; }
.fs-7 { font-size: 0.75rem !important; }

/* checker-input-group */
.checker-input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    border-radius: 8px;
    background: #fff;
}
.checker-input-group .choices { 
    flex: 0 0 115px !important;
    margin-bottom: 0 !important; 
}
.checker-input-group .choices__inner { 
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 8px 0 0 8px !important; 
    background-color: #f8f9fa !important; 
    padding: 0 15px !important;
    border-right: none !important;
    display: flex !important; 
    align-items: center !important; 
}
.checker-input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
    height: 48px !important;
}

/* Status Page Classes */
.status-container {
    min-height: 65vh;
}

.status-image-success {
    width: 250px;
    height: 120px;
}
@media (min-width: 768px) {
    .status-image-success {
        width: 450px;
        height: 170px;
    }
}

.status-image-error {
    width: 250px;
    height: 250px;
}

.status-text-centered {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}
