/* Customer Self Service Portal - Frontend Styles */

/* Container and Layout */
.css-portal-container {
    max-width: 430px;
    margin: 0 auto;
    background: #FFFFFF;
    font-family: Arial, sans-serif;
    position: relative;
    min-height: 325px;
}

/* Header */
.css-portal-header {
    width: 100%;
    height: 33px;
    background: #E7ECF2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-sizing: border-box;
}

.css-portal-title {
    font-family: Arial;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 14px;
    color: #000000;
    margin: 0;
}

.css-portal-logo {
    width: 60px;
    height: 19px;
}

/* Main Content Area */
.css-portal-content {
    padding: 20px 18px;
    min-height: 250px;
}

/* Section Headings */
.css-section-heading {
    font-family: Arial;
    font-style: normal;
    font-weight: 700;
    font-size: 8px;
    line-height: 11px;
    text-align: center;
    color: #384A58;
    margin: 15px 0;
}

/* Action Buttons Grid */
.css-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
    justify-items: center;
}

.css-action-button {
    width: 139px;
    height: 41px;
    background: #384A58;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.css-action-button:hover {
    background: #495a68;
}

.css-action-button .css-button-text {
    font-family: Arial;
    font-style: normal;
    font-weight: 700;
    font-size: 8px;
    line-height: 11px;
    color: #FFFFFF;
    text-align: center;
    padding: 5px;
}

.css-action-button::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1px;
    border: 1px solid #E0FF47;
}

/* Support Section */
.css-support-section {
    width: 293px;
    height: 60px;
    background: #E7ECF2;
    border-radius: 4px;
    margin: 20px auto;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.css-support-title {
    font-family: Arial;
    font-style: normal;
    font-weight: 700;
    font-size: 8px;
    line-height: 11px;
    text-align: center;
    color: #384A58;
    margin-bottom: 10px;
}

.css-support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.css-support-item {
    font-family: Arial;
    font-style: normal;
    font-weight: 400;
    font-size: 7px;
    line-height: 11px;
    color: #384A58;
    text-align: left;
}

/* Forms Styling */
.css-form {
    max-width: 100%;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.css-form-field {
    margin-bottom: 15px;
}

.css-form-label {
    display: block;
    font-family: Arial;
    font-weight: 700;
    font-size: 10px;
    color: #384A58;
    margin-bottom: 5px;
}

.css-form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E7ECF2;
    border-radius: 4px;
    font-family: Arial;
    font-size: 10px;
    box-sizing: border-box;
}

.css-form-input:focus {
    outline: none;
    border-color: #384A58;
}

.css-form-submit {
    background: #384A58;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: Arial;
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.css-form-submit:hover {
    background: #495a68;
}

/* Login Form */
.css-login-form {
    max-width: 350px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.css-login-title {
    font-family: Arial;
    font-weight: 700;
    font-size: 14px;
    color: #384A58;
    text-align: center;
    margin-bottom: 20px;
}

/* Dashboard */
.css-dashboard {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 4px;
}

.css-dashboard-welcome {
    font-family: Arial;
    font-weight: 700;
    font-size: 12px;
    color: #384A58;
    margin-bottom: 20px;
    text-align: center;
}

/* Customer Info */
.css-customer-info {
    background: #F8F9FA;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.css-customer-info.horizontal {
    display: grid;
    gap: 10px;
}

.css-customer-info.card {
    background: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.css-info-field {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.css-info-field:last-child {
    margin-bottom: 0;
}

.css-info-label {
    font-family: Arial;
    font-weight: 700;
    font-size: 9px;
    color: #384A58;
}

.css-info-value {
    font-family: Arial;
    font-weight: 400;
    font-size: 9px;
    color: #000000;
}

.css-info-actions {
    margin-top: 15px;
    text-align: center;
}

.css-edit-profile-link {
    font-family: Arial;
    font-size: 10px;
    color: #384A58;
    text-decoration: underline;
}

.css-edit-profile-link:hover {
    color: #495a68;
}

/* Error and Success Messages */
.css-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-family: Arial;
    font-size: 10px;
}

.css-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.css-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.css-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 480px) {
    .css-portal-container {
        max-width: 100%;
        margin: 0;
    }

    .css-action-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .css-support-content {
        grid-template-columns: 1fr;
    }

    .css-customer-info.horizontal {
        grid-template-columns: 1fr;
    }
}

/* Loading States */
.css-loading {
    text-align: center;
    padding: 20px;
    font-family: Arial;
    font-size: 10px;
    color: #384A58;
}

.css-loading::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        color: rgba(56, 74, 88, 0);
        text-shadow:
            .25em 0 0 rgba(56, 74, 88, 0),
            .5em 0 0 rgba(56, 74, 88, 0);
    }

    40% {
        color: #384A58;
        text-shadow:
            .25em 0 0 rgba(56, 74, 88, 0),
            .5em 0 0 rgba(56, 74, 88, 0);
    }

    60% {
        text-shadow:
            .25em 0 0 #384A58,
            .5em 0 0 rgba(56, 74, 88, 0);
    }

    80%,
    100% {
        text-shadow:
            .25em 0 0 #384A58,
            .5em 0 0 #384A58;
    }
}