*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI;
}

body{
background:linear-gradient(135deg,#0f172a,#1e3a8a);
height:100vh;
display:flex;
flex-direction:column;
}

.navbar{
background:white;
padding:15px 40px;
display:flex;
align-items:center;
box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

.logo-area{
display:flex;
align-items:center;
gap:10px;
font-weight:bold;
font-size:20px;
color:#1e3a8a;
}

.logo{
width:150px;
height:40px;
}

.main-container{
flex:1;
display:flex;
justify-content:center;
align-items:center;
}

.card{
background:white;
padding:40px;
border-radius:12px;
width:380px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

.card h2{
margin-bottom:5px;
}

.card p{
margin-bottom:20px;
color:#555;
}

input{
width:100%;
padding:12px;
margin:10px 0;
border-radius:6px;
border:1px solid #ccc;
font-size:14px;
}

input:focus{
outline:none;
border-color:#2563eb;
}

button{
width:100%;
padding:12px;
background:#2563eb;
color:white;
border:none;
border-radius:6px;
font-size:15px;
cursor:pointer;
margin-top:10px;
}

button:hover{
background:#1e40af;
}

#message{
margin-top:10px;
color:red;
}

footer{
background:white;
text-align:center;
padding:12px;
font-size:14px;
box-shadow:0 -2px 10px rgba(0,0,0,0.1);
}


/* Tablet */

@media (max-width: 768px){

.navbar{
padding:12px 20px;
}

.logo-area{
font-size:18px;
}

.logo{
width:120px;
height:35px;
}

.card{
width:90%;
padding:30px;
}

.main-container{
padding:20px;
}

}

/* Mobile */

@media (max-width: 480px){

.navbar{
flex-direction:column;
align-items:flex-start;
gap:5px;
padding:10px 15px;
}

.logo-area{
font-size:16px;
}

.logo{
width:100px;
height:30px;
}

.main-container{
padding:15px;
}

.card{
width:100%;
padding:25px;
border-radius:10px;
}

.card h2{
font-size:20px;
}

.card p{
font-size:14px;
}

input{
padding:10px;
font-size:13px;
}

button{
padding:10px;
font-size:14px;
}

footer{
font-size:12px;
padding:10px;
}

}

/* PDF Modal */

.pdf-modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
display:none;
justify-content:center;
align-items:center;
z-index:999;
}

.pdf-card{
background:white;
width:90%;
max-width:700px;
height:90%;
border-radius:10px;
padding:20px;
display:flex;
flex-direction:column;
position:relative;   /* important */
}

.pdf-card iframe{
flex:1;
width:100%;
border:none;
margin:10px 0;
}

.close-btn{
position:absolute;
top:10px;
right:15px;
font-size:20px;
cursor:pointer;
color:#333;
background:white;
border-radius:50%;
width:28px;
height:28px;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

/* Mobile */

@media (max-width:600px){

.pdf-card{
width:95%;
height:90%;
padding:15px;
}

.close-btn{
right:15px;
top:10px;
}

}