* {
    box-sizing: border-box;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 500;
}

body {
    margin: 0;
    color: #333;
    background-color: #f5f5f5;
}

#container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#container-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

#advertisement-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#advertisement-title {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff8f0;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 61, 0.3);
}

#job-title-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#job-title-input input {
    padding: 12px;
    border: 2px solid rgba(255, 122, 61, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#job-title-input input:focus {
    border-color: rgba(255, 122, 61, 1);
    outline: none;
}

#advertisement-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    background-color: #fff8f0;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 61, 0.3);
}

#advertisement-info-one,
#advertisement-info-two {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.info-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 61, 0.3);
}

.job-icon {
    font-size: 20px;
    color: rgba(255, 122, 61, 1);
    background-color: #fff8f0;
    padding: 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-group select {
    flex: 1;
    padding: 12px 35px 12px 12px;
    border: 2px solid rgba(255, 122, 61, 0.3);
    border-radius: 8px;
    background-color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
    min-width: 0;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 122, 61, 1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

.info-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(255, 122, 61, 0.3);
    border-radius: 8px;
    background-color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
    min-width: 0;
}

.info-group input:focus {
    border-color: rgba(255, 122, 61, 1);
    outline: none;
}

#description-section {
    padding: 20px;
    background-color: #fff8f0;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 61, 0.3);
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: rgba(255, 122, 61, 1);
}

#job-description {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid rgba(255, 122, 61, 0.3);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#job-description:focus {
    border-color: rgba(255, 122, 61, 1);
    outline: none;
}

#duties-section,
#requirements-section {
    padding: 20px;
    background-color: #fff8f0;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 61, 0.3);
}

#duties-container,
#requirements-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.duty-item,
.requirement-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 61, 0.3);
}

.duty-input,
.requirement-input {
    flex: 1;
    padding: 10px;
    border: 2px solid rgba(255, 122, 61, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.duty-input:focus,
.requirement-input:focus {
    border-color: rgba(255, 122, 61, 1);
    outline: none;
}

.remove-duty,
.remove-requirement {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.remove-duty:hover,
.remove-requirement:hover {
    transform: scale(1.2);
}

#add-duty,
#add-requirement {
    margin-top: 15px;
    padding: 12px 24px;
    background-color: rgba(255, 122, 61, 1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#add-duty:hover,
#add-requirement:hover {
    background-color: rgba(255, 122, 61, 0.8);
}

#company-location-map {
    padding: 20px;
    background-color: #fff8f0;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 61, 0.3);
}

#map-address {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 122, 61, 0.3);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#map-address:focus {
    border-color: rgba(255, 122, 61, 1);
    outline: none;
}

#map-container {
    width: 100%;
    height: 450px;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 122, 61, 0.3);
}

#map {
    width: 100%;
    height: 100%;
    border: none;
}

#map.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666;
}

#map.placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: rgba(255, 122, 61, 0.5);
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 30px;
}

#submit-advertisement,
#preview-advertisement {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#submit-advertisement {
    background-color: rgba(255, 122, 61, 1);
    color: white;
}

#preview-advertisement {
    background-color: #fff;
    color: rgba(255, 122, 61, 1);
    border: 2px solid rgba(255, 122, 61, 1);
}

#submit-advertisement:hover {
    background-color: rgba(255, 122, 61, 0.8);
    transform: translateY(-2px);
}

#preview-advertisement:hover {
    background-color: #fff8f0;
    transform: translateY(-2px);
}

.error {
    border-color: #ff4444 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 768px) {
    #advertisement-title {
        flex-direction: column;
    }

    .info-group {
        min-width: 100%;
    }

    #duties-section,
    #requirements-section {
        min-width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    #submit-advertisement,
    #preview-advertisement {
        width: 100%;
    }
}

/* Location Selection Styles */
.location-selection {
    position: relative;
    width: 100%;
}

.location-selection input {
    width: 100%;
    border: 2px solid rgba(255, 122, 61, 0.3);
    outline-color: rgba(255, 122, 61, 0.3);
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 10px;
    transition: border-color 0.4s ease, outline-color 0.4s ease;
}

.location-selection input::placeholder {
    color: black;
}

.location-selection input:hover,
.location-selection input:focus {
    border-color: #ff7a3d;
    outline-color: #ff7a3d;
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    background: white;
    border: 2px solid rgba(255, 122, 61, 0.3);
    margin-top: 2%;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 4px);
    display: none;
    z-index: 1000;
}

.dropdown div {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown div:hover {
    background: #ff7a3d;
    color: white;
}

#city-search {
    margin-top: 2%;
}

/* City suggestions */
.city-option {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 12px 20px;
}

.city-name {
    font-weight: 500;
}

.city-district {
    font-size: 12px;
    color: gray;
}

#city-wrapper {
    position: relative;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    z-index: 10;
}

/* Map Placeholder Styles */
#map-container {
    width: 100%;
    height: 450px;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 122, 61, 0.3);
}

#map {
    width: 100%;
    height: 100%;
    border: none;
}

#map.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666;
}

#map.placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: rgba(255, 122, 61, 0.5);
}

/* Base Input Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    border: 2px solid rgba(255, 122, 61, 0.3);
    outline-color: rgba(255, 122, 61, 0.3);
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 10px;
    transition: border-color 0.4s ease, outline-color 0.4s ease;
    background-color: white;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: black;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #ff7a3d;
    outline-color: #ff7a3d;
}

/* Select Input Styles */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
    padding-right: 35px;
}

/* Textarea Styles */
textarea {
    min-height: 150px;
    resize: vertical;
}

/* Duty and Requirement Input Styles */
.duty-input,
.requirement-input {
    flex: 1;
    margin-right: 10px;
}

/* Location Selection Styles */
.location-selection {
    position: relative;
    width: 100%;
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    background: white;
    border: 2px solid #cccccc9e;
    margin-top: 2%;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    width: calc(100% - 4px);
    display: none;
    z-index: 1000;
}

.dropdown div {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown div:hover {
    background: #ff7a3d;
    color: white;
}

#city-search {
    margin-top: 2%;
}

/* City suggestions */
.city-option {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 12px 20px;
}

.city-name {
    font-weight: 500;
}

.city-district {
    font-size: 12px;
    color: gray;
}

#city-wrapper {
    position: relative;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    z-index: 10;
}

/* Map Placeholder Styles */
#map-container {
    width: 100%;
    height: 450px;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 122, 61, 0.3);
}

#map {
    width: 100%;
    height: 100%;
    border: none;
}

#map.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666;
}

#map.placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    color: rgba(255, 122, 61, 0.5);
}

/* Error Styles */
.error {
    border-color: #ff4444 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Button Styles */
.remove-duty,
.remove-requirement {
    background: none;
    border: none;
    color: #ff7a3d;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.remove-duty:hover,
.remove-requirement:hover {
    color: #ff4444;
}

.remove-duty:disabled,
.remove-requirement:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#add-duty,
#add-requirement {
    background-color: #ff7a3d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#add-duty:hover,
#add-requirement:hover {
    background-color: #ff6a2d;
}

#add-duty:disabled,
#add-requirement:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 30px;
}

#submit-advertisement,
#preview-advertisement {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

#submit-advertisement {
    background-color: #ff7a3d;
    color: white;
}

#preview-advertisement {
    background-color: white;
    color: #ff7a3d;
    border: 2px solid #ff7a3d;
}

#submit-advertisement:hover {
    background-color: #ff6a2d;
}

#preview-advertisement:hover {
    background-color: #fff8f0;
}