/* My Account Frontend Plugin Styles */

.myaccount-form {
    max-width: 500px;
    margin: 20px auto;
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Arial, sans-serif;
}

.myaccount-form h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
}

.myaccount-form p {
    margin-bottom: 15px;
}

.myaccount-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.myaccount-form label span {
    color: red; /* for the required asterisk */
}

.myaccount-form input[type="text"],
.myaccount-form input[type="password"],
.myaccount-form input[type="file"],
.myaccount-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1.4;
    margin-top: 3px;
}

/* Style the display_name dropdown arrow consistently */
.myaccount-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: white url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='5'><polygon points='0,0 10,0 5,5' fill='%23777'/></svg>") no-repeat right 10px center;
    background-size: 10px 5px;
}

/* File input tweaks */
.myaccount-form input[type="file"] {
    padding: 4px;
    font-size: 0.9em;
}

/* Submit button */
.myaccount-form input[type="submit"] {
    background-color: #0073aa;
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}
.myaccount-form input[type="submit"]:hover {
    background-color: #005177;
}

/* Feedback messages */
.myaccount-error,
.myaccount-success {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
    font-size: 0.95em;
}
.myaccount-error {
    background-color: #ffebe8;
    border: 1px solid #dd3c10;
    color: #a00;
}
.myaccount-success {
    background-color: #e1f3d8;
    border: 1px solid #b7d6a3;
    color: #467a1e;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .myaccount-form {
        padding: 15px;
    }
    .myaccount-form h3 {
        font-size: 1.1em;
    }
    .myaccount-form input[type="submit"] {
        width: 100%;
        padding: 12px;
    }
}