/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f4f6f9;
}

/* ===== HEADER ===== */
.header {
  background: #0d1b2a;
  color: white;
  padding: 20px;
  text-align: center;
}

.header h1 {
  font-size: 28px;
}

.header p {
  opacity: 0.8;
  font-size: 14px;
}

.header {
  position: relative;
}

.admin-link-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.admin-link-btn:hover {
  background: rgba(255,255,255,0.24);
}

@media(max-width: 600px) {
  .admin-link-btn {
    position: static;
    display: inline-block;
    margin-top: 12px;
  }
}

/* ===== FORM CONTAINER ===== */
.container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-head {
  margin-bottom: 25px;
}

.form-head h2 {
  font-size: 24px;
  color: #0d1b2a;
}

.form-head p {
  color: #555;
  font-size: 14px;
}

.section-title {
  font-size: 16px;
  color: #0d1b2a;
  margin: 26px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef1f5;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

label .hint {
  font-weight: 400;
  color: #888;
  font-size: 12px;
}

input, select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
}

input:focus, select:focus {
  border-color: #0077ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,119,255,0.1);
}

input.invalid, select.invalid {
  border-color: #e03131;
}

.field-error {
  color: #e03131;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

input[type="file"] {
  padding: 8px;
  background: #fafbfc;
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.btn {
  width: 100%;
  padding: 14px;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #005fd1;
}

.btn:disabled {
  background: #9ab8e0;
  cursor: not-allowed;
}

.form-note {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}

.success {
  color: green;
}

.error {
  color: red;
}

.success-box {
  text-align: center;
  padding: 40px 20px;
}

.success-box .checkmark {
  font-size: 48px;
  color: #2f9e44;
}

.success-box h2 {
  margin: 16px 0 8px;
  color: #0d1b2a;
}

.success-box a {
  display: inline-block;
  margin-top: 20px;
  color: #0077ff;
  text-decoration: none;
  font-weight: 600;
}

@media(max-width: 768px) {
  .form-row, .doc-grid {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

@media(max-width: 700px){
  .container{margin:24px auto;padding:22px 20px;}
  .header{padding:16px;}
  .header h1{font-size:22px;}
  .form-head h2{font-size:20px;}
}

@media(max-width: 420px){
  .container{margin:16px auto;padding:16px 14px;border-radius:8px;}
  .header h1{font-size:19px;}
  input, select{padding:10px;font-size:13px;}
  .btn{padding:12px;font-size:15px;}
}
