/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #003566;
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  font-size: 1.8rem;
}

/* Theme Switch */
.switch {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #00a86b;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Form */
main {
  padding: 1rem;
  max-width: 900px;
  margin: auto;
}

form {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #003566;
  outline: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.form-actions button {
  background-color: #003566;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.form-actions button:hover {
  background-color: #001d3d;
}

/* Resume Preview */
#resumePreview {
  margin-top: 2rem;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.pdf-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.left-column {
  flex: 0 0 30%;
}

.left-column img {
  max-width: 100%;
  border-radius: 10px;
  border: 2px solid #ccc;
}

.right-column {
  flex: 1;
}

.right-column h2 {
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.right-column p {
  margin: 4px 0;
}

.right-column h3 {
  margin-top: 1rem;
  color: #003566;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

/* Footer & Ads */
footer {
  background-color: #003566;
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

#advertisement {
  background-color: #fefefe;
  color: #222;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Feedback Button */
#feedbackBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #003566;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

#feedbackBtn:hover {
  background-color: #001d3d;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 1.5rem;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  position: relative;
}

.modal-content textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  margin-top: 1rem;
  border: 1px solid #ccc;
}

.modal-content button {
  background-color: #003566;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  margin-top: 1rem;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #001d3d;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #555;
  cursor: pointer;
}

.close:hover {
  color: black;
}

/* Responsive */
@media (max-width: 768px) {
  .pdf-wrapper {
    flex-direction: column;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-content {
    margin-top: 30%;
  }
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #1e1e1e;
}

body.dark-mode form,
body.dark-mode #resumePreview,
body.dark-mode .modal-content {
  background-color: #1d1d1d;
  color: #f0f0f0;
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: #2a2a2a;
  color: #f0f0f0;
  border: 1px solid #555;
}

body.dark-mode .form-actions button,
body.dark-mode #feedbackBtn {
  background-color: #00a86b;
  color: white;
}

.free-banner {
  background-color: #00a86b;
  color: white;
  text-align: center;
  padding: 0.8rem;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
