@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f0ebf8;
    padding:20px;
}

.form-container{
    max-width:1100px;
    width:100%;
    margin:auto;
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
    overflow:hidden;
}

.logo-section{
    text-align:center;
    padding:30px 20px 15px;
}

.logo-section img{
    width:180px;
    height:auto;
}

.title{
    text-align:center;
    font-size:32px;
    font-weight:600;
    color:#202124;
    margin-bottom:25px;
}

form{
    width:100%;
}

.top-section{
    display:flex;
    gap:30px;
    justify-content:space-between;
    align-items:stretch;
    margin:30px;
}

.required{
    color:#e53935;
    font-weight:600;
}

.employee-card{
    flex:1;
    background:#fff;
    padding:25px;
    border-radius:12px;
    border-left:5px solid #673ab7;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    transition:.3s;
}

.employee-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 15px rgba(0,0,0,.12);
}

.employee-card h3{
    font-size:20px;
    color:#df0c0c;
    margin-bottom:20px;
}

.rating-card{
    flex:1;
    background:#fff;
    padding:25px;
    border-radius:12px;
    border-left:5px solid #34a853;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    transition:.3s;
}

.rating-card:hover{
    transform:translateY(-3px);
    box-shadow:0 6px 15px rgba(0,0,0,.12);
}

.rating-card h3{
    font-size:20px;
    color:#df0c0c;
    margin-bottom:20px;
}

.rating-card ul{
    list-style:none;
}

.rating-card li{
    padding:12px 0;
    border-bottom:1px solid #ececec;
    font-size:17px;
    color:#444;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-size:16px;
    font-weight:600;
}

.form-control{
    width:100%;
    height:48px;
    padding:12px 15px;
    border:1px solid #d0d7de;
    border-radius:8px;
    font-size:15px;
}

.form-control:focus{
    outline:none;
    border:2px solid #673ab7;
    box-shadow:0 0 8px rgba(103,58,183,.2);
}

.evaluation-section{
    margin:0 30px 25px;
    background:#fff;
    border-left:5px solid #673ab7;
    border-radius:12px;
    padding:22px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    transition:.3s;
}

.evaluation-section:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 15px rgba(0,0,0,.12);
}

.evaluation-section h3{
    margin-bottom:8px;
}

.evaluation-section p{
    color:#5f6368;
    line-height:1.6;
    margin-bottom:15px;
}

.goal-metrics {
  display: flex;
  gap: 60px;
  align-items: center;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.icon {
  font-size: 28px;
  color: #c62828;
  margin-bottom: 5px;
}

.label {
  font-size: 14px;
  color: #666;
  font-weight: 800;
  text-transform: uppercase;
}

.value {
  font-size: 20px;
  font-weight: 800;
  color: #000;
}

.kpi-box label{
    font-size: 18px;
    font-weight: 500;
}

.kpi-comment label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 30px;
    color: #d1d5db;
    cursor: pointer;
    transition: 0.3s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f59e0b;
}

.kpi-comment{
    flex:1;
}

.kpi-comment textarea{
    min-height:90px;
    resize:vertical;
}

textarea.form-control{
    padding:15px;
}

.submit-btn{
    display:block;
    width:260px;
    margin:30px auto;
    padding:14px;
    border:none;
    border-radius:8px;
    background:#673ab7;
    color:#fff;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.submit-btn:hover{
    background:#5b32a3;
}

.footer{
    text-align:center;
    padding:15px;
    border-top:1px solid #eee;
    font-size:14px;
    font-weight: 400;
    color:#777;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.form-container{
    animation:fadeIn .5s ease;
}

@media (max-width:768px){

    .top-section{
        flex-direction:column;
    }

    .kpi-row{
        flex-direction:column;
    }

    .kpi-box,
    .kpi-comment{
        width:100%;
    }

    .submit-btn{
        width:100%;
    }

    .evaluation-section{
        margin:15px;
    }

}

/* =========================
   VIEW FORM PAGE
========================= */

.container{
    max-width:1100px;
    margin:auto;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 18px rgba(0,0,0,.12);
}

.header{
    background:#673ab7;
    color:#fff;
    padding:30px;
    text-align:center;
}

.header h1{
    font-size:32px;
    margin-bottom:8px;
}

.header p{
    font-size:16px;
    opacity:.9;
}

/* Readonly Inputs */

input[readonly],
textarea[readonly]{
    background:#f5f5f5;
    color:#222;
    cursor:default;
}

.rating-value{
    width:90px;
    height:45px;
    text-align:center;
    font-size:18px;
    font-weight:600;
    border:1px solid #ccc;
    border-radius:8px;
    background:#f8f8f8;
}

.kpi-comment textarea{
    width:100%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    background:#f8f8f8;
    resize:none;
}

/* KPI Box */

.kpi-box{
    min-width:120px;
}

.kpi-box label,
.kpi-comment label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

/* Metric Cards */

.metric-card{
    background:#fafafa;
    padding:15px;
    border-radius:10px;
    min-width:150px;
    text-align:center;
    border:1px solid #eee;
}

.metric-card i{
    font-size:25px;
    color:#673ab7;
    margin-bottom:8px;
}

.goal-metrics{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    align-items:flex-start;
}

/* Back Button */

.back-btn{
    display:inline-block;
    padding:14px 28px;
    background:#673ab7;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:.3s;
}

.back-btn:hover{
    background:#522b97;
}