/* ==== GLOBAL/BASE ==== */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', 'Lucida Sans', Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ecf0fa 0%, #f7fbf5 80%);
}

* {
    box-sizing: border-box;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 42px 20px 20px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 26px;
    box-shadow: 0 8px 36px 0 rgba(54, 65, 183, 0.11);
    margin-top: 54px;
}

/* ==== HEADER ==== */
.header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-button {
    border: none;
    background: #f7fafd;
    color: #232867;
    cursor: pointer;
    font-size: 1.10rem;
    padding: 9px 14px;
    border-radius: 9px;
    box-shadow: 0 2px 9px rgba(65, 90, 255, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.back-button:hover,
.back-button:focus {
    background: #e1e4fb;
    box-shadow: 0 6px 18px rgba(54, 65, 183, 0.12);
}

.page-title {
    flex-grow: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #232867;
    letter-spacing: 0.6px;
    margin-right: 10px;
}

/* ==== FORM CARD ==== */
.custom-form {
    background: rgba(252, 254, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(35, 40, 103, 0.3);
    padding: 33px 25px 25px 25px;
    margin-top: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 7px;
    color: #232867;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #87CEEB;
    border-radius: 10px;
    font-size: 1.08em;
    background: #f7f8fc;
    color: #222;
    transition: border-color 0.23s, box-shadow 0.25s;
    margin-bottom: 4px;
}

.form-input:focus {
    outline: none;
    border-color: #3641b7;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(54, 65, 183, 0.14);
}

.styled-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1em;
    border: 2px solid #adbaf7;
    border-radius: 10px;
    background: #f8fafc;
    color: #232867;
    margin-top: 6px;
    margin-bottom: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L0.937822 0.25L13.0622 0.25L7 10Z' fill='%23333'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    transition: border-color 0.3s;
}

.styled-select:focus {
    outline: none;
    border-color: #3641b7;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(54, 65, 183, 0.11);
}

/* ==== BUTTON ==== */
#btn {
    text-align: center;
    margin-top: 12px;
}

#add-button {
  width: 100%;
  padding: 12px ;
  font-size: 16px;
  background: #232867;
  color: white;
  border: none;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 10px 30px rgba(35, 40, 103, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#add-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(135, 206, 250, 0.2), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

#add-button:hover::before {
  left: 100%;
}

#add-button:hover {
  background: #232867;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(135, 206, 250, 0.4);
}

#add-button:active {
  transform: translateY(-1px);
}

.fa-circle-plus {
    font-size: 1.23em;
}

/* ==== PLACEHOLDER COLOR ==== */
.form-input::placeholder {
    color: #aab1c7;
    opacity: 1;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 600px) {
    .container {
        margin-top: 25px;
        padding: 14px 2vw;
        max-width: 99vw;
        border-radius: 18px;
    }

    .custom-form {
        padding: 18px 7vw 11vw 7vw;
        border-radius: 14px;
    }

    .page-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 7px 2vw;
    }

    .custom-form {
        padding: 10px 3vw;
    }
}